/* Timberli — Sunlit Wooden Toybox Static Site Stylesheet
 * Palette tokens synced with packages/studio-kit/palette.json
 * Zero external fonts, zero trackers, warm low-saturation sensory-safe design.
 */

:root {
  --linen-bg: #efe7da;
  --window-cream: #f2eadf;
  --card-surface: #f5efe4;
  --beech-light: #e2c9a6;
  --beech-mid: #cca97e;
  --beech-groove: #b58e63;
  --walnut-ink: #5a4738;
  --walnut-soft: #756050;
  --pine-deep: #5e7a63;
  --pine-mid: #728f75;
  --pine-tip: #8ba489;
  --coral-target: #d47259;
  --ochre-warm: #d6a85e;
  --slate-blue: #7695ac;
  --candle-glow: #f0cf86;
  --meadow-soft: #cfd8c4;
  --rug-oat: #ddd0bc;
  --pebble-ui: #e6dbc8;
  --pebble-active: #d7c6ac;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 12px 32px rgba(90, 71, 56, 0.08), 0 2px 6px rgba(90, 71, 56, 0.05);
  --shadow-card: 0 8px 22px rgba(90, 71, 56, 0.06), 0 1px 3px rgba(90, 71, 56, 0.04);
  --shadow-device: 0 24px 60px rgba(90, 71, 56, 0.14), 0 6px 16px rgba(90, 71, 56, 0.08);

  --font-display:
    ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Segoe UI", system-ui, -apple-system,
    sans-serif;
  --font-body: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--linen-bg);
  color: var(--walnut-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 640px at 82% -10%, rgba(240, 207, 134, 0.24), transparent 62%),
    radial-gradient(900px 560px at 8% 14%, rgba(207, 216, 196, 0.28), transparent 58%),
    var(--linen-bg);
  color: var(--walnut-ink);
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pine-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-target);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--walnut-ink);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-top: 0;
}

.container {
  width: min(var(--max-width), 100% - 2.5rem);
  margin-inline: auto;
}

.container--narrow {
  width: min(760px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(239, 231, 218, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(181, 142, 99, 0.22);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--walnut-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(90, 71, 56, 0.14);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--walnut-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--walnut-ink);
}

.lang-switcher {
  display: inline-flex;
  background: var(--pebble-ui);
  border: 1px solid rgba(181, 142, 99, 0.3);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--walnut-soft);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}

.lang-btn[aria-pressed="true"] {
  background: var(--window-cream);
  color: var(--walnut-ink);
  box-shadow: 0 1px 3px rgba(90, 71, 56, 0.12);
}

/* Buttons & Pills */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--pine-deep);
  color: var(--window-cream);
  box-shadow: 0 6px 18px rgba(94, 122, 99, 0.24);
}

.btn--primary:hover {
  background: #526d57;
  color: var(--window-cream);
}

.btn--secondary {
  background: var(--pebble-ui);
  color: var(--walnut-ink);
  border-color: rgba(181, 142, 99, 0.35);
}

.btn--secondary:hover {
  background: var(--pebble-active);
  color: var(--walnut-ink);
}

.btn--coral {
  background: var(--coral-target);
  color: var(--window-cream);
  box-shadow: 0 6px 18px rgba(212, 114, 89, 0.22);
}

.btn--coral:hover {
  background: #c4654d;
  color: var(--window-cream);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pine-deep);
  background: rgba(139, 164, 137, 0.2);
  border: 1px solid rgba(94, 122, 99, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--walnut-ink);
  background: var(--window-cream);
  border: 1px solid rgba(181, 142, 99, 0.28);
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pine-mid);
  flex-shrink: 0;
}

.pill-dot--coral {
  background: var(--coral-target);
}
.pill-dot--ochre {
  background: var(--ochre-warm);
}
.pill-dot--slate {
  background: var(--slate-blue);
}

/* Hero */
.hero {
  padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4.5vw, 3.8rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.45rem);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  color: var(--walnut-soft);
  margin: 0 0 1.6rem;
  max-width: 52ch;
}

.device-frame {
  background: linear-gradient(155deg, var(--beech-light), var(--beech-mid));
  padding: clamp(10px, 1.4vw, 16px);
  border-radius: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-device);
  border: 1px solid rgba(181, 142, 99, 0.45);
}

.device-screen {
  border-radius: clamp(14px, 2vw, 22px);
  overflow: hidden;
  background: var(--window-cream);
  aspect-ratio: 4 / 3;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0 0.4rem;
  font-size: 0.84rem;
  color: var(--walnut-soft);
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--tinted {
  background: rgba(242, 234, 223, 0.65);
  border-top: 1px solid rgba(181, 142, 99, 0.18);
  border-bottom: 1px solid rgba(181, 142, 99, 0.18);
}

.section-header {
  max-width: 660px;
  margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--walnut-soft);
  font-size: 1.05rem;
}

/* Image-Heavy Showcase Bento */
.bento-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.4rem;
}

.bento-stack {
  display: grid;
  gap: 1.4rem;
}

.media-card {
  background: var(--card-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(181, 142, 99, 0.25);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.media-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--rug-oat);
}

