:root {
    --violet: #30245b;
    --violet-deep: #211944;
    --violet-soft: #514276;
    --orange: #f56b3f;
    --orange-soft: #ffb995;
    --mint: #aee8d2;
    --cream: #fff7e8;
    --paper: #fffdf8;
    --ink: #282340;
    --muted: #6c6879;
    --line: #e5dfd4;
    --shadow: 0 28px 80px rgba(35, 27, 74, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

a {
    color: inherit;
    text-underline-offset: 3px;
}

button,
input,
select {
    font: inherit;
}

.icon {
    width: 1.2em;
    height: 1.2em;
    flex: 0 0 auto;
}

.wrap {
    width: min(1180px, calc(100% - 44px));
    margin-inline: auto;
}

.narrow {
    width: min(840px, calc(100% - 44px));
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 10px;
    padding: 10px 14px;
    color: white;
    background: var(--orange);
    clip-path: inset(100%);
}

.skip-link:focus {
    top: 10px;
    clip-path: none;
}

.site-header {
    position: relative;
    z-index: 20;
    color: white;
    background: var(--violet);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -.04em;
}

.brand strong {
    color: var(--orange-soft);
    font-weight: 800;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--violet);
    background: var(--orange);
    border-radius: 10px;
    transform: rotate(-3deg);
}

.brand-icon .icon {
    width: 23px;
    height: 23px;
    stroke-width: 2.1;
}

.site-header nav {
    display: flex;
    gap: 32px;
}

.site-header nav a {
    color: #d8d1f1;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
    color: white;
}

.header-button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.header-button {
    min-height: 42px;
    color: var(--violet);
    background: var(--mint);
}

.header-button .icon,
.button .icon,
.principles .section-head a .icon {
    width: 17px;
    transition: transform .18s;
}

.header-button:hover .icon,
.button:hover .icon,
.principles .section-head a:hover .icon {
    transform: translateX(3px);
}

.hero {
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
        var(--violet);
    background-size: 54px 54px;
}

.hero::after {
    position: absolute;
    width: 500px;
    height: 500px;
    right: -230px;
    bottom: -270px;
    border: 80px solid rgba(174, 232, 210, .06);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    min-height: 635px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
    padding-block: 70px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.overline {
    margin: 0 0 18px;
    color: var(--orange);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .17em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1,
.subhero h1,
.not-found h1 {
    margin-bottom: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(55px, 6.5vw, 85px);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .98;
}

.hero h1 em {
    color: var(--orange-soft);
    font-style: italic;
}

.hero-copy > p:not(.overline) {
    max-width: 570px;
    margin-bottom: 29px;
    color: #d8d3e6;
    font-size: 18px;
}

.button.orange {
    color: white;
    background: var(--orange);
    box-shadow: 0 14px 34px rgba(245, 107, 63, .24);
}

.button.orange:hover {
    background: #e95b31;
}

.privacy-pill {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 31px;
    color: #cfc9df;
    font-size: 11px;
}

.privacy-pill .icon {
    width: 25px;
    height: 25px;
    padding: 5px;
    color: var(--mint);
    background: rgba(174, 232, 210, .1);
    border-radius: 50%;
}

.privacy-pill b {
    display: block;
    color: var(--mint);
}

.calendar-art {
    position: relative;
    z-index: 3;
    min-height: 470px;
    display: grid;
    place-items: center;
}

.art-sheet {
    position: relative;
    z-index: 2;
    width: min(450px, 91%);
    padding: 29px;
    color: var(--ink);
    background: var(--paper);
    border-radius: 8px 8px 22px 8px;
    box-shadow: 0 45px 90px rgba(10, 7, 32, .35);
    transform: rotate(2.2deg);
}

.art-sheet.back {
    position: absolute;
    z-index: 1;
    width: 410px;
    height: 390px;
    background: var(--orange-soft);
    transform: rotate(-6deg) translate(-25px, 15px);
}

.art-head {
    display: flex;
    justify-content: space-between;
    padding: 0 4px 18px;
    border-bottom: 3px solid var(--violet);
}

.art-head span {
    font-size: 22px;
    font-weight: 850;
    letter-spacing: .08em;
}

.art-head b {
    color: var(--orange);
}

.week-row,
.date-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}

.week-row {
    padding: 13px 0 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.date-grid span {
    height: 41px;
    display: grid;
    place-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
}

.date-grid .muted {
    color: #c6c2ca;
}

.date-grid .today {
    color: white;
    background: var(--orange);
    border-radius: 50% 50% 50% 12px;
    box-shadow: 0 7px 18px rgba(245, 107, 63, .28);
}

.art-note {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 9px;
    margin-top: 17px;
    padding: 13px;
    color: var(--violet);
    background: #f0ecfa;
    border-radius: 9px;
}

.art-note i {
    width: 7px;
    height: 100%;
    grid-row: 1 / 3;
    background: var(--orange);
    border-radius: 4px;
}

.art-note span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .14em;
}

.art-note b {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
}

.floating-tag {
    position: absolute;
    z-index: 3;
    right: -2px;
    bottom: 40px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 15px;
    color: var(--violet);
    background: var(--mint);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(12, 8, 33, .25);
    font-size: 11px;
    font-weight: 800;
    transform: rotate(-3deg);
}

.tool-section {
    padding: 105px 0 115px;
    background:
        radial-gradient(circle at 0 100%, rgba(245, 107, 63, .08) 0 13%, transparent 13.3%),
        var(--cream);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 42px;
}

.section-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1;
}

.section-head > p {
    max-width: 460px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.tool-shell {
    position: relative;
    padding-bottom: 22px;
}

.tool-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    background: #dcd5ca;
    border: 1px solid #dcd5ca;
    border-radius: 16px 16px 0 0;
}

.tool-tabs button {
    min-height: 110px;
    display: grid;
    grid-template-columns: 45px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 12px;
    padding: 18px 22px;
    color: var(--ink);
    background: #f1ecdf;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.tool-tabs button[aria-selected="true"] {
    color: white;
    background: var(--violet);
}

.tool-tabs button > span {
    width: 45px;
    height: 45px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    color: var(--orange);
    background: white;
    border-radius: 11px;
}

.tool-tabs button[aria-selected="true"] > span {
    color: var(--violet);
    background: var(--mint);
}

.tool-tabs .icon {
    width: 24px;
    height: 24px;
}

.tool-tabs b {
    align-self: end;
    font-size: 14px;
}

.tool-tabs small {
    color: var(--muted);
    font-size: 10px;
}

.tool-tabs button[aria-selected="true"] small {
    color: #c7c0da;
}

.tool-panel {
    display: grid;
    grid-template-columns: 1fr .92fr;
    overflow: hidden;
    background: var(--paper);
    border-radius: 0 0 20px 20px;
    box-shadow: var(--shadow);
}

.input-side,
.output-side {
    min-height: 510px;
    padding: 40px;
}

.step-label {
    margin: 0 0 8px;
    color: var(--orange);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.step-label.light {
    color: var(--mint);
}

.input-side h3 {
    margin-bottom: 31px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.03em;
}

.two-fields,
.shift-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.field > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.field input,
.field select {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    color: var(--ink);
    background: #faf7ef;
    border: 1px solid #d9d4c9;
    border-radius: 9px;
    outline: 0;
    font-weight: 700;
}

.field input:focus,
.field select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(245, 107, 63, .12);
}

.toggle-line {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 12px 0 24px;
    cursor: pointer;
    font-size: 12px;
}

.toggle-line input {
    position: absolute;
    opacity: 0;
}

.toggle-line > span {
    width: 39px;
    height: 23px;
    display: block;
    padding: 3px;
    background: #d4d0ca;
    border-radius: 20px;
}

.toggle-line > span i {
    width: 17px;
    height: 17px;
    display: block;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
    transition: transform .18s;
}

.toggle-line input:checked + span {
    background: var(--orange);
}

.toggle-line input:checked + span i {
    transform: translateX(16px);
}

.toggle-line input:focus-visible + span {
    outline: 3px solid rgba(245, 107, 63, .22);
    outline-offset: 2px;
}

.counting-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 15px;
    color: var(--muted);
    background: #f2eff8;
    border-radius: 10px;
    font-size: 11px;
}

