@font-face { font-family: 'Libre Caslon Text'; font-weight: 400; font-display: swap; src: url('/fonts/libre-caslon-text-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Familjen Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/familjen-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Familjen Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/familjen-grotesk-latin-600-normal.woff2') format('woff2'); }

:root {
  --green: #1E3329;
  --green-2: #26402F;
  --green-3: #172820;
  --linen: #ECE6D9;
  --text: #E9E4D8;
  --muted: #A7AEA2;
  --brass: #B8914C;
  --brass-line: rgba(184, 145, 76, .5);
  --red: #8C2B1E;
  --ink: #1E1E1A;
  --serif: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Familjen Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--green); color: var(--text); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; }  /* footer sits at the bottom on short pages */
body > * { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; border-bottom: 1px solid var(--brass-line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font: 400 22px var(--serif); color: var(--text); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; gap: 6px; font-size: 13px; }
.lang button { font: inherit; border: 0; background: none; padding: 2px; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--brass); }
@media (max-width: 560px) { .brand span { font-size: 19px; } .nav { gap: 14px; } .nav .hide-sm { display: none; } }

/* buttons, labels */
.btn {
  display: inline-block; font: 600 15px var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  padding: 13px 24px; border: 1px solid var(--brass); background: var(--brass); color: var(--green);
}
.btn:hover { background: #C9A25D; border-color: #C9A25D; }
.btn.line { background: transparent; color: var(--text); }
.btn.line:hover { background: var(--brass); color: var(--green); }
.btn.off { background: transparent; border-color: var(--brass-line); color: var(--muted); }
.btn.block { display: block; width: 100%; }
.label { display: inline-block; font: 600 12px var(--sans); padding: 4px 8px; background: var(--linen); color: var(--green); }
.label.sold_out { background: var(--red); color: var(--linen); }

/* home: hero */
.hero { text-align: center; padding: 56px 0 0; }
.hero h1 { font-size: clamp(44px, 7vw, 76px); }
.hero .lead { color: var(--muted); margin-top: 12px; font-size: 18px; }
.stage { display: block; max-width: 600px; margin: 40px auto 0; background: var(--linen); padding: 24px 24px 16px; text-decoration: none; }
.stage .ph { background: #E4DED0; }
.stage img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 40%; }
.stage .cap { display: flex; justify-content: space-between; color: #3A3A33; font-size: 14px; padding-top: 12px; }
.stage .cap b { color: var(--red); font-weight: 600; }
.buyrow { display: flex; justify-content: center; align-items: center; gap: 28px; padding-top: 30px; flex-wrap: wrap; }
.buyrow .price { font: 400 40px var(--serif); color: var(--brass); }

.rule { height: 1px; background: var(--brass-line); margin: 72px 0 28px; }
section h2 { font-size: 30px; margin-bottom: 24px; }

/* colours */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 520px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.chip { display: block; background: var(--linen); padding: 8px 8px 0; text-decoration: none; transition: transform .2s; }
.chip:hover { transform: translateY(-3px); }
.chip .ph { background: #E4DED0; }
.chip img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; object-position: 50% 58%; }
.chip .n { color: #3A3A33; font-size: 13px; padding: 9px 2px 11px; display: flex; justify-content: space-between; gap: 6px; }
.chip .n i { font-style: normal; color: #7C7A70; white-space: nowrap; }
.chip .n i.sold_out { color: var(--red); font-weight: 600; }

/* about + specs */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.two p { max-width: 28em; }
.two p + p { margin-top: 12px; }
.specs { margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--brass-line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 28px; } }

/* about: grandma's original next to the story */
.about { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
.about-photo { margin: 0; background: var(--linen); padding: 14px 14px 10px; }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-photo figcaption { color: #3A3A33; font-size: 13px; padding-top: 8px; }
.about h2 { margin-bottom: 18px; }
.about .specs { margin-top: 28px; }

/* signup band (Falu red) */
.band { background: var(--red); color: var(--linen); margin-top: 80px; padding: 52px 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.band h2 { font-size: 30px; margin: 0; }
.band .waitlist-form input[type=email] { border-color: rgba(236,230,217,.6); color: var(--linen); }
.band .waitlist-form input::placeholder { color: rgba(236,230,217,.7); }
.band .btn { background: var(--linen); border-color: var(--linen); color: var(--red); }
.band .fine, .band .msg { color: rgba(236,230,217,.8); }

/* forms */
.waitlist-form .row { display: flex; gap: 0; max-width: 460px; }
.waitlist-form input[type=email] {
  flex: 1; min-width: 0; font: 16px var(--sans); padding: 12px 14px;
  border: 1px solid var(--brass); border-right: 0; background: transparent; color: var(--text);
}
.waitlist-form input::placeholder { color: var(--muted); }
.waitlist-form .hp { position: absolute; left: -9999px; }
.waitlist-form .fine { font-size: 13px; color: var(--muted); margin-top: 8px; }
.waitlist-form .msg { margin-top: 10px; min-height: 1.5em; }
.waitlist-form.done .row, .waitlist-form.done .fine { display: none; }
@media (max-width: 420px) { .waitlist-form .row { flex-direction: column; gap: 8px; } .waitlist-form input[type=email] { border-right: 1px solid var(--brass); } }

/* footer */
.site-footer { background: var(--green-3); margin-top: auto; padding: 28px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .who { display: flex; align-items: center; gap: 14px; }
.site-footer svg { width: 64px; height: 64px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
main.page, main:has(.product) { padding-bottom: 80px; }

/* product page */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { text-decoration: none; }
.product { padding-top: 20px; }
.product .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.product .photo { position: relative; background: var(--linen); padding: 20px; }
.product .photo .ph { background: #E4DED0; }
.product .photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product .photo .label { position: absolute; left: 32px; top: 32px; font-size: 13px; }
.buybox h1 { font-size: 44px; }
.buybox .sub { color: var(--muted); margin-top: 6px; }
.buybox .price { font: 400 34px var(--serif); color: var(--brass); margin-top: 18px; }
.buybox .price small { font: 13px var(--sans); color: var(--muted); }
.picker { border: 0; padding: 0; margin: 24px 0 0; }
.picker legend { padding: 0; margin-bottom: 10px; font-size: 15px; color: var(--muted); }
.picker legend span:last-child { color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  position: relative; width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 0 0 2px var(--green), 0 0 0 3px transparent;
}
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 0 0 2px var(--green), 0 0 0 3px var(--brass); }
.status-text { margin-top: 16px; font-size: 15px; color: var(--muted); }
.buy-actions { margin-top: 14px; }
.notify { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--brass-line); }
.notify h2 { font: 600 16px var(--sans); margin-bottom: 10px; }
.notify .nudge { font-size: 15px; margin-bottom: 10px; color: var(--muted); }
.details { margin-top: 28px; border-top: 1px solid var(--brass-line); }
.details details { border-bottom: 1px solid var(--brass-line); }
.details summary { cursor: pointer; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; }
.details summary::after { content: '+'; color: var(--brass); }
.details details[open] summary::after { content: '−'; }
.details .content { padding: 0 0 14px; color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .product .wrap { grid-template-columns: 1fr; } }

/* text pages */
.page { padding-top: 48px; }
.page .wrap { max-width: 700px; }
.page h1 { font-size: 40px; margin-bottom: 20px; }
.page h2 { font: 600 17px var(--sans); margin: 28px 0 8px; color: var(--brass); }
.page p + p { margin-top: 10px; }

/* cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--linen); color: var(--ink); border-top: 3px solid var(--red); padding: 16px 0; font-size: 14px; }
.cookie-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; }
.cookie-banner p { max-width: 60em; }
.cookie-banner .actions { display: flex; gap: 8px; flex: none; }
.cookie-banner .btn { padding: 10px 16px; font-size: 14px; min-width: 150px; background: var(--green); border-color: var(--green); color: var(--linen); }
.cookie-banner .btn.line { background: transparent; color: var(--green); }
@media (max-width: 720px) { .cookie-banner .wrap { flex-direction: column; align-items: stretch; } .cookie-banner .actions .btn { flex: 1; min-width: 0; } }

/* price test: don't flash the default price before the server's answer */
html:not(.price-ready) [data-price] { visibility: hidden; }
