
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --paper:  #e8e9e3;
  --ink:    #17191c;
  --ink-2:  #5d615b;
  --ink-3:  #8b8f87;
  --land:   #bcc0b5;
  --rule:   #cfd2c8;
  --red:    #e1321f;
  --ok:     #1f8a4c;
  --accent: var(--red);
  --font: 'Instrument Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
html[data-theme="dark"] {
  --paper:  #09090b;
  --ink:    #e4e4e4;
  --ink-2:  #a1a5ab;
  --ink-3:  #70757b;
  --land:   #34383e;
  --rule:   #1f2226;
  --red:    #ff2d55;
  --ok:     #3ddc84;
}

html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }


.sheet {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  grid-template-areas:
    "head  main"
    "side  main"
    "foot  foot";
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(32px, 4vw, 72px);
  min-height: 100svh;
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(24px, 3vw, 40px);
  max-width: 1600px;
  margin: 0 auto;
}


header { grid-area: head; }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  font-size: 0.8rem; color: var(--ink-3); transition: color .2s;
}
.back svg { width: 12px; height: 12px; transition: transform .35s cubic-bezier(.2,.75,.15,1); }
h1 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.05vw, 2.75rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}


.side { grid-area: side; margin-top: clamp(22px, 2.6vh, 30px); }
.group + .group { margin-top: 26px; }
.group-name {
  font-size: 0.8rem;
  color: var(--ink-3);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}


.verb {
  font-family: 'Archivo', var(--font);
  font-weight: 760;
  font-stretch: 62%;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.btn-s {
  font-size: 0.95rem; color: var(--ink-3); padding: 6px 0;
  transition: color .2s, font-stretch .55s cubic-bezier(.2,.75,.15,1);
}
.btn-s:focus-visible { color: var(--ink); font-stretch: 125%; }


main { grid-area: main; min-width: 0; display: flex; flex-direction: column; }
main > * + * { margin-top: clamp(22px, 3.5vh, 36px); }

.caption {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.35;
  color: var(--ink-2);
  min-height: 2.7em;
}
@media (min-width: 961px) { .caption { text-wrap: balance; } }
.caption b { color: var(--ink); font-weight: 600; }
.caption .n { color: var(--accent); font-weight: 650; }


.sec-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 0.8rem; color: var(--ink-3);
  padding-bottom: 6px; border-bottom: 1px solid var(--ink);
}
.sec-head h2, .sec-head h3 { font: inherit; color: var(--ink); }

footer {
  grid-area: foot;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--ink-3);
  line-height: 1.5;
  text-align: center;
}


@media (hover: hover) {
  .back:hover { color: var(--ink); }
  .back:hover svg { transform: translateX(-3px); }
  .btn-s:not(:disabled):hover { color: var(--ink); font-stretch: 125%; }
}


@media (max-width: 960px) {
  .sheet { display: flex; flex-direction: column; }
  header { order: 1; }
  main { order: 2; margin-top: 28px; }
  .side { order: 3; margin-top: 44px; }
  footer { order: 4; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