.counting-note p {
    margin: 0;
}

.counting-note .icon {
    color: var(--violet);
}

.output-side {
    position: relative;
    color: white;
    background:
        radial-gradient(circle at 100% 0, rgba(174, 232, 210, .1) 0 14%, transparent 14.3%),
        var(--violet);
}

.number-result {
    display: flex;
    align-items: baseline;
    gap: 11px;
    margin-top: 30px;
}

.number-result strong {
    color: var(--orange-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(68px, 7vw, 92px);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: .9;
}

.number-result span {
    color: #d5cfe7;
    font-size: 18px;
}

.direction {
    min-height: 44px;
    margin: 13px 0 22px;
    color: #c7c0da;
    font-size: 12px;
}

.calendar-result {
    padding: 17px 0;
    border-block: 1px solid rgba(255, 255, 255, .13);
}

.calendar-result span {
    display: block;
    color: #9f95bf;
    font-size: 10px;
    text-transform: uppercase;
}

.calendar-result b {
    color: var(--mint);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 500;
}

.mini-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 20px;
    background: rgba(255, 255, 255, .13);
}

.mini-results > div {
    display: grid;
    gap: 3px;
    padding: 14px 12px;
    background: var(--violet);
}

.mini-results span {
    color: #9d94b8;
    font-size: 9px;
    text-transform: uppercase;
}