.media-card--tall .media-card__img {
  aspect-ratio: 4 / 3;
  flex: 1;
}

.media-card__body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.media-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.media-card__body p {
  margin: 0;
  color: var(--walnut-soft);
  font-size: 0.95rem;
}

/* Winter Shelf Toy Gallery */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.toy-card {
  background: var(--card-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(181, 142, 99, 0.26);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.toy-card--featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}

.toy-card__media {
  position: relative;
  background: var(--rug-oat);
  aspect-ratio: 4 / 3;
}

.toy-card--featured .toy-card__media {
  height: 100%;
  aspect-ratio: auto;
  min-height: 260px;
}

.toy-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.badge--free {
  background: var(--pine-deep);
  color: var(--window-cream);
}

.badge--pack {
  background: rgba(242, 234, 223, 0.94);
  color: var(--walnut-ink);
  border: 1px solid rgba(181, 142, 99, 0.35);
}

.toy-card__content {
  padding: 1.25rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.toy-card__content h3 {
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
}

.toy-card__content p {
  margin: 0;
  color: var(--walnut-soft);
  font-size: 0.94rem;
}

/* Promise Grid */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.promise-card {
  background: var(--card-surface);
  border: 1px solid rgba(181, 142, 99, 0.24);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  box-shadow: var(--shadow-card);
}

.promise-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--pebble-ui);
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
  color: var(--pine-deep);
}

.promise-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.4rem;
}

.promise-card p {
  margin: 0;
  color: var(--walnut-soft);
  font-size: 0.94rem;
}

/* Pricing Comparison */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--card-surface);
  border-radius: var(--radius-lg);
  padding: 1.9rem;
  border: 1.5px solid rgba(181, 142, 99, 0.28);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.price-card--highlight {
  background: linear-gradient(160deg, var(--window-cream), rgba(226, 201, 166, 0.32));
  border-color: var(--beech-groove);
  box-shadow: var(--shadow-soft);
}

.price-tag {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--walnut-ink);
  margin: 0.4rem 0 0.2rem;
}

.price-sub {
  font-size: 0.9rem;
  color: var(--walnut-soft);
  margin: 0 0 1.2rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.96rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pine-deep);
  font-weight: 800;
}

/* Newsletter Card */
.newsletter-box {
  background: linear-gradient(145deg, var(--window-cream), rgba(207, 216, 196, 0.42));
  border: 1.5px solid rgba(181, 142, 99, 0.32);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  font: inherit;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(181, 142, 99, 0.45);
  background: var(--window-cream);
  color: var(--walnut-ink);
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--pine-mid);
  outline-offset: 2px;
}

.form-note {
  width: 100%;
  font-size: 0.82rem;
  color: var(--walnut-soft);
  margin: 0.25rem 0 0;
}

/* Prose / Subpages (Privacy, Support, Press, Impressum) */
.page-hero {
  padding: clamp(2.6rem, 5vw, 4rem) 0 1.8rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  margin-bottom: 0.6rem;
}

.prose-card {
  background: var(--card-surface);
  border: 1px solid rgba(181, 142, 99, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.prose-card h2 {
  font-size: 1.45rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
}

.prose-card h2:first-child {
  margin-top: 0;
}

.prose-card p,
.prose-card li {
  color: var(--walnut-soft);
}

.prose-card strong {
  color: var(--walnut-ink);
}

.callout {
  background: rgba(207, 216, 196, 0.34);
  border-left: 4px solid var(--pine-deep);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: var(--walnut-ink);
}

.callout--todo {
  background: rgba(240, 207, 134, 0.28);
  border-left-color: var(--coral-target);
}

.faq-item {
  border-bottom: 1px solid rgba(181, 142, 99, 0.22);
  padding: 1.15rem 0;
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  color: var(--walnut-ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--pine-deep);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0.7rem 0 0;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  padding: 2.6rem 0 3.2rem;
  border-top: 1px solid rgba(181, 142, 99, 0.24);
  color: var(--walnut-soft);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--walnut-soft);
}

.footer-links a:hover {
  color: var(--walnut-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note--ok {
  color: var(--pine-deep);
  font-weight: 600;
}

.form-note--err {
  color: var(--coral-target);
  font-weight: 600;
}

.m-0 {
  margin: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.pt-0 {
  padding-top: 0;
}
.muted-lead {
  color: var(--walnut-soft);
  margin: 0;
}
.square-media {
  aspect-ratio: 1 / 1;
}

.not-found-main {
  padding: 5rem 0;
  text-align: center;
}

.not-found-icon {
  margin: 0 auto 1.25rem;
  border-radius: 18px;
}

.not-found-copy {
  color: var(--walnut-soft);
  max-width: 44ch;
  margin: 0 auto 1.75rem;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid,
  .bento-grid,
  .newsletter-box,
  .pricing-grid,
  .press-grid {
    grid-template-columns: 1fr;
  }

  .shelf-grid,
  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toy-card--featured {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .shelf-grid,
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .toy-card--featured {
    grid-column: span 1;
  }

  .nav-links {
    gap: 0.9rem;
  }
}
