/* Self-hosted variable fonts (SIL OFL, see fonts/*-OFL.txt), same files as the deko:werft theme */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

/* Tokens from the deko:werft theme (theme.json) */
:root {
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --ink: #24262A;
  --muted: #4F535A;
  --accent: #B15533;       /* terracotta, colon of the wordmark */
  --line: #D9D4CC;
  --btn-bg: #24262A;
  --btn-ink: #FFFFFF;
  --tint-neutral: #E9E6DF;
  --tint-earth: #EFE6D2;
  --tint-pastel: #F6E3EC;
  --tint-cool: #E3EEF2;
  --swatch-edge: rgba(0, 0, 0, 0.12);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1C1D20;
    --surface: #26282C;
    --ink: #F1EEE9;
    --muted: #B9BBC0;
    --accent: #D9876A;
    --line: #3A3C41;
    --btn-bg: #F1EEE9;
    --btn-ink: #1C1D20;
    --tint-neutral: #2A2927;
    --tint-earth: #2E2A23;
    --tint-pastel: #2F272B;
    --tint-cool: #232B2E;
    --swatch-edge: rgba(255, 255, 255, 0.18);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1C1D20;
  --surface: #26282C;
  --ink: #F1EEE9;
  --muted: #B9BBC0;
  --accent: #D9876A;
  --line: #3A3C41;
  --btn-bg: #F1EEE9;
  --btn-ink: #1C1D20;
  --tint-neutral: #2A2927;
  --tint-earth: #2E2A23;
  --tint-pastel: #2F272B;
  --tint-cool: #232B2E;
  --swatch-edge: rgba(255, 255, 255, 0.18);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, .wordmark, .tile-title, .closing-text {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.colon { color: var(--accent); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) { .wrap { padding-left: 40px; padding-right: 40px; } }

/* Hero */
.hero { padding-top: clamp(40px, 8vw, 96px); padding-bottom: 56px; }
.hero h1 { margin: 0 0 24px; line-height: 1.05; }
.wordmark { display: block; font-size: clamp(3rem, 13vw, 7.5rem); white-space: nowrap; }
.h1-sub {
  display: block;
  margin-top: 16px;
  max-width: 18em;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
}
.lede { max-width: 36em; margin: 0 0 32px; color: var(--muted); font-size: 1.125rem; }
.cta-row { margin: 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 6fr 5fr; gap: 56px; }
  .wordmark { font-size: clamp(3rem, 8.5vw, 6.5rem); }
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 6px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
}
.btn::after { content: "\2192"; margin-left: 12px; transition: transform 0.15s ease; }
.btn:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn::after { transition: none; } }

/* Color stripe under the hero: the filament colors */
.stripe { display: flex; gap: 6px; margin-top: 48px; height: clamp(56px, 10vw, 96px); }
.stripe span {
  flex: 1;
  border-radius: 8px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px var(--swatch-edge);
}

h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.2; margin: 0 0 24px; }

/* Entry tiles */
.entries { padding-top: 24px; padding-bottom: 56px; }
.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 0 0 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--t);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile a:hover, .tile a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(36, 38, 42, 0.12);
}
@media (prefers-reduced-motion: reduce) {
  .tile a { transition: box-shadow 0.15s ease; }
  .tile a:hover, .tile a:focus-visible { transform: none; }
}
.tile-earth { --t: var(--tint-earth); }
.tile-neutral { --t: var(--tint-neutral); }
.tile-pastel { --t: var(--tint-pastel); }
.tile-cool { --t: var(--tint-cool); }
.tile-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 8px;
}
.tile-title, .tile-text { padding: 0 24px; }
.tile-title { font-size: 1.5rem; line-height: 1.2; }
.tile-title::after { content: " \2192"; color: var(--accent); }
.tile-text { color: var(--muted); font-size: 0.975rem; }

/* Color worlds */
.worlds {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .worlds { grid-template-columns: 5fr 7fr; gap: 64px; } }
.worlds-intro p { margin: 0 0 16px; color: var(--muted); max-width: 32em; }
.text-link { font-weight: 600; color: var(--ink) !important; }
.pair { margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair img { display: block; width: 100%; height: auto; border-radius: 8px; }
.pair figcaption { grid-column: 1 / -1; font-size: 0.9rem; color: var(--muted); }
.palette { margin: 0; display: grid; gap: 20px; }
.palette div { display: grid; gap: 8px; }
.palette dt { font-weight: 700; font-size: 0.95rem; }
.palette dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.palette dd span {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--c);
  box-shadow: inset 0 0 0 1px var(--swatch-edge);
}
/* Surface of the filament over the swatch, as in the shop (deko:werft
   _color-finish.scss): matte flat, PLA Basic a light sheen, Silk+ a bright band, Metallic
   several bands, Glitzer fine sparse sparkles, Holz a fine grain. */
.palette dd span, .stripe span { position: relative; }
:is(.f-gloss, .f-silk, .f-metal, .f-glitter, .f-wood)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}
.f-gloss::after { background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.1) 100%); }
.f-silk::after { background: linear-gradient(120deg, rgba(0, 0, 0, 0.14) 0%, rgba(255, 255, 255, 0.6) 45%, rgba(0, 0, 0, 0.16) 95%); }
.f-metal::after { background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(0, 0, 0, 0.22) 32%, rgba(255, 255, 255, 0.35) 58%, rgba(0, 0, 0, 0.3) 100%); }
.f-glitter::after {
  background:
    radial-gradient(circle at 22% 31%, rgba(255, 255, 255, 0.9) 0 0.5px, transparent 0.8px) 0 0 / 27px 21px,
    radial-gradient(circle at 71% 77%, rgba(255, 255, 255, 0.55) 0 0.4px, transparent 0.7px) 0 0 / 27px 21px,
    radial-gradient(circle at 46% 14%, rgba(255, 255, 255, 0.7) 0 0.45px, transparent 0.75px) 0 0 / 36px 46px,
    radial-gradient(circle at 86% 57%, rgba(255, 255, 255, 0.95) 0 0.5px, transparent 0.8px) 0 0 / 36px 46px,
    radial-gradient(circle at 13% 82%, rgba(255, 255, 255, 0.5) 0 0.4px, transparent 0.7px) 0 0 / 36px 46px,
    radial-gradient(circle at 61% 43%, #fff 0 0.65px, transparent 1px) 0 0 / 58px 49px;
}
.f-wood::after { background: repeating-linear-gradient(100deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 5px); }

/* Closing call to action */
.closing {
  padding-top: 48px;
  padding-bottom: 64px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.closing-text { margin: 0; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.25; max-width: 22em; }

/* Footer */
.foot {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 0.95rem;
  color: var(--muted);
}
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; }
@media (min-width: 768px) { .foot nav { margin-left: auto; } }

/* Legal pages */
.legal { max-width: 44rem; margin: 0 auto; padding: 40px 16px 72px; }
@media (min-width: 768px) { .legal { padding-left: 40px; padding-right: 40px; } }
.legal .back { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; text-decoration: none; }
.legal h1 { font-size: 2.2rem; line-height: 1.15; margin: 1.4em 0 0.6em; }
.legal h2 { font-family: "Manrope", system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; letter-spacing: 0; margin: 2em 0 0.4em; }
.legal address { font-style: normal; }
/* Footer of the legal pages: same column as the text, links left. */
.legal-foot { width: calc(100% - 32px); max-width: calc(44rem - 32px); margin: 0 auto; }
@media (min-width: 768px) { .legal-foot { width: calc(100% - 80px); max-width: calc(44rem - 80px); } .legal-foot nav { margin-left: 0; } }