.mini-results b {
    font-size: 15px;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    background: #eee9df;
    border-radius: 11px;
}

.segmented input {
    position: absolute;
    opacity: 0;
}

.segmented span {
    min-height: 38px;
    display: grid;
    place-items: center;
    cursor: pointer;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 750;
}

.segmented input:checked + span {
    color: white;
    background: var(--violet);
}

.segmented input:focus-visible + span {
    outline: 3px solid rgba(48, 36, 91, .22);
}

.month-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.shift-output .step-label {
    margin-bottom: 27px;
}

.result-date {
    display: block;
    color: var(--orange-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 53px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1;
}

.result-weekday {
    display: block;
    margin: 7px 0 23px;
    color: var(--mint);
    font-size: 16px;
    text-transform: capitalize;
}

.date-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 23px;
    border-block: 1px solid rgba(255, 255, 255, .13);
}

.date-facts > div {
    display: grid;
    gap: 2px;
    padding: 13px 8px 13px 0;
}

.date-facts span {
    color: #9f96ba;
    font-size: 9px;
}

.date-facts b {
    font-size: 13px;
}

.micro-calendar {
    padding: 14px 17px;
    color: var(--ink);
    background: white;
    border-radius: 12px;
}

.micro-head {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 8px;
}

.micro-head b {
    color: var(--violet);
    font-size: 12px;
    text-transform: capitalize;
}

.micro-head span {
    word-spacing: 12px;
    color: var(--muted);
    font-size: 7px;
    text-transform: uppercase;
}

.micro-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.micro-grid span {
    height: 22px;
    display: grid;
    place-items: center;
    font-size: 8px;
}

.micro-grid .selected {
    color: white;
    background: var(--orange);
    border-radius: 50%;
}

.profile-explainer {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 28px;
    padding: 20px;
    background: #f1ecfa;
    border-radius: 12px;
}

.profile-explainer > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--orange);
    background: white;
    border-radius: 10px;
}

.profile-explainer p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.profile-explainer b {
    display: block;
    color: var(--violet);
}

.profile-output .step-label {
    margin-bottom: 25px;
}

.profile-weekday {
    display: block;
    color: var(--mint);
    font-size: 17px;
    text-transform: capitalize;
}

.profile-output > strong {
    display: block;
    margin: 3px 0 27px;
    color: var(--orange-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 43px;
    font-weight: 500;
    letter-spacing: -.04em;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
}

.profile-grid > div {
    display: grid;
    gap: 4px;
    padding: 15px;
    background: var(--violet);
}

.profile-grid span {
    color: #9c93b7;
    font-size: 9px;
    text-transform: uppercase;
}

.profile-grid b {
    font-size: 15px;
}

.tool-error {
    position: absolute;
    right: 0;
    bottom: -10px;
    left: 0;
    margin: 0;
    color: #a13626;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.principles {
    padding: 105px 0 115px;
    color: white;
    background: var(--violet-deep);
}

.section-head.inverse .overline {
    color: var(--orange-soft);
}

.section-head.inverse h2 {
    color: white;
}

.section-head.inverse > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mint);
    font-size: 13px;
    font-weight: 750;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.principle-grid article {
    min-height: 260px;
    padding: 28px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 13px;
}

.principle-grid article > span {
    color: var(--orange-soft);
    font-size: 11px;
    font-weight: 800;
}

.principle-grid h3 {
    margin: 70px 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 500;
}

.principle-grid p {
    margin: 0;
    color: #aaa2c1;
    font-size: 13px;
}

.subhero {
    padding: 100px 0 95px;
    color: white;
    background:
        radial-gradient(circle at 88% -12%, rgba(174, 232, 210, .14) 0 18%, transparent 18.3%),
        var(--violet);
}

.subhero.compact {
    padding-block: 75px;
}

.subhero h1 {
    max-width: 820px;
}

.subhero > div > p:last-child {
    max-width: 680px;
    margin-bottom: 0;
    color: #cbc5da;
    font-size: 18px;
}

.article {
    max-width: 900px;
    padding-block: 85px 120px;
}

.article section {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 25px;
    margin-bottom: 75px;
}

.article section:last-child {
    margin-bottom: 0;
}

.chapter {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    color: var(--violet);
    background: var(--mint);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 850;
}

