@font-face {
  font-family: "DM Sans";
  src: url('assets/dm-sans.ttf') format('truetype');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --ground: #fbfaf7;
  --ink: #20211f;
  --secondary: #5f605a;
  --surface: #ffffff;
  --subtle: #f1f1ed;
  --line: #dadbd5;
  --menu: #fcfcfa;
  --menu-ink: #242424;
  --tray-score: #915b16;
  --accent: #f4c842;
  --accent-ink: #302813;
  --desk: #eaeae6;
  --sheet: #e3e3e3;
  --sheet-ink: #606060;
  --sheet-line: #cecece;
  --focus: #226c83;
  --shadow: 0 24px 52px -32px #22251e50;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--ink); background: var(--ground); font: 100%/1.45 "DM Sans", -apple-system, sans-serif; }
button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.defs, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; z-index: 9; top: -5rem; background: var(--ink); color: var(--ground); padding: .6rem; }
.skip:focus { top: .5rem; }
.frame { width: min(90%, 62rem); margin-inline: auto; }
.top { display: flex; justify-content: space-between; align-items: center; height: 4.2rem; border-bottom: 1px solid var(--line); }
.brand { font-size: 1.5rem; font-weight: 600; letter-spacing: -.07em; }
nav { display: flex; align-items: center; gap: 1.5rem; }
#replay { border: 0; background: transparent; color: var(--secondary); padding: .5rem .2rem; font-size: .86rem; }
#replay:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
#download, #review, #return-to-page { border: 0; border-radius: 2rem; padding: .48rem 1.05rem; background: var(--ink); color: var(--ground); font-size: .87rem; font-weight: 600; }
#download { display: inline-flex; align-items: center; gap: .65rem; }
.download-icons { display: inline-flex; align-items: center; gap: .36rem; padding-inline-start: .62rem; border-inline-start: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.download-icons svg { width: .9rem; height: .9rem; }
.intro { text-align: center; padding: clamp(1.2rem,3.2vh,2.8rem) 1rem clamp(1.45rem,3.2vh,2.3rem); }
.hero-bird { position: relative; display: block; margin: 0 auto .65rem; padding: 0; width: clamp(8rem,15vw,11rem); border: 0; border-radius: 40%; background: transparent; }
.hero-bird img { width: 100%; display: block; }
.hero-bird::after { content: ""; position: absolute; bottom: 7%; left: 30%; width: 44%; height: 5%; border-radius: 100%; background: radial-gradient(ellipse,#7b673345,transparent 72%); }
#headline { margin: 0; font-weight: 530; font-size: clamp(2.55rem,5.2vw,4.6rem); letter-spacing: -.035em; line-height: 1.02; color: var(--ink); }
.hero-local { margin: .85rem 0 0; color: var(--secondary); font-size: clamp(1rem,1.4vw,1.12rem); line-height: 1.4; }
.demo { width: min(90%, 48rem); margin-block: 0; }
.screen { position: relative; isolation: isolate; height: clamp(16.5rem,29vw,19.8rem); overflow: hidden; border: 1px solid var(--line); border-radius: 1.12rem; background: radial-gradient(ellipse at 75% 14%,var(--subtle),transparent 70%), var(--desk); box-shadow: var(--shadow); }
.macbar { position: absolute; inset: 0 0 auto; z-index: 2; height: 2.3rem; padding: 0 1.15rem; display: flex; align-items: center; background: var(--menu); color: var(--menu-ink); border-bottom: 1px solid var(--line); font: .79rem/1.3 system-ui,sans-serif; }
.menu-app, .task-apps, .mac-right { display: inline-flex; align-items: center; gap: .8rem; }
.mac-right { margin-left: auto; height: 100%; }
#bird { height: 100%; display: inline-flex; align-items: center; gap: .22rem; border: 0; background: transparent; color: inherit; padding: .18rem .23rem; }
#bird svg { width: 1.75rem; height: 1.75rem; color: var(--accent); stroke: #876916; stroke-width: 1.6; stroke-linejoin: round; }
.tray-score { color: var(--tray-score); font: 650 .88rem/1 system-ui,sans-serif; font-variant-numeric: tabular-nums; }
.system-icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.document { position: absolute; top: 4.2rem; left: 7%; width: 61%; min-height: 14rem; background: var(--sheet); color: var(--sheet-ink); border: 1px solid var(--sheet-line); border-radius: .6rem .6rem 0 0; box-shadow: none; }
.titlebar { position: relative; background: var(--sheet); color: var(--sheet-ink); text-align: center; border-bottom: 1px solid var(--sheet-line); border-radius: inherit; padding: .38rem 2.6rem; font-size: .74rem; }
.lights { position: absolute; left: .65rem; top: 43%; display: flex; gap: 3px; }
.lights i { width: 5px; height: 5px; border-radius: 100%; background: var(--sheet-line); }
.paper { padding: 1.25rem 8% 1.4rem; }
.paper h2 { font: normal clamp(1.7rem,3.3vw,2.35rem)/1.1 Georgia,serif; letter-spacing: -.06em; margin: 0; }
.paper p { margin: .25rem 0; font-size: .82rem; }
.paper .excerpt { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding-top: .8rem; margin-top: .8rem; border-top: 1px solid var(--sheet-line); }
.excerpt mark { background: transparent; color: inherit; }
.type-lines i { display: block; height: .22rem; width: 64%; margin-top: .65rem; border-radius: 3px; background: var(--sheet-line); }
.type-lines i + i { width: 40%; margin-top: .4rem; }
.hint { position: absolute; z-index: 3; top: 3.05rem; right: 1rem; width: min(14.5rem,85%); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: .9rem; box-shadow: 0 9px 24px #1112; padding: .75rem .92rem .85rem; }
.hint::before { content: ""; position: absolute; top: -.34rem; right: 7.2rem; width: .55rem; height: .55rem; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.hint-title { display: flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 650; }
.hint-title svg, .hint-title img { width: 1.45rem; height: 1.3rem; }
.hint p { margin: .4rem 0 .55rem; font-size: .95rem; line-height: 1.35; }
#review { font-size: .78rem; padding: .3rem .8rem; }
#review-window { position: absolute; inset: .5rem 0 auto; margin-inline: auto; z-index: 4; width: min(93%,22rem); max-height: calc(100% - 1rem); overflow: auto; background: var(--surface); color: var(--ink); border-radius: .8rem; border: 1px solid var(--line); padding: 0; box-shadow: 0 10px 38px #1114; }
.review-top { display: flex; align-items: center; justify-content: space-between; padding: .2rem .75rem; border-bottom: 1px solid var(--line); }
#close-review { background: transparent; color: var(--ink); border: 0; width: 2rem; height: 2rem; font-size: 1.4rem; }
.review-body { padding: .55rem 1rem .8rem; }
.review-body p { margin: .25rem 0; font-size: .83rem; line-height: 1.4; }
.review-body .review-file, .review-body .small-label { font-size: .77rem; color: var(--secondary); }
.review-body .small-label { margin-top: .55rem; }
.score { display: flex; align-items: baseline; justify-content: space-between; }
.score h2 { font-size: 1.4rem; letter-spacing: -.055em; margin: 0; }
.score span { font-size: .78rem; }
.review-body h3 { font-size: .88rem; margin: .55rem 0 .15rem; }
.review-body .office-note { padding: .38rem .55rem; background: var(--subtle); border-radius: .3rem; }
#dismiss { border: 0; background: var(--subtle); color: var(--ink); border-radius: .3rem; font-size: .78rem; padding: .34rem .6rem; margin-top: .22rem; }
.demo figcaption { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .9rem; }
.platforms { display: inline-flex; background: var(--subtle); border-radius: 2rem; padding: 3px; }
.platforms button { border: 0; background: transparent; color: var(--secondary); border-radius: 2rem; font-size: .79rem; padding: .28rem .7rem; }
.platforms button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px #1112; }
#replay { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; }
#replay svg { width: .65rem; height: .65rem; }
[data-os="mac"] .win-only, [data-os="win"] .mac-only, [data-os="win"] .lights { display: none; }
[data-os="win"] .macbar { top: auto; bottom: 0; height: 2.55rem; border-top: 1px solid var(--line); border-bottom: 0; }
[data-os="win"] .document { top: 1rem; }
[data-os="win"] .hint { top: auto; bottom: 3.15rem; border-radius: .55rem; }
[data-os="win"] .hint::before { display: none; }
.task-apps { position: absolute; left: 50%; transform: translateX(-50%); }
.task-apps svg { width: 1.05rem; height: 1.05rem; }
.task-apps b { background: var(--menu-ink); color: var(--menu); padding: .15rem .3rem; border-radius: .2rem; }
.window-buttons { position: absolute; right: .45rem; }
.toast-action { border: 0; padding: .4rem 0 0; display: grid; background: transparent; color: var(--ink); text-align: left; font: .85rem/1.4 system-ui; }
.toast-action::after { content: ""; position: absolute; inset: 0; }
.toast-action span { color: var(--secondary); }
#download-info { width: min(90%,22rem); padding: 1.6rem; text-align: left; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: #12121266; }
dialog h2 { margin: 0; letter-spacing: -.046em; }
#download-info p { color: var(--secondary); font-size: .94rem; }
footer { text-align: center; font-size: .75rem; color: var(--secondary); padding-block: 1.7rem 1rem; }
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .45rem 1.3rem; font-size: .875rem; }
.site-footer nav { flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; }
.site-footer nav a { padding-block: .35rem; }
.site-footer a:hover, .site-footer a[aria-current="page"], .guide p a { text-decoration: underline; text-underline-offset: .22em; }
.guide p a { color: var(--ink); }
.guide .guide-meta { font-size: .86rem; }
.guide .lead + .guide-meta { margin: -1.7rem 0 2rem; }
.guide li { color: var(--secondary); line-height: 1.6; margin: .65rem 0; }
.guide ol, .guide ul { padding-inline-start: 1.4rem; }
.guide li strong { color: var(--ink); }
.guide dd { line-height: 1.55; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .principle > * { animation: story-arrival both linear; animation-timeline: view(); animation-range: entry 0% entry 94%; }
    @keyframes story-arrival { from { opacity: .15; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  }

  .hero-bird img { transition: transform .24s ease-out; }
  .hero-bird:hover img { transform: translateY(-3px) rotate(-3deg); }
  .nudging > svg { animation: hop .35s ease-out; }
  .hint:not([hidden]), #review-window[open] { animation: settle .2s ease-out; }
  @keyframes hop { 48% { transform: translateY(-2px) rotate(-6deg); } }
  @keyframes settle { from { opacity: .2; transform: translateY(-3px); } }
}
@media (max-width: 540px) {
  .top { height: 3.8rem; }
  nav { gap: .8rem; }
  .hero-bird { width: 8.1rem; }
  .demo { width: calc(100% - 1.6rem); }
  .document { left: 5%; width: 85%; }
  .hint { right: .6rem; }
  .task-apps { left: 1rem; transform: none; }
  .menu-app { gap: .55rem; }
  .macbar { padding-inline: .75rem; }
}

.story { width: min(88%, 48rem); margin: clamp(4rem,10vh,8rem) auto 2rem; }
.principle { min-height: clamp(17rem,50vh,28rem); display: grid; grid-template-columns: 1fr 2fr; align-items: center; gap: clamp(1rem,5vw,4rem); padding: 2.5rem 4%; border-top: 1px solid var(--line); }
.story-art { display: block; width: 100%; max-width: 12rem; overflow: visible; }
.principle h2 { margin: 0; color: var(--ink); font-size: clamp(2rem,5vw,3.7rem); font-weight: 530; letter-spacing: -.065em; line-height: 1.03; text-wrap: balance; }
.principle p { max-width: 27rem; margin: .9rem 0 0; color: var(--secondary); font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }

@media (max-width: 540px) {
  .principle { grid-template-columns: 1fr; gap: 1rem; align-content: center; padding: 2.4rem .4rem; }
  .story-art { width: 5.6rem; }
}

.editions { width: min(90%, 56rem); margin: 0 auto 2rem; scroll-margin-top: 2rem; }
.edition-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; }
.edition { display: flex; flex-direction: column; padding: clamp(1.5rem, 3.6vw, 2.75rem); }
.edition + .edition { border-inline-start: 1px solid var(--line); }
.edition h2 { margin: 0; color: var(--ink); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.2; }
.edition-description { max-width: 30ch; margin: .6rem 0 1.75rem; color: var(--secondary); font-size: 1.05rem; line-height: 1.5; }
.edition-rate { margin-top: auto; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.edition-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .55rem; margin: 0; color: var(--ink); font-size: clamp(2.2rem, 4vw, 2.7rem); font-weight: 550; letter-spacing: -.035em; line-height: 1.1; }
.edition-price span { font-size: 1rem; font-weight: 450; letter-spacing: normal; line-height: 1.4; }
.edition-term { margin: .5rem 0 0; color: var(--secondary); font-size: .95rem; line-height: 1.45; }
.editions > .guide-link { display: table; margin: 1.4rem auto 0; }
.guide-link { display: inline-block; margin-top: 1.75rem; text-decoration: underline; text-underline-offset: .24em; font-weight: 550; }
.guide { width: min(88%,42rem); margin: clamp(3rem,8vw,6rem) auto 4rem; }
.guide h1 { margin: 0; font-weight: 530; font-size: clamp(2.4rem,6vw,4rem); line-height: 1.04; letter-spacing: -.065em; text-wrap: balance; }
.guide p { color: var(--secondary); line-height: 1.6; }
.guide .lead { font-size: 1.18rem; margin: 1rem 0 2.5rem; }
.guide section { border-top: 1px solid var(--line); padding: 1.35rem 0 .8rem; }
.guide h2 { margin: 0; font-size: 1.35rem; font-weight: 600; letter-spacing: -.035em; }
.guide dl { margin: 1rem 0; }
.guide dt { font-weight: 600; }
.guide dd { margin: .2rem 0 1rem; color: var(--secondary); }
.compatibility dl { display: grid; grid-template-columns: 6.5rem 1fr; gap: .65rem 1rem; }
.compatibility dd { margin: 0; }
@media (max-width: 30rem) {
  .compatibility dl { grid-template-columns: 1fr; gap: .1rem; }
  .compatibility dd + dt { margin-top: .7rem; }
}
.guide code { font-size: .9em; overflow-wrap: anywhere; }
@media (max-width: 42rem) {
  .edition-pair { grid-template-columns: 1fr; }
  .edition + .edition { border-inline-start: 0; border-top: 1px solid var(--line); }
  .edition-description { margin-bottom: 1.15rem; }
  .edition-rate { border-top: 0; padding-top: 0; }
}

.platforms button { width: 2.65rem; min-height: 2.15rem; display: grid; place-items: center; padding: .42rem; }
.platforms svg { width: 1.08rem; height: 1.08rem; }
.label-path svg { width: 1em; height: 1em; margin-inline-end: .2em; vertical-align: -.13em; }
