@font-face { font-family: Manrope; src: url('assets/fonts/manrope-regular.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('assets/fonts/manrope-bold.woff') format('woff'); font-weight: 650 900; font-display: swap; }
@font-face { font-family: Instrument; src: url('assets/fonts/instrument-serif.woff') format('woff'); font-style: normal; font-display: swap; }
@font-face { font-family: Instrument; src: url('assets/fonts/instrument-serif-italic.woff') format('woff'); font-style: italic; font-display: swap; }
@font-face { font-family: Newsreader; src: url('assets/fonts/newsreader.woff') format('woff'); font-display: swap; }
@font-face { font-family: Newsreader; src: url('assets/fonts/newsreader-italic.woff') format('woff'); font-style: italic; font-display: swap; }
@font-face { font-family: Space; src: url('assets/fonts/space-grotesk.woff') format('woff'); font-display: swap; }

:root {
  --paper: #f5f3eb;
  --ink: #1c2421;
  --muted: #4b5a52;
  --green: #214438;
  --line: #d8dbd0;
  --white: #fcfbf7;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --display: Instrument, Georgia, serif;
  --wrap: 82.5rem;
  --gutter: clamp(1rem, 3.3vw, 3rem);
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, system-ui, sans-serif;
  line-height: 1.5;
  font-synthesis: weight;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, textarea, input, select { font: inherit; }
button { color: inherit; }
button:not(:disabled), a[href] { cursor: pointer; }
:focus-visible { outline: 2px solid #286b54; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; top: .7rem; left: .7rem; z-index: 10; transform: translateY(-160%); background: var(--green); color: #fff; padding: .6rem 1rem; border-radius: .5rem; }
.skip-link:focus { transform: none; }
.site-width { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); background: #f8f7f0; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: .8rem; min-height: 4rem; padding-block: .55rem; }
.publication { display: flex; align-items: center; gap: .65rem; line-height: 1.2; }
.publication img { flex: none; }
.publication strong, .publication span { display: block; }
.publication strong { font-size: .9rem; }
.publication span { margin-top: .21rem; font-size: .72rem; color: var(--muted); }
.share-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.6rem; padding: .45rem .85rem; border: 1px solid var(--green); border-radius: 100px; background: var(--green); color: #fafbf3; font-size: .78rem; font-weight: 700; }
.share-button:hover { background: #2d594a; }
.share-button svg { width: 1rem; height: 1rem; flex: none; }

.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; padding: clamp(1.3rem, 2.8vh, 2.3rem) 0 clamp(1.25rem, 2.3vh, 2rem); }
.kicker { color: var(--muted); font: 600 .7rem/1.45 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.intro-kicker { display: flex; align-items: center; gap: .55rem; color: #365449; }
.intro-kicker > span:first-child { width: .43rem; height: .43rem; border-radius: 50%; background: #618c73; box-shadow: 0 0 0 3px #e3e7d9; }
.kicker-divider { width: 1.15rem; height: 1px; background: #b7c1b4; }
.intro h1 { margin: .27rem 0 .42rem; font: 400 clamp(3.85rem, 5.8vw, 5.4rem)/.98 var(--display); letter-spacing: -.015em; }
.intro h1 em { color: #345d4f; font-weight: 400; white-space: nowrap; }
.intro p { margin: 0; color: var(--muted); font-size: clamp(.875rem, 1.3vw, 1.025rem); }
.intro-note { display: flex; align-items: center; gap: .85rem; padding-left: 1.1rem; border-left: 1px solid #cad0c4; color: var(--green); white-space: nowrap; }
.intro-note b { font: 400 3.15rem/.82 var(--display); }
.intro-note span { color: var(--muted); font-size: .75rem; line-height: 1.4; }

.workspace { display: grid; grid-template-columns: minmax(11.5rem, 14rem) minmax(23.5rem, 1fr) minmax(13.2rem, 17.3rem); gap: clamp(1rem, 2.1vw, 2rem); align-items: start; }
.design-picker, .review-guide { padding-top: .52rem; min-width: 0; }
.design-picker h2 { font-size: 1.17rem; margin: .28rem 0 .92rem; }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.mobile-jump { display: none; }
.design-links { display: grid; gap: .46rem; }
.design-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .62rem; align-items: center; min-height: 3.55rem; padding: .56rem .68rem; border: 1px solid var(--line); border-radius: .82rem; color: var(--ink); background: #faf9f3; text-decoration: none; }
.design-link:hover { border-color: #829487; background: #fffef9; }
.design-link[aria-current="true"] { background: #203d33; border-color: #203d33; box-shadow: 0 3px 9px #19392b26; color: #f5f6ed; }
.design-link[aria-current="true"] small, .design-link[aria-current="true"] .design-index { color: #d2dfd4; }
.design-text { display: grid; gap: .05rem; min-width: 0; }
.design-text strong { font-size: .87rem; }
.design-text small { color: var(--muted); font-size: .69rem; }
.design-index { justify-self: end; color: #5a6c62; font: .68rem var(--mono); }
.design-glyph { width: 2.25rem; height: 2.25rem; background: var(--chip); color: var(--chip-ink); display: inline-grid; place-items: center; border-radius: .64rem; flex: none; }
.design-glyph svg { width: 1.1rem; height: 1.1rem; }
[data-design="farlight"] { --chip: #f9e1d6; --chip-ink: #703a29; }
[data-design="lantern"] { --chip: #e8e2fa; --chip-ink: #513b83; }
[data-design="nocturne"] { --chip: #ede2fb; --chip-ink: #584378; }
[data-design="prism"] { --chip: #e4e3fb; --chip-ink: #443c8b; }
[data-design="undertow"] { --chip: #f5e0d8; --chip-ink: #753e2b; }
[data-design="vesper"] { --chip: #e9efce; --chip-ink: #424e22; }

.stage {
  min-width: 0;
  padding: .65rem clamp(.62rem, 1.45vw, 1.2rem) .66rem;
  display: grid;
  justify-items: center;
  gap: .68rem;
  border: 1px solid #d5d8cb;
  border-radius: 1.55rem;
  background: radial-gradient(ellipse at 50% 45%, #cfd5c661, #e9eade30 70%), linear-gradient(#5d735812 1px, transparent 1px), linear-gradient(90deg, #5d735812 1px, transparent 1px), #f0efe5;
  background-size: 100% 100%, 1.38rem 1.38rem, 1.38rem 1.38rem, auto;
  background-position: center;
  scroll-margin-top: .4rem;
}
.stage-head, .stage-foot { display: flex; justify-content: space-between; align-items: center; gap: .4rem; width: 100%; }
.stage-label, .stage-foot { color: #44584e; font: 600 .66rem/1.35 var(--mono); text-transform: uppercase; letter-spacing: .10em; }
.stage-label { display: inline-flex; align-items: center; gap: .48rem; }
.live-dot { width: .44rem; height: .44rem; border-radius: 50%; background: #557f65; box-shadow: 0 0 0 3px #cfddcc; }
.stage-design { display: none; }
.reset-button { background: #f9faf3; color: #2f463a; border: 1px solid #ced5c7; border-radius: 100px; padding: .24rem .6rem; min-height: 2rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; }
.reset-button:hover { background: white; border-color: #849687; }
.reset-button svg { width: .9rem; height: .9rem; }
.device { position: relative; width: min(100%, 25rem); height: clamp(33.3rem, calc(100svh - 18.8rem), 45rem); padding: .4rem; border: 1px solid #303632; border-radius: 2.4rem; background: #1a1d1b; box-shadow: 0 17px 32px -13px #2028229c, 0 4px 10px #1e362645, 0 0 0 1px #f5f6ef90; }
.device::after { content: ''; position: absolute; right: -.18rem; top: 7.2rem; height: 2.7rem; width: .16rem; border-radius: 0 .2rem .2rem 0; background: #303632; }
.stage-foot { opacity: .96; padding-inline: .1rem; }
.noscript { padding: 1rem; border-radius: .8rem; border: 1px solid var(--line); }

.current-design { margin-top: .78rem; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: .91rem .97rem 1rem; }
.guide-index { display: flex; align-items: center; gap: .55rem; font: 600 .66rem/1.25 var(--mono); color: var(--muted); letter-spacing: .095em; text-transform: uppercase; }
.guide-index .design-glyph { width: 1.9rem; height: 1.9rem; border-radius: .5rem; }
.current-design h2 { font: 400 2.6rem/1 var(--display); color: #244739; margin: .48rem 0 .37rem; }
.current-design p { color: var(--muted); margin: 0; font-size: .82rem; }
.swatches { display: flex; align-items: center; gap: .22rem; font-size: .69rem; color: var(--muted); margin-top: .8rem; }
.swatches i { width: .7rem; height: .7rem; border-radius: 100px; border: 1px solid #252a2538; }
.swatches i:nth-child(3) { margin-right: .28rem; }
.guide-tasks { margin-top: 1.14rem; }
.guide-tasks h3 { margin: 0 0 .36rem; font-size: .88rem; }
.task { display: grid; grid-template-columns: 1.55rem minmax(0, 1fr) auto; align-items: start; gap: .47rem; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: .74rem .12rem; }
.task:hover { background: #e9ede2; }
.task-index { color: #537461; font: 600 .69rem/1.5 var(--mono); padding-top: .08rem; }
.task-index svg { width: .92rem; height: .92rem; }
.task-body { display: grid; gap: .14rem; }
.task-body strong { font-family: inherit; font-size: .82rem; }
.task-body small { font-size: .75rem; line-height: 1.41; color: var(--muted); }
.task-state { font-size: .64rem; font-weight: 700; color: #315744; }
.task-state:empty { display: none; }
.task-arrow { color: #375a49; }
.task-arrow svg { width: .95rem; height: .95rem; }
.guide-note { display: flex; align-items: flex-start; gap: .55rem; margin: .47rem 0 0; border: 1px solid #d9e0d0; background: #e9ece1; padding: .65rem .72rem; color: #364d40; border-radius: .68rem; font-size: .73rem; }
.guide-note svg { flex: none; width: .9rem; height: .9rem; margin-top: .15rem; }
.review-footer { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-block: .8rem 1.4rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .8rem; color: var(--muted); font-size: .7rem; }

@media (max-width: 1040px) {
  .workspace { grid-template-columns: minmax(9.9rem, 12rem) minmax(22rem, 1fr) minmax(11.8rem, 14.2rem); gap: .9rem; }
  .design-link { gap: .43rem; padding-inline: .49rem; }
}
@media (max-width: 880px) {
  .intro-note { display: none; }
  .workspace { grid-template-columns: minmax(0, 1fr); width: min(100%, 35rem); margin-inline: auto; gap: .95rem; }
  .intro { width: min(100%, 35rem); margin-inline: auto; }
  .design-picker { padding: 0; }
  .mobile-jump { display: inline-flex; align-items: center; min-height: 1.65rem; color: #235341; font-size: .74rem; font-weight: 700; gap: .25rem; }
  .stage-design { display: inline; border-left: 1px solid #aab8aa; padding-left: .43rem; }
  .design-picker h2 { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
  .design-links { margin-top: .45rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .design-link { min-height: 2.65rem; grid-template-columns: auto minmax(0, 1fr); padding: .3rem .44rem; }
  .design-text small, .design-index { display: none; }
  .design-glyph { width: 1.6rem; height: 1.6rem; border-radius: .42rem; }
  .design-glyph svg { width: .93rem; height: .93rem; }
  .device { height: clamp(34rem, calc(100svh - 5.2rem), 44rem); }
  .review-guide { padding-top: .15rem; }
}
@media (max-width: 475px) {
  :root { --gutter: .8rem; }
  .masthead-inner { min-height: 3.38rem; }
  .publication img { width: 1.85rem; height: 1.85rem; }
  .share-button { min-height: 2.25rem; padding-inline: .66rem; font-size: .73rem; }
  .intro { padding-block: 1.16rem .99rem; }
  .intro h1 { font-size: clamp(2.85rem, 9.65vw, 4.05rem); margin-block: .3rem .35rem; }
  .intro p { font-size: .84rem; max-width: 37ch; }
  .kicker { font-size: .65rem; }
  .design-links { gap: .3rem; }
  .design-text strong { font-size: .73rem; }
  .stage { border-radius: 1.25rem; padding: .52rem; gap: .49rem; }
  .device { border-radius: 2rem; padding: .27rem; }
  .stage-label, .stage-foot { font-size: .58rem; }
}
@media (max-width: 335px) {
  .design-link { gap: .31rem; padding-inline: .31rem; }
  .design-glyph { width: 1.38rem; height: 1.38rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .design-link, .task, .share-button, .reset-button { transition: background-color .15s, border-color .15s; }
}
