/* Vihta & Co shop: "sauna at night". Charcoal and smoke, birch tiles, one ember accent. */
:root {
  --bg: #14110f;
  --surface: #1d1916;
  --line: #2e2824;
  --ink: #f2ebe1;
  --muted: #b3a697;
  --birch: #ddd4c7;
  --ember: #f08a4b;
  --ember-ink: #1a0f08;
  --wrap: 1280px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* self-hosted (OFL, fonts/OFL.txt): no visitor data goes to Google */
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ember); color: var(--ember-ink); border-radius: var(--r); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* Brand bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 22px; height: 22px; fill: var(--ember); }
.basket { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; transition: border-color .2s, background .2s; }
.basket:hover { border-color: var(--muted); background: var(--surface); }

/* Intro: a title row, not a hero */
.intro { position: relative; padding: 48px 0 28px; max-width: 760px; }
.intro h1 { margin: 0 0 12px; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.intro h1 span { display: block; color: var(--muted); font-weight: 500; }
.intro p { margin: 0; color: var(--muted); max-width: 560px; }
.intro .xmas { margin-top: 14px; color: var(--ink); padding-left: 12px; border-left: 2px solid var(--ember); }

/* Steam: three soft wisps rise once from the title on load, then rest */
.steam { position: absolute; left: 8px; bottom: 100%; width: 120px; height: 140px; pointer-events: none; }
.steam i { position: absolute; bottom: -40px; width: 34px; height: 90px; border-radius: 50%; background: radial-gradient(closest-side, rgb(242 235 225 / .22), transparent); filter: blur(8px); opacity: 0; animation: rise 3.2s var(--ease) forwards; }
.steam i:nth-child(1) { left: 0; animation-delay: .2s; }
.steam i:nth-child(2) { left: 38px; animation-delay: .6s; }
.steam i:nth-child(3) { left: 76px; animation-delay: 1s; }
@keyframes rise { 0% { opacity: 0; transform: translateY(80px) scaleX(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px) scaleX(1.4) skewX(-8deg); } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 24px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .15s; }
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip small { font-weight: 500; opacity: .7; margin-left: 6px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; padding-bottom: 72px; }
.card { display: block; text-decoration: none; cursor: pointer; border: 0; padding: 0; background: none; color: inherit; text-align: left; font: inherit; }
.card__tile { position: relative; aspect-ratio: 1; border-radius: var(--r); background: var(--birch); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
/* the product photo's grey studio ground melts into the birch tile */
.card__tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease), opacity .3s; }
.card__tile::after { content: ""; position: absolute; left: 50%; bottom: -30%; width: 60%; height: 70%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(255 255 255 / .55), transparent); filter: blur(14px); opacity: 0; pointer-events: none; }
.card:hover .card__tile, .card:focus-visible .card__tile { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgb(0 0 0 / .9); }
.card:hover .card__tile img { transform: scale(1.03); }
.card:hover .card__tile::after { animation: wisp 2.8s var(--ease) infinite; }
@keyframes wisp { 0% { opacity: 0; transform: translate(-50%, 0) scaleX(.7); } 35% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -110%) scaleX(1.3); } }
.card__meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.card__name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.card__design { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.card__price { font-weight: 700; white-space: nowrap; }
.dots { display: flex; gap: 5px; margin-top: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
/* photos warm up once on first load: grey and dim to full colour */
.grid.is-first .card__tile img { animation: warm 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes warm { from { filter: grayscale(1) brightness(.75); opacity: .4; } to { filter: none; opacity: 1; } }
.empty { color: var(--muted); padding-bottom: 72px; }

/* Product sheet */
.sheet { width: min(1040px, 100% - 32px); max-height: min(720px, 100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); display: none; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.sheet[open] { display: grid; animation: sheet-in .35s var(--ease); }
.sheet::backdrop { background: rgb(8 6 5 / .72); backdrop-filter: blur(3px); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.sheet > form { position: absolute; right: 0; top: 0; z-index: 2; }
.sheet__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(20 17 15 / .7); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.sheet__close:hover { background: var(--bg); }
.sheet__media { background: var(--birch); display: grid; place-items: center; min-height: 360px; }
.sheet__media img { width: 100%; height: 100%; max-height: 720px; object-fit: contain; mix-blend-mode: multiply; transition: opacity .25s; }
.sheet__body { padding: 40px 36px 32px; overflow: auto; }
.sheet__design { margin: 0; color: var(--ember); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.sheet h2 { margin: 6px 0 4px; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -0.025em; }
.sheet__price { margin: 0 0 24px; font-size: 22px; font-weight: 700; }
.sheet__price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.pricenote { margin: -14px 0 18px; color: var(--muted); font-size: 13px; }
.swatches { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.swatches legend { padding: 0; margin-bottom: 10px; color: var(--muted); font-size: 15px; }
.swatches legend span { color: var(--ink); font-weight: 600; }
.sw { width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; padding: 4px; background: none; cursor: pointer; transition: transform .15s, border-color .2s; }
.sw i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.sw:hover { transform: scale(1.06); }
.sw[aria-pressed="true"] { border-color: var(--ink); }
.sheet__text { color: var(--muted); margin: 0 0 24px; }
.buy { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: var(--ember); color: var(--ember-ink); font-weight: 700; text-decoration: none; transition: transform .15s, filter .2s; }
.buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.buy:active { transform: translateY(1px) scale(.99); }
.sheet__note { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.facts { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px; border: solid var(--ember); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

/* Footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-block: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; text-decoration: none; background: linear-gradient(currentColor, currentColor) 8px calc(100% - 12px) / 0 1px no-repeat; transition: background-size .25s var(--ease), color .2s; }
.foot a:hover { color: var(--ink); background-size: calc(100% - 16px) 1px; }

@media (max-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .intro { padding-top: 32px; }
  .sheet { grid-template-columns: 1fr; width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
  .sheet__media { min-height: 0; aspect-ratio: 1; }
  .sheet__body { padding: 24px 20px 32px; }
  .card__meta { flex-direction: column; gap: 2px; }
  /* one swipeable row of chips, so the products start on the first screen */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  /* the buy button stays in reach while the sheet scrolls */
  .sheet__cta { position: sticky; bottom: 0; margin: 0 -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .sheet[open] { display: block; overflow-y: auto; }
  .sheet__body { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.facts a { color: inherit; }
.legal { max-width: 68ch; padding-block: 40px 64px; }
.legal h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; margin: 0 0 12px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal a { color: inherit; }
