:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #282333;
  --muted: #605968;
  --accent: #542794;
  --rule: #d8d2c9;
  --button-ink: white;
  --button-hover: #401979;
  --focus: #713bc2;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
.frame { width: min(100% - 3rem, 72rem); margin-inline: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.skip { position: absolute; z-index: 5; top: .75rem; left: .75rem; padding: .5rem 1rem; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: none; }
.masthead, .footer, nav, .brand, .sample-top, .sample-bottom, .palette-note { display: flex; align-items: center; }
.masthead, .footer, .sample-top, .sample-bottom { justify-content: space-between; }
.masthead { min-height: 6rem; border-bottom: 1px solid var(--rule); }
.brand { gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.45rem; font-weight: 740; letter-spacing: -.06em; }
.brand img { display: block; border-radius: 24%; }
nav { gap: 1.5rem; }
nav a { color: var(--muted); font-size: .9rem; font-weight: 550; text-decoration: none; }
nav a:hover { color: var(--accent); text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6.7rem);
}
.platform {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem;
  font: 650 .76rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.status-dot { width: .72rem; height: .72rem; border: 4px solid var(--accent); border-radius: 50%; }
h1 { margin: 0; }
.intro h1 {
  font-size: clamp(3.8rem, 6.6vw, 6.1rem);
  font-weight: 650; line-height: .99; letter-spacing: -.05em;
}
.intro h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: var(--accent); letter-spacing: -.055em; }
.lead { color: var(--muted); max-width: 33ch; font-size: clamp(1.02rem, 1.5vw, 1.21rem); margin: 1.6rem 0 1.65rem; line-height: 1.56; }
.chart-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.button {
  display: inline-flex; align-items: center; gap: 1.25rem; min-height: 3rem; padding: .72rem 1.2rem;
  border-radius: .6rem; background: var(--accent); color: var(--button-ink); font-weight: 650; text-decoration: none;
}
.button:hover { background: var(--button-hover); }
.button span { font-size: 1.3em; line-height: 1; }
.devices { font-size: .88rem; line-height: 1.5; margin: 1rem 0 0; color: var(--muted); }
.sample {
  display: flex; flex-direction: column; margin: 0; padding: 1.05rem 1.3rem; border-radius: 1.35rem;
  background-color: #e9e1f4; background-image: radial-gradient(#7a689437 .8px, transparent .9px); background-size: 10px 10px;
  border: 1px solid #d6c9e6;
}
.sample-top { font: 600 .67rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .085em; color: #51405f; }
.worktable { position: relative; width: 100%; aspect-ratio: 1.16; }
.board {
  position: absolute; width: 72%; top: 9%; right: 4%; padding: 1.25%; background: #fffaf3;
  box-shadow: 2px 5px 2px #65577828, 8px 17px 21px #51435e36; transform: rotate(5deg); border-radius: 2.4%;
}
.board img, .snapshot img { width: 100%; height: auto; display: block; }
.snapshot {
  position: absolute; margin: 0; width: 31%; bottom: 5%; left: 2%; background: #fffdf7;
  padding: 1.3% 1.3% .5%; transform: rotate(-9deg); box-shadow: 1px 4px 7px #51435e30;
}
.snapshot::before {
  content: ""; position: absolute; top: -.5rem; width: 46%; height: 13%; left: 26%; transform: rotate(-4deg);
  background: #eed18bd9; clip-path: polygon(1% 0, 98% 0, 97% 35%, 100% 71%, 98% 100%, 2% 100%, 3% 59%, 0 17%);
}
.snapshot figcaption { text-align: center; font: italic clamp(.75rem, 1.2vw, 1rem)/1.85 Georgia, serif; color: #594e48; }
.sample-bottom { padding-top: .75rem; border-top: 1px solid #9c89b257; }
.sample-bottom strong { font-size: .92rem; }
.palette-note { font: .73rem/1.4 var(--mono); gap: .55rem; color: #584a63; }
.swatches { width: 2.6rem; height: .65rem; background: linear-gradient(to right,#2c2c2c 25%,#000000 25% 50%,#cecdd5 50% 75%,#474747 75%); border-radius: 2px; }
.footer { border-top: 1px solid var(--rule); padding-block: 1.7rem; gap: .9rem; flex-wrap: wrap; font-size: .86rem; font-weight: 650; }
.byline { color: var(--muted); font-weight: 400; margin-left: .18rem; }
.policy { padding-block: clamp(2.8rem,6vw,5rem); }
.policy article { max-width: 43rem; margin-inline: auto; }
.policy h1 { font-weight: 650; font-size: clamp(2.6rem,6vw,4.4rem); letter-spacing: -.065em; line-height: 1.05; }
.policy h2 { font-size: 1.45rem; line-height: 1.3; letter-spacing: -.04em; margin: 2.2rem 0 .4rem; }
.policy p { margin: .55rem 0 1rem; }
.policy .date { font: .82rem/1.5 var(--mono); color: var(--muted); margin-block: .9rem 2rem; }
.policy .policy-lead { border-left: 3px solid var(--accent); padding-left: 1.1rem; font-size: 1.23rem; line-height: 1.55; margin-bottom: 1.5rem; }
@media (max-width: 700px) {
  .hero { grid-template-columns: minmax(0,1fr); gap: 2.1rem; padding-block: 2.7rem; }
  .intro h1 { font-size: clamp(3.6rem,11.7vw,5.2rem); }
  .masthead { min-height: 4.8rem; }
  .intro, .sample { width: 100%; max-width: 31rem; margin-inline: auto; }
  .footer { align-items: flex-start; }
}
@media (max-width: 420px) {
  .frame { width: calc(100% - 2.25rem); }
  .brand { font-size: 1.25rem; gap: .45rem; }
  .brand img { width: 34px; height: 34px; }
  .sample { padding: .85rem; }
  .intro h1 { font-size: clamp(3.1rem,13vw,3.6rem); }
  .footer nav { gap: .85rem; }
}

@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #19171e;
    --ink: #f6f1ec;
    --muted: #c8becd;
    --accent: #cba3ff;
    --rule: #4a414f;
    --button-ink: #28123e;
    --button-hover: #ddc4ff;
    --focus: #e7cdff;
  }
  .sample {
    background-color: #302639;
    background-image: radial-gradient(#d4bae62e .8px, transparent .9px);
    border-color: #574560;
  }
  .sample-top, .palette-note { color: #dbcae5; }
  .sample-bottom { border-color: #675471; }
  .swatches { outline: 1px solid #93889a; }
}
