/* CSS controls how the page looks. Change these variables to experiment. */
:root { --accent: #CA9B52; --accent-dark: #705020; --tint: #FAF8F4; --ink: #191919; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: white; color: #333333; font-family: system-ui, -apple-system, sans-serif; line-height: 1.6; }
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding-block: 27px; border-bottom: 1px solid #e9e6e1; gap: 20px; }
.wordmark { color: var(--ink); font-weight: 700; letter-spacing: -.5px; }
a { color: inherit; text-underline-offset: 5px; }
.topbar a { font-size: 14px; }
.hero { padding: 72px 0 80px; position: relative; }
.eyebrow, .step, .code-label { font-size: 11px; letter-spacing: 1.7px; font-weight: 700; }
.eyebrow { color: var(--accent-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 76px); letter-spacing: -3px; margin: 22px 0; }
h1 span { color: var(--accent-dark); }
.intro { max-width: 530px; font-size: 18px; margin-bottom: 28px; }
button, .button { font: inherit; font-size: 14px; font-weight: 650; border: 1px solid #dcd6cc; border-radius: 8px; padding: 11px 16px; cursor: pointer; background: white; color: var(--ink); }
.button { display: inline-flex; gap: 32px; text-decoration: none; }
.primary { background: var(--ink); color: white; border-color: var(--ink); }
button:hover, .button:hover { transform: translateY(-2px); }
button:active { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 4px; }
.code-note { position: absolute; right: 0; top: 134px; padding: 30px; background: var(--tint); border: 1px solid #e9e6e1; border-radius: 12px; transform: rotate(3deg); }
.code-label { display: block; color: var(--accent-dark); margin-bottom: 20px; }
.code-note code { font-size: 17px; line-height: 2; }.code-note code span { color: var(--accent-dark); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -1px; }.section-heading > p { font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card { border: 1px solid #e5e1db; border-radius: 14px; padding: 30px; }
.step { color: var(--accent-dark); }.card h3 { font-size: 25px; margin-top: 17px; letter-spacing: -.5px; }.card > p { margin-top: 12px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 22px 0 8px; }
.input-row { display: flex; gap: 8px; }input { font: inherit; width: 100%; min-width: 0; border: 1px solid #dcd6cc; border-radius: 8px; padding: 11px; }.input-row button { flex-shrink: 0; }
.result { background: var(--tint); padding: 16px; border-radius: 8px; min-height: 58px; overflow-wrap: anywhere; }
details { border-top: 1px solid #e9e6e1; padding-top: 15px; font-size: 13px; margin-top: 22px; }summary { cursor: pointer; font-weight: 600; }details p { margin-bottom: 0; }
.swatches, .actions, .quiz { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.swatch::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }.gold::before { background: #CA9B52; }.berry::before { background: #a94e6f; }.forest::before { background: #467c61; }
[aria-pressed="true"] { border-color: var(--accent-dark); background: var(--tint); }
.colour-preview { display: flex; align-items: center; gap: 18px; background: var(--tint); border-radius: 8px; padding: 10px 20px; margin-top: 20px; }.colour-preview > span { font-size: 48px; color: var(--accent); }.colour-preview p { font-size: 14px; }
.counter { font-size: 58px; font-weight: 700; line-height: 1; color: var(--accent-dark); margin-bottom: 22px; }.quiet { border-color: transparent; text-decoration: underline; }.small { font-size: 13px; }.quiz button { flex: 1; }
.behind { margin: 60px 0; padding: 36px; background: var(--tint); border-radius: 14px; }.file-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }.file-grid code { color: var(--accent-dark); }.file-grid h3 { font-size: 19px; margin-top: 12px; }.file-grid p { font-size: 14px; }.tip { font-size: 14px; border-top: 1px solid #ddd7cc; padding-top: 22px; margin-top: 26px; }
footer { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; border-top: 1px solid #e9e6e1; padding: 24px 0 40px; }
@media (max-width: 950px) { .code-note { position: static; transform: none; margin-top: 30px; width: fit-content; }.hero { padding-block: 48px; } }
@media (max-width: 620px) { .wrap { width: calc(100% - 32px); }.grid, .file-grid { grid-template-columns: 1fr; }.section-heading, footer { display: block; }.topbar { align-items: start; }.wordmark { max-width: 175px; }.topbar a { flex-shrink: 0; }.card, .behind { padding: 23px; }.input-row { flex-direction: column; }h1 { letter-spacing: -2px; }.behind { margin-block: 36px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }button:hover, .button:hover { transform: none; } }
