:root {
  --bg: #faf7f2;
  --bg-alt: #f2ebe1;
  --ink: #2e241d;
  --muted: #6e6157;
  --brown: #6b3f22;
  --brown-dark: #4f2d17;
  --line: #e4d9cb;
  --card: #ffffff;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: var(--brown-dark); }
h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 16px; }
h3 { margin: 0 0 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.note { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(250, 247, 242, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-title { height: 24px; width: auto; }
/* Inline wordmark: about the height of the capitals around it, sitting on the text baseline. */
.brand-word { display: inline; height: .9em; width: auto; vertical-align: -.15em; }
.nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--brown); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; padding: 6px 12px; cursor: pointer;
  font: 600 .85rem system-ui, sans-serif; color: var(--muted);
}
.lang button[aria-pressed="true"] { background: var(--brown); color: #fff; }

@media (max-width: 640px) {
  .nav { order: 3; flex-basis: 100%; gap: 14px; padding-bottom: 8px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .nav a { font-size: .9rem; }
  .hero { padding-top: 24px; }
  html { scroll-padding-top: 110px; }
  .brand { flex: 1; }
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-row { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--brown); font-weight: 600; margin: 0 0 8px; }
.hero-head { grid-column: 1 / -1; grid-row: 1; min-width: 0; }
/* One line; app.js shrinks it further if a language's title is too long for the screen. */
.hero h1 { font-size: clamp(1.4rem, 5vw, 3rem); line-height: 1.1; margin: 0; white-space: nowrap; }
.hero .lead { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.45; color: var(--ink); margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn { padding: 16px 32px; font-size: 1.1rem; box-shadow: 0 6px 16px rgba(107, 63, 34, .25); }
.hero-badge { display: inline-block; padding: 8px 16px; border: 1.5px solid var(--brown); border-radius: 999px; background: var(--card); color: var(--brown); font-weight: 600; font-size: .95rem; }
.hero-market { margin: 28px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; line-height: 1.3; color: var(--brown-dark); }
.hero-logo { width: 260px; max-width: 420px; justify-self: center; }
@media (max-width: 720px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-logo { max-width: 280px; grid-row: 2; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border: 0; border-radius: 999px;
  background: var(--brown); color: #fff; text-decoration: none; cursor: pointer;
  font: 600 1rem system-ui, sans-serif;
}
.btn:hover { background: var(--brown-dark); }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
/* While the Delivery section is hidden (shop not open yet), keep the backgrounds alternating. */
#delivery[hidden] + #legal { background: var(--bg); }
.prose > * { max-width: 46em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose h3 { margin-top: 32px; }
.story-img { width: 100%; margin: 24px 0 32px; border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(46, 36, 29, .14); }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 32px; }
.photo-row img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(46, 36, 29, .14); }
@media (max-width: 640px) {
  /* Phones: the three photos become a row you can swipe. */
  .photo-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%;
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; margin-bottom: 16px;
  }
  .photo-row img { scroll-snap-align: start; box-shadow: 0 4px 12px rgba(46, 36, 29, .14); }
}

/* Care symbols */
.care-icons { list-style: none; padding: 0 !important; margin: 8px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.care-icons li { margin: 0; color: var(--brown); }
.care-icons svg { display: block; width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.care-icons .care-socks svg { width: 96px; }
.care-icons .care-fill { fill: var(--bg-alt); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.why-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 40px; }
.why-grid p { margin: 0; color: var(--muted); }

.table-title { margin-bottom: 12px; }
.fibre-icon { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; border: 1.5px solid var(--brown); background: #fff; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
td:first-child { font-weight: 600; color: var(--brown-dark); }
tr:last-child td { border-bottom: 0; }
td { vertical-align: middle; }
th, td { text-align: center; }

/* Products */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 32px 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; background: var(--card); }
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.25rem; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; background: var(--bg-alt); color: var(--brown); padding: 3px 10px; border-radius: 999px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .buy { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--brown-dark); }

/* Legal and footer */
.legal { font-size: .95rem; }
.legal h3 { margin-top: 24px; font-size: 1.1rem; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.footer-row { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
