@font-face {
    font-family: Decree;
    src: url(assets/tokate-decree.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Manuscript;
    src: url(assets/pinyon-script.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Cormorant;
    src: url(assets/cormorant.woff2) format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: Cormorant;
    src: url(assets/cormorant-italic.woff2) format("woff2");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: Newsreader;
    src: url(assets/newsreader-italic.woff2) format("woff2");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: Newsreader;
    src: url(assets/newsreader.woff2) format("woff2");
    font-weight: 400;
    font-display: swap;
}
:root {
    color-scheme: light;
    --paper: #f3e7d4;
    --ink: #303b2b;
    --muted: #625d4e;
    --rust: #97492e;
    --sage: #697459;
    --line: #7e725338;
    --serif: Newsreader, Georgia, serif;
    --display: Cormorant, Georgia, serif;
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #23324b;
    --ink: #eee5cf;
    --muted: #c1c6cb;
    --rust: #e2bb80;
    --sage: #b0bfa6;
    --line: #c4cbd536;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}
body {
    margin: 0;
    background: var(--paper) url(assets/backdrop.webp) center top/cover no-repeat;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 18px;
    min-height: 100svh;
    transition: background-color 0.7s ease, color 0.5s ease;
}
:root[data-theme="dark"] body {
    background-blend-mode: multiply;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
button {
    font: inherit;
    cursor: pointer;
}
a:focus-visible,
button:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--rust);
    outline-offset: 6px;
}
header {
    max-width: 1400px;
    margin: auto;
    padding: 25px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.wordmark {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 50px;
    letter-spacing: 1px;
    line-height: 1;
    color: var(--rust);
}
.wordmark svg {
    width: 31px;
    height: 45px;
    fill: var(--sage);
    stroke: var(--sage);
    stroke-width: 1;
}
nav {
    display: flex;
    gap: 34px;
    font-size: 21px;
    align-items: baseline;
    line-height: 1.2;
}
nav a {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 8px 0;
}
nav a:hover,
.guide-link:hover,
footer a:hover {
    color: var(--rust);
}
.hero {
    overflow-x: clip;
    position: relative;
    text-align: center;
    margin: 0 auto;
}
.heavens {
    --orb-offset: clamp(108px, 22vw, 900px);
    --orb-rise: clamp(65px, 8vw, 240px);
    --orb-scale: 0.46;
    height: 340px;
    position: relative;
    isolation: isolate;
    overflow: visible;
    pointer-events: none;
}
.sun,
.moon {
    position: absolute;
    width: 340px;
    height: 340px;
    left: 50%;
    top: -10px;
    transform: translateX(-50%);
    z-index: 1;
    border: 0;
    padding: 0;
    background: none;
    border-radius: 50%;
    pointer-events: auto;
    transition: transform 0.75s cubic-bezier(0.45, 0, 0.2, 1), opacity 0.65s ease;
}
.sun {
    animation: sun-appear 0.3s ease both;
}
.moon {
    transform: translate(calc(-50% + var(--orb-offset)), calc(-1 * var(--orb-rise))) scale(var(--orb-scale));
    opacity: 0.75;
    z-index: 3;
}
.moon-stars {
    width: 100%;
    height: 100%;
    fill: #e9cf99;
    opacity: 0.8;
}
:root[data-theme="dark"] .sun {
    transform: translate(calc(-50% + var(--orb-offset)), calc(-1 * var(--orb-rise))) scale(var(--orb-scale));
    opacity: 0.55;
    animation: none;
    z-index: 3;
}
:root[data-theme="dark"] .moon {
    transform: translateX(-50%);
    opacity: 1;
    z-index: 1;
}
:root[data-theme="dark"] .hands {
    filter: brightness(0.65) saturate(0.65);
}
.sun img,
.moon img,
.eyes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.eyes {
    overflow: visible;
}
.eye {
    transform-box: fill-box;
    transform-origin: center bottom;
    transition:
        transform 0.13s ease,
        opacity 0.09s ease;
}
.blink .eye {
    transform: scaleY(0.1);
    opacity: 0;
}
.white {
    fill: url(#eye-white);
    stroke: #916b3c;
    stroke-opacity: 0.5;
    stroke-width: 1.5;
}
.lid {
    fill: none;
    stroke: #886336;
    stroke-width: 3;
    opacity: 0.7;
}
.pupil {
    transition: transform 1.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.hands {
    position: absolute;
    width: 102.4%;
    height: auto;
    left: -2.4%;
    top: calc(-295px - 0.8vw);
    z-index: 2;
    will-change: transform;
    pointer-events: none;
    transition: filter 0.7s ease;
}
.hand-left {
    clip-path: inset(0 50% 0 0);
    animation: hand-left 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hand-right {
    clip-path: inset(0 0 0 50%);
    animation: hand-right 0.55s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.star {
    position: absolute;
    color: #f9f2dd;
    font-size: 37px;
    top: 48px;
}
.star-one {
    left: 33%;
}
.star-two {
    right: 31%;
    top: 120px;
    font-size: 27px;
}
.hero-copy {
    position: relative;
    z-index: 3;
    padding: 0 24px 32px;
}
h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(48px, 5.8vw, 83px);
    line-height: 0.98;
    letter-spacing: -2.5px;
    margin: 0 0 21px;
}
h1 em {
    font-style: italic;
    font-weight: 500;
}
.hero-copy > p {
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 27px;
    color: var(--muted);
}
.mobile-break {
    display: none;
}
.choices {
    display: flex;
    justify-content: center;
    gap: 18px;
}
.button {
    padding: 17px 26px;
    border-radius: 5px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    min-width: 224px;
    border: 1px solid transparent;
    font-size: 19px;
    transition:
        background 0.2s,
        transform 0.2s;
}
.button:hover {
    transform: translateY(-2px);
}
.primary {
    background: var(--rust);
    color: #fff5e8;
}
.primary:hover {
    background: #7d3d27;
}
.secondary {
    border: 1px solid var(--sage);
    background: #f8edda85;
    color: var(--ink);
}
.secondary:hover {
    background: #e5d9c3;
}
.choices .button,
.agent-help .button {
    min-width: 300px;
    min-height: 92px;
    padding: 22px 62px;
    border: 0;
    border-radius: 8px;
    background: url(assets/stone-olive.webp) center / 100% 142% no-repeat;
    color: #303b2b;
    justify-content: center;
    font-family: var(--display);
    font-size: 23px;
    font-weight: 500;
    text-shadow: 0 1px #fff9e6;
    transition:
        filter 0.2s,
        transform 0.2s;
}
.choices .button:hover,
.agent-help .button:hover {
    filter: brightness(1.05) drop-shadow(0 3px 2px #56482c26);
}
.choices .button:active {
    transform: translateY(0);
}
.steps {
    max-width: 1050px;
    margin: 8px auto 0;
    padding: 42px 26px 36px;
    border-top: 1px solid var(--line);
    scroll-margin-top: 30px;
}
.section-heading {
    text-align: center;
    margin-bottom: 44px;
}
.section-heading h2 {
    font-size: 42px;
    margin: 0 0 12px;
}
.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.steps article {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.number {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 60px;
    height: 64px;
    margin-top: -15px;
    padding-bottom: 4px;
    background: url(assets/laurel.svg) center / contain no-repeat;
    color: var(--rust);
    font-variant-numeric: lining-nums;
    font-family: var(--display);
    font-size: 24px;
    font-weight: 500;
}
h2 {
    font-family: var(--display);
    font-weight: 500;
}
.steps h3 {
    font-family: var(--display);
    font-weight: 500;
    font-size: 23px;
    margin: 2px 0 10px;
    line-height: 1;
}
.steps p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
}
.steps article p + p {
    margin-top: 14px;
}
.workflow-note {
    text-align: center;
    margin-top: 34px;
}
.workflow-note a {
    display: inline-block;
    margin-top: 14px;
    color: var(--rust);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.commons {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.commons a {
    padding-right: 12px;
    border-right: 1px solid var(--line);
}
footer {
    margin: 0 auto;
    max-width: 1050px;
    padding: 20px 26px 27px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 15px;
    color: var(--muted);
}
#motion {
    color: inherit;
    background: none;
    border: 0;
    padding: 7px 0;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.skip {
    position: absolute;
    left: 20px;
    top: -100px;
    z-index: 10;
    padding: 12px;
    background: var(--paper);
}
.skip:focus {
    top: 15px;
}
dialog {
    color-scheme: light;
    --ink: #303b2b;
    --muted: #625d4e;
    --rust: #97492e;
    --sage: #697459;
    --line: #7e725338;
    --scroll-head: 125px;
    --scroll-foot: 110px;
    color: var(--ink);
    background: none;
    border: 0;
    padding: var(--scroll-head) 60px var(--scroll-foot);
    max-width: 780px;
    width: calc(100% - 20px);
    max-height: 92svh;
    filter: drop-shadow(0 18px 30px #241b2b55);
}
dialog::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url(assets/scroll.webp) center / 100% 100% no-repeat;
    clip-path: inset(0 0 calc(var(--roll-offset, 0px) + 10%));
    transition: clip-path 0.2s ease;
    pointer-events: none;
}
.roll-handle {
    position: absolute;
    inset: auto 0 0;
    height: 14%;
    width: 100%;
    padding: 0;
    border: 0;
    background: url(assets/scroll.webp) center bottom / 100% 714.2857% no-repeat;
    transform: translateY(calc(-1 * var(--roll-offset, 0px)));
    transition: transform 0.2s ease;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.rolling,
.rolling .roll-handle {
    cursor: grabbing;
    user-select: none;
}
.rolling::before,
.rolling .roll-handle,
.rolling .scroll-content {
    transition: none;
}
.scroll-content {
    clip-path: inset(0 0 var(--text-clip, 0px));
    transition: clip-path 0.2s ease;
    max-height: calc(92svh - var(--scroll-head) - var(--scroll-foot));
    overflow-y: auto;
    padding: 0 6px;
    scrollbar-width: thin;
    scrollbar-color: #a78a56 transparent;
}
dialog::backdrop {
    background: #2c261c85;
    backdrop-filter: blur(5px);
}
:root[data-theme="dark"] dialog::backdrop {
    background: #07101caa;
}
dialog h2 {
    font-family: Decree, var(--display);
    font-weight: 400;
    font-size: 32px;
    line-height: 1.25;
    text-align: center;
    color: #713d2c;
    margin: 0 0 22px;
    padding-bottom: 23px;
    background: url(assets/mark.svg) center bottom / 18px 24px no-repeat;
}
dialog ol {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 0 20px;
    list-style: none;
    counter-reset: step;
}
dialog li {
    counter-increment: step;
    display: flex;
    align-items: baseline;
    gap: 16px;
    line-height: 1.4;
    margin: 16px 0;
    font-family: var(--display);
    font-size: 23px;
}
.illuminated-initial {
    display: inline-block;
    width: 64px;
    height: 72px;
    object-fit: contain;
    vertical-align: -0.2em;
    margin-right: 2px;
}
dialog li:before {
    content: counter(step, upper-roman);
    color: var(--rust);
    font-family: Decree, var(--display);
    font-size: 27px;
    min-width: 36px;
}
.agent-help {
    border-top: 1px solid var(--line);
    margin-top: 16px;
    padding-top: 4px;
}
.agent-help p {
    font-family: var(--display);
    font-size: 21px;
    text-align: center;
}
.agent-help .button {
    display: block;
    font-size: 21px;
    min-width: 0;
    min-height: 80px;
    padding: 18px 50px;
    width: min(100%, 360px);
    background-size: 100% auto;
    margin-inline: auto;
}
#copy-status {
    display: block;
    min-height: 20px;
    margin-top: 9px;
    color: var(--sage);
    font-size: 15px;
}
.guide-link {
    display: block;
    text-align: center;
    font-family: var(--display);
    font-size: 19px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
#dismiss {
    display: block;
    margin: 14px auto 0;
    padding: 8px 14px;
    border: 0;
    background: none;
    color: var(--rust);
    font-family: Manuscript, var(--display);
    font-size: 28px;
}
#dismiss:hover {
    color: var(--ink);
}
textarea {
    width: 100%;
    min-height: 120px;
    margin-top: 15px;
    padding: 12px;
    background: #fff8eb;
    border: 1px solid var(--sage);
    font:
        14px/1.5 system-ui,
        sans-serif;
}
body.modal-open {
    overflow: hidden;
}
.paused .pupil {
    transition: none;
}
.paused .hands,
.paused .sun {
    animation: none;
}
@keyframes hand-left {
    from {
        opacity: 0;
        transform: translate(-13%, 45px) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: translate(0) rotate(0);
    }
}
@keyframes hand-right {
    from {
        opacity: 0;
        transform: translate(13%, 60px) rotate(3deg);
    }
    to {
        opacity: 1;
        transform: translate(0) rotate(0);
    }
}
@keyframes sun-appear {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@media (min-width: 1500px) {
    .heavens {
        height: 25vw;
    }
    .sun,
    .moon {
        width: 24.375vw;
        height: 24.375vw;
    }
    .hands {
        top: -19.55vw;
    }
}
@media (max-width: 900px) {
    header {
        padding: 23px 5%;
    }
    .wordmark {
        font-size: 43px;
    }
    nav {
        gap: 24px;
    }
    .heavens {
        height: 290px;
    }
    .sun,
    .moon {
        width: 285px;
        height: 285px;
        top: 0;
    }
    .hands {
        width: 130%;
        max-width: none;
        left: -16.5234%;
        top: -110px;
    }
    .hero-copy {
        padding-bottom: 28px;
    }
    h1 {
        font-family: var(--display);
        font-size: 65px;
    }
    .steps {
        margin: 0 5%;
        padding-left: 0;
        padding-right: 0;
    }
    .step-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
        margin-inline: auto;
    }
    .steps h3 {
        font-size: 21px;
    }
    .steps p {
        font-size: 16px;
    }
    footer {
        margin: 0 5%;
        padding-left: 0;
        padding-right: 0;
    }
}
@media (max-width: 600px) {
    .heavens {
        --orb-scale: 0.34;
        --orb-rise: 65px;
    }
    body {
        background-size: auto 100%;
    }
    header {
        padding: 22px 6% 8px;
    }
    .wordmark {
        font-size: 38px;
        gap: 6px;
    }
    .wordmark svg {
        width: 25px;
        height: 36px;
    }
    nav {
        gap: 18px;
        font-size: 18px;
    }
    nav a:first-child {
        display: none;
    }
    .heavens {
        height: 265px;
        margin-top: 8px;
    }
    .sun,
    .moon {
        width: 250px;
        height: 250px;
        top: -5px;
    }
    .hands {
        width: 185%;
        left: -44.668%;
        top: -52px;
    }
    .star-one {
        left: 12%;
        top: 30px;
    }
    .star-two {
        right: 9%;
        top: 85px;
    }
    .hero-copy {
        padding: 2px 22px 34px;
    }
    h1 {
        font-family: var(--display);
        font-size: 52px;
        letter-spacing: -1.8px;
        line-height: 1.02;
        margin-bottom: 18px;
    }
    .hero-copy > p {
        font-size: 19px;
        line-height: 1.4;
        margin-bottom: 24px;
    }
    .mobile-break {
        display: block;
    }
    .choices .button {
        min-width: 0;
        width: 100%;
        font-size: 23px;
    }
    .choices {
        gap: 10px;
        flex-direction: column;
        max-width: 330px;
        margin: auto;
    }
    .button {
        min-width: 0;
        font-size: 18px;
        padding: 15px 23px;
    }
    .steps {
        margin: 0 8%;
        padding: 27px 0;
    }
    .section-heading {
        margin-bottom: 34px;
    }
    .steps article {
        gap: 16px;
    }
    .steps h3 {
        font-size: 23px;
        margin-bottom: 7px;
    }
    .steps p {
        font-size: 17px;
    }
    footer {
        margin: 0 8%;
        flex-wrap: wrap;
        gap: 12px;
        font-size: 14px;
        padding: 21px 0;
    }
    #motion {
        font-size: 13px;
    }
    dialog {
        --scroll-head: 122px;
        padding: var(--scroll-head) 28px var(--scroll-foot);
    }
    dialog h2 {
        font-size: 27px;
    }
    dialog li {
        font-size: 21px;
        gap: 10px;
    }
    .agent-help .button {
        min-height: 64px;
        padding: 18px 20px;
        font-size: 19px;
    }
    .illuminated-initial {
        width: 52px;
        height: 60px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
    }
}