.article h2,
.legal h2 {
    margin-bottom: 17px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 39px;
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.article p,
.legal p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.article-example {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.article-example > * {
    padding: 15px;
    border-right: 1px solid var(--line);
    font-size: 12px;
}

.article-example > *:last-child {
    border-right: 0;
}

.article-example b {
    color: white;
    background: var(--violet);
}

.formula-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 20px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.formula-row b {
    color: var(--violet);
}

.formula-row i {
    color: var(--muted);
    font-style: normal;
}

.formula-row em {
    padding: 4px 8px;
    color: white;
    background: var(--orange);
    border-radius: 6px;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
}

.legal {
    max-width: 810px;
    padding-block: 80px 110px;
}

.legal section {
    margin-bottom: 45px;
}

.legal h2 {
    font-size: 30px;
}

.legal p {
    font-size: 16px;
}

.legal a {
    color: var(--violet);
    font-weight: 650;
}

.not-found {
    min-height: 620px;
    display: grid;
    place-items: center;
    padding: 80px 0;
    color: white;
    background: var(--violet);
    text-align: center;
}

.not-found span {
    color: var(--orange-soft);
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .2em;
}

.not-found h1 {
    margin-top: 15px;
}

.not-found p {
    color: #cbc5da;
}

.not-found .button {
    margin-top: 12px;
}

.site-footer {
    color: #b8b0ca;
    background: #17122e;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 70px;
    padding-block: 65px 50px;
}

.footer-main > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.footer-main p {
    margin: 10px 0 0;
    color: #827a9b;
    font-size: 12px;
}

.footer-main b {
    margin-bottom: 7px;
    color: var(--orange-soft);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-main a:not(.brand) {
    color: #aaa3ba;
    font-size: 12px;
    text-decoration: none;
}

.footer-main a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-block: 18px;
    color: #6f6886;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: 10px;
}

@media (max-width: 920px) {
    .hero-grid {
        gap: 10px;
    }

    .hero h1 {
        font-size: 62px;
    }

    .art-sheet {
        width: 93%;
    }

    .tool-panel {
        grid-template-columns: 1fr 1fr;
    }

    .input-side,
    .output-side {
        padding: 30px;
    }

    .mini-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 740px) {
    .wrap,
    .narrow {
        width: min(100% - 30px, 1180px);
    }

    .header-inner {
        min-height: 68px;
    }

    .site-header nav {
        display: none;
    }

    .header-button {
        min-height: 38px;
        padding: 9px 12px;
        font-size: 0;
    }

    .header-button .icon {
        width: 20px;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 55px 65px;
    }

    .hero h1,
    .subhero h1 {
        font-size: 50px;
    }

    .hero-copy > p:not(.overline) {
        font-size: 16px;
    }

    .calendar-art {
        min-height: 420px;
        margin-top: 25px;
    }

    .art-sheet {
        width: calc(100% - 12px);
        padding: 23px;
    }

    .art-sheet.back {
        width: calc(100% - 45px);
        height: 350px;
    }

    .floating-tag {
        display: none;
    }

    .tool-section,
    .principles {
        padding-block: 72px 80px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .section-head h2 {
        font-size: 44px;
    }

    .tool-tabs {
        grid-template-columns: 1fr;
        border-radius: 14px 14px 0 0;
    }

    .tool-tabs button {
        min-height: 78px;
        grid-template-columns: 39px 1fr;
        padding: 12px 16px;
    }

    .tool-tabs button > span {
        width: 39px;
        height: 39px;
    }

    .tool-tabs .icon {
        width: 21px;
    }

    .tool-panel {
        grid-template-columns: 1fr;
    }

    .input-side,
    .output-side {
        min-height: auto;
        padding: 25px 21px;
    }

    .input-side h3 {
        font-size: 28px;
    }

    .two-fields,
    .shift-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .output-side {
        min-height: 450px;
    }

    .number-result strong {
        font-size: 74px;
    }

    .mini-results {
        grid-template-columns: repeat(3, 1fr);
    }

    .principle-grid {
        grid-template-columns: 1fr;
    }

    .principle-grid article {
        min-height: 200px;
    }

    .principle-grid h3 {
        margin-top: 42px;
    }

    .subhero {
        padding-block: 70px;
    }

    .article {
        padding-block: 65px 90px;
    }

    .article section {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 55px;
    }

    .article h2 {
        font-size: 34px;
    }

    .article-example {
        grid-template-columns: 1fr;
    }

    .article-example > * {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .formula-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px 25px;
    }

    .footer-main > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 390px) {
    .hero h1,
    .subhero h1 {
        font-size: 43px;
    }

    .art-sheet {
        padding: 18px;
    }

    .date-grid span {
        height: 36px;
    }

    .mini-results {
        grid-template-columns: 1fr;
    }

    .profile-output > strong {
        font-size: 37px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
