/* Brand: cream #f4f1ea, navy #0e2a3a, amber #e8a33d, teal #5fc4c4, deep teal #1f7a7a (logo.svg). */
:root {
  --bg: #f4f1ea; --surface: #fbf9f4; --text: #0e2a3a; --muted: #4f6470; --line: #ded8cb;
  --accent: #e8a33d; --accent-text: #0e2a3a; --link: #1f7a7a; --teal: #1f7a7a;
  --mark-bg: #0e2a3a; --hero-bg: #0e2a3a; --hero-text: #f4f1ea; --hero-muted: #b9c6cc;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b2230; --surface: #11303f; --text: #f4f1ea; --muted: #a9b8bf; --line: #21455a;
    --accent: #e8a33d; --accent-text: #0e2a3a; --link: #5fc4c4; --teal: #5fc4c4;
    --mark-bg: #0e2a3a; --hero-bg: #0e2a3a; --hero-text: #f4f1ea; --hero-muted: #b9c6cc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b2230; --surface: #11303f; --text: #f4f1ea; --muted: #a9b8bf; --line: #21455a;
  --accent: #e8a33d; --accent-text: #0e2a3a; --link: #5fc4c4; --teal: #5fc4c4;
  --mark-bg: #0e2a3a; --hero-bg: #0e2a3a; --hero-text: #f4f1ea; --hero-muted: #b9c6cc;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
a { color: var(--link); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.15; margin: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { scroll-margin-top: 72px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); transition: transform .3s ease; }
.topbar.away { transform: translateY(-100%); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 36px; height: 36px; display: block; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .name { font-family: Georgia, serif; font-size: 19px; letter-spacing: 3px; }
.brand .sub { font-family: Helvetica, Arial, sans-serif; font-size: 9px; letter-spacing: 5px; color: var(--teal); margin-top: 5px; padding-top: 4px; border-top: 1px solid var(--accent); }
.nav { display: flex; gap: 20px; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; color: var(--text); text-decoration: none; }
/* amber line: draws in from the left on hover / keyboard focus, leaves to the right */
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .6s ease; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
/* language switch: globe + the other language's code (the full name is for screen readers) */
.lang { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 44px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; transition: background-color .2s; }
.lang:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.lang svg { flex: none; width: 17px; height: 17px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.menu-btn, .sheet-close { display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; }
.menu-btn:hover, .sheet-close:hover { border-color: var(--accent); }

/* Phone menu: sheet that slides in from the right (header.js) */
.sheet { display: none; }
html.sheet-open { overflow: hidden; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-text); padding: 88px 0 96px; }
.hero .eyebrow { font-family: Helvetica, Arial, sans-serif; font-size: 12px; letter-spacing: 5px; text-transform: uppercase; color: #5fc4c4; margin: 0 0 20px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); max-width: 820px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--hero-muted); font-size: 19px; max-width: 640px; margin: 24px 0 36px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-block; font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 8px; padding: 11px 20px; background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent); }
.button:hover { filter: brightness(1.06); }
.button.ghost { background: transparent; color: var(--hero-text); border-color: #3b5a6b; }
.button.ghost:hover { border-color: #5fc4c4; }

/* Sections */
.block { padding: 80px 0; }
.block + .block { border-top: 1px solid var(--line); }
.kicker { font-family: Helvetica, Arial, sans-serif; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--teal); margin: 0 0 12px; }
.block h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 16px; }
.block .intro { color: var(--muted); max-width: 640px; margin: 0 0 40px; }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.products:has(> :only-child) { max-width: 640px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.product .tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 16px; background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.product .tag.soon { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); }
.product h3 { font-size: 24px; margin-bottom: 10px; }
.product p { color: var(--muted); margin: 0 0 16px; }
.product ul { margin: 0 0 24px; padding-left: 20px; color: var(--muted); }
.product li { margin: 4px 0; }
.product .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.product .more:hover { text-decoration: underline; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about p { margin: 0 0 16px; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li:first-child { padding-top: 0; }
.facts strong { display: block; font-family: Georgia, serif; font-weight: 400; font-size: 20px; }
.facts span { color: var(--muted); font-size: 15px; }

.contact { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 32px; }
.contact p { color: var(--muted); margin: 0 0 20px; max-width: 600px; }
.contact .mail { font-family: Georgia, serif; font-size: clamp(20px, 3vw, 26px); text-decoration: none; overflow-wrap: anywhere; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; gap: 16px 32px; flex-wrap: wrap; justify-content: space-between; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* 404 */
.lost { padding: 120px 0; }
.lost h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 16px; }
.lost p { color: var(--muted); margin: 0 0 28px; }

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar .wrap { gap: 4px; }
  .menu-btn, .sheet-close { display: grid; }
  .sheet { display: block; position: fixed; inset: 0; z-index: 20; visibility: hidden; transition: visibility 0s .3s; }
  .sheet.open { visibility: visible; transition: none; }
  .sheet-backdrop { position: absolute; inset: 0; background: rgb(5 18 26 / .55); opacity: 0; transition: opacity .3s ease; }
  .sheet.open .sheet-backdrop { opacity: 1; }
  .sheet-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(80vw, 320px); display: flex; flex-direction: column; padding: 10px 24px 32px; background: var(--bg); border-left: 1px solid var(--line); overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; }
  .sheet.open .sheet-panel { transform: none; box-shadow: -12px 0 32px rgb(0 0 0 / .2); }
  .sheet-close { align-self: flex-end; }
  .sheet-nav { display: flex; flex-direction: column; margin: 12px 0 28px; }
  .sheet-nav a { font-family: Georgia, serif; font-size: 15px; color: var(--text); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .sheet-nav a:hover { color: var(--link); }
  .hero { padding: 56px 0 64px; }
  .block { padding: 56px 0; }
  .about { grid-template-columns: 1fr; gap: 32px; }
  .product, .contact { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar, .nav a::after, .sheet, .sheet-backdrop, .sheet-panel { transition: none !important; }
}
