:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --ground: #f7ece1;
  --card: #fcfaf3;
  --ink: #23272a;
  --muted: #696660;
  --line: #ded9ce;
  --accent: #ee6247;
  --accent-ink: #23272a;
  --accent-soft: #f7ece1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 "DM Sans", sans-serif; }
button, input, summary { font: inherit; }
a { color: inherit; text-decoration: none; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
body :focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.shell { width: min(760px, calc(100vw - 40px)); margin-inline: auto; }
.skip { position: fixed; left: 20px; top: -80px; z-index: 10; padding: 12px 18px; background: var(--ink); color: var(--card); }
.skip:focus { top: 12px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding-block: 30px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 700 21px/1 "Space Grotesk", sans-serif; letter-spacing: -.8px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.links { display: flex; gap: 26px; align-items: center; }
.links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0; padding-top: 34px; padding-bottom: 38px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 21px; font: 500 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1.4px; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 17px; height: 7px; border-radius: 2px; background: var(--accent); }
h1 { position: relative; z-index: 1; margin: 0; font: 700 clamp(48px, 5.2vw, 66px)/1.02 "Space Grotesk", sans-serif; letter-spacing: -3.7px; }
h1 span { display: block; }
.underlined { width: fit-content; background: linear-gradient(transparent 84%, var(--accent) 84%, var(--accent) 96%, transparent 96%); padding-bottom: 5px; }
.lead { max-width: 335px; margin: 23px 0 26px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.key { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 50px; padding: 13px 20px; background: var(--accent); color: var(--accent-ink); border: 1.6px solid var(--ink); border-radius: 15px; box-shadow: 0 4px 0 var(--ink); font-weight: 600; transition: transform .14s ease-out, box-shadow .14s ease-out; }
.key:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.key:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.apple { width: 17px; height: 21px; fill: currentColor; }
.hero-note { margin: 17px 0 0; font-size: 12px; color: var(--muted); }
.scene { margin: 0 -15px 0 -8px; position: relative; align-self: center; }
.scene img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.scene figcaption { margin-top: 12px; text-align: center; color: var(--muted); font: 400 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.scene figcaption span { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 2px; background: var(--accent); }
.color-bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-block: 1px solid var(--line); }
.color-copy strong { display: block; font: 600 18px/1.4 "Space Grotesk", sans-serif; letter-spacing: -.4px; }
.color-copy p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.palette { position: relative; flex-shrink: 0; }
.palette > summary { list-style: none; cursor: pointer; min-width: 180px; background: var(--card); color: var(--ink); min-height: 46px; padding: 10px 13px; font-size: 14px; box-shadow: 0 3px 0 var(--ink); border-radius: 12px; }
.palette > summary::-webkit-details-marker { display: none; }
.current-swatch { width: 19px; height: 19px; flex-shrink: 0; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--accent); }
.chevron { margin-left: auto; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); }
.palette[open] .chevron { transform: rotate(225deg) translate(-2px, -1px); }
.palette-panel { position: absolute; width: 318px; right: 0; top: calc(100% + 15px); padding: 18px; border: 1.6px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: 0 5px 0 var(--ink); }
.palette fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.palette legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.swatch { position: relative; display: grid; place-items: center; width: 100%; height: 44px; cursor: pointer; border: 1px solid transparent; border-radius: 11px; }
.swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.swatch-face { display: grid; place-items: center; width: 31px; height: 31px; background: var(--swatch); color: var(--swatch-ink); border: 1.5px solid var(--ink); border-radius: 8px; pointer-events: none; font-weight: 600; }
.swatch-face::after { content: "✓"; opacity: 0; }
.swatch:has(input:checked) { background: var(--paper); border-color: var(--ink); }
.swatch input:checked + .swatch-face::after { opacity: 1; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch:hover { background: var(--paper); }
.palette-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.palette-caption output { font-size: 12px; color: var(--muted); }
.reset-color { border: 0; background: none; color: var(--ink); padding: 10px 0 10px 10px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.how { padding: 46px 0 42px; }
.how-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
h2 { font: 600 25px/1.25 "Space Grotesk", sans-serif; letter-spacing: -.9px; margin: 0; }
.how-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; list-style: none; padding: 0; margin: 0; }
.step-number { display: grid; place-items: center; width: 36px; height: 34px; margin-bottom: 15px; border: 1.5px solid var(--ink); border-radius: 9px; background: var(--accent-soft); box-shadow: 0 2px 0 var(--ink); font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
h3 { margin: 0 0 7px; font: 600 16px/1.4 "Space Grotesk", sans-serif; letter-spacing: -.25px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
footer { border-top: 1px solid var(--line); padding: 24px 0 30px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.socials { display: flex; gap: 15px; }
.socials a { width: 22px; height: 44px; display: grid; place-items: center; }
.socials svg { width: 16px; height: 16px; }
footer .links { margin-left: auto; gap: 18px; }
footer .links a { font-size: 12px; }
.footer-copy { font-size: 12px; color: var(--muted); }
.preview-note { color: var(--muted); font: 400 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0 0 24px; }
@media (max-width: 700px) {
  .hero { padding-top: 32px; }
  h1 { font-size: 53px; letter-spacing: -2.8px; }
  .lead { font-size: 15px; }
  .scene { margin-right: -10px; }
  .eyebrow { font-size: 12px; letter-spacing: .6px; }
  .steps { gap: 18px; }
  .footer-copy { width: 100%; }
}
@media (max-width: 540px) {
  .topbar { padding-block: 20px; gap: 12px; }
  .brand { font-size: 19px; }
  .brand img { width: 26px; height: 26px; }
  .topbar .links { gap: 15px; }
  .topbar .links a { font-size: 13px; }
  .hero { display: flex; flex-direction: column; padding: 37px 0 28px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .eyebrow { font-size: 12px; margin-bottom: 18px; }
  h1 { font-size: clamp(48px, 12.6vw, 66px); line-height: 1.03; letter-spacing: -3px; }
  .lead { max-width: 330px; margin-block: 18px 22px; font-size: 16px; }
  .hero-note { font-size: 12px; }
  .scene { width: min(330px, 100%); margin: 5px 0 0; }
  .color-bar { padding-block: 20px; gap: 12px; }
  .color-copy strong { font-size: 16px; }
  .color-copy p { max-width: 150px; font-size: 12px; }
  .palette { position: static; }
  .palette > summary { min-width: 145px; gap: 8px; font-size: 12px; }
  .palette-panel { width: min(318px, 100%); top: calc(100% + 10px); }
  .how { padding: 33px 0; }
  .how-heading { display: block; margin-bottom: 26px; }
  h2 { font-size: 24px; }
  .how-heading p { margin-top: 7px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 15px; }
  .step-number { grid-row: span 2; margin: 3px 0 0; }
  .steps p { max-width: 290px; }
  footer .links { margin-left: 0; gap: 17px; }
}
@media (max-width: 360px) {
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .color-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Shared surfaces for the existing help and article pages. */
:root {
  --bg: var(--paper); --text: var(--ink); --faint: var(--line);
  --surface: var(--card); --border: var(--line);
  --btn-bg: var(--accent); --btn-fg: var(--accent-ink);
  --accent-link: #a73924;
}
.content-page .page { padding: 0 0 32px; }
.content-page .topbar { margin-bottom: 48px; }
.content-page .lead { max-width: 620px; font-size: 18px; }
.content-page h1 { max-width: 700px; font-size: clamp(38px, 6vw, 56px); letter-spacing: -2px; }
.content-page .color-bar { margin-top: 48px; margin-bottom: 28px; }
.content-page .reveal, .content-page .tip { opacity: 1; transform: none; }
.content-page .section-rule { opacity: 1; }
.content-page .section-rule::after { transform: scaleX(1); }
.content-page .section-rule .tick { opacity: 1; }
.content-page .hero-icon svg path { stroke-dashoffset: 0; }
.content-page .hero-icon svg { stroke: var(--accent); }
a:hover { color: inherit; }
.key[href]:hover { color: var(--accent-ink); }
.palette > summary:hover { color: var(--ink); }
.content-page article a, .content-page .answer a, .content-page .help-link a { color: var(--accent-link); }
.content-page .post:hover h2 { color: var(--accent-link); }
.content-page .contact-card { background: var(--ink); }
.content-page .contact-card a { color: var(--card); }
body.content-page .contact-card a:focus-visible { outline: 3px solid var(--card); outline-offset: 5px; }
body .btn, body .cta-card .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 50px; padding: 13px 20px; border: 1.6px solid var(--ink) !important;
  border-radius: 15px; background: var(--accent); color: var(--accent-ink) !important;
  box-shadow: 0 4px 0 var(--ink); font-weight: 600;
  transition: transform .14s ease-out, box-shadow .14s ease-out;
}
body .btn:hover, body .cta-card .btn:hover { background: var(--accent); color: var(--accent-ink) !important; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
body .btn:active, body .cta-card .btn:active { transform: translateY(4px); box-shadow: none; }
.topbar .brand { color: var(--ink); font-weight: 700; }
.topbar .links { gap: 26px; }
.topbar .links a { color: var(--ink); font-weight: 400; }
.palette { border: 0; }
.palette > summary { font-family: "DM Sans", sans-serif; }
.palette > summary::after { content: none; }
.palette .palette-caption { margin-bottom: 0; }
.palette .palette-caption output { color: var(--muted); }
.palette .reset-color { min-height: 44px; }
footer { display: block; text-align: left; margin: 0; }
footer .footer-row { width: 100%; }
footer .socials { gap: 15px; }
footer a { color: var(--ink); }
footer .links { flex-wrap: wrap; }
footer .links a { color: var(--ink); }
@media (max-width: 540px) {
  .topbar .links { gap: 15px; }
  .content-page .topbar { margin-bottom: 32px; }
  .content-page .lead { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
