:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --ink: #1d1b18;
  --muted: #5d5850;
  --line: #e4ddd2;
  --accent: #0f5c5c;
  --accent-soft: #e3efee;
  --warm: #b4532a;
  --code: #f3eee6;
  --max: 46rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --card: #1e1c19;
    --ink: #efe9df;
    --muted: #b1a99c;
    --line: #34302a;
    --accent: #6fc2bd;
    --accent-soft: #1d3332;
    --warm: #e58a5f;
    --code: #24211d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 18px/1.65 "Inter", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.7rem; margin: 3.2rem 0 0.8rem; }
h3 { font-size: 1.2rem; margin: 1.6rem 0 0.4rem; }
p, li { max-width: var(--max); }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 16px; }
header.site {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
header.site .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand span { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
nav a { margin-left: 1rem; font-size: 0.95rem; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }
.hero { padding: 4.5rem 0 2.5rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--warm); font-weight: 600; margin: 0 0 0.8rem; }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 40rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 16px; margin: 1.2rem 0; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.2rem 1.3rem;
}
.card h3 { margin-top: 0; }
.card p { margin: 0.4rem 0 0.8rem; font-size: 0.97rem; }
.card a.go { font-weight: 600; text-decoration: none; }
.senses { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 16px; margin: 1rem 0; }
.senses .card { border-top: 4px solid var(--accent); }
.parts { counter-reset: p; list-style: none; padding: 0; }
.parts li { counter-increment: p; position: relative; padding-left: 2.4rem; margin: 0.7rem 0; }
.parts li::before {
  content: counter(p); position: absolute; left: 0; top: 0.1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 0.9rem; text-align: center; line-height: 1.7rem;
}
.callout { background: var(--accent-soft); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; max-width: var(--max); }
.callout p { margin: 0.3rem 0; }
table { border-collapse: collapse; width: 100%; max-width: var(--max); font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { td:first-child { white-space: normal; } }
.pack { position: relative; margin: 1rem 0 2rem; }
.pack pre {
  background: var(--code); border: 1px solid var(--line); border-radius: 12px;
  padding: 2.9rem 1.2rem 1.2rem; white-space: pre-wrap; word-wrap: break-word;
  font: 0.88rem/1.55 ui-monospace, "SF Mono", Menlo, monospace;
  max-height: 32rem; overflow: auto; margin: 0;
}
button.copy {
  position: sticky; float: right; top: 8px; margin: 8px 8px -2.6rem 0; z-index: 2;
  background: var(--accent); color: var(--paper); border: 0; border-radius: 8px;
  padding: 0.45rem 0.9rem; font: 600 0.88rem "Inter", sans-serif; cursor: pointer;
}
.steps { padding-left: 1.3rem; }
.steps li { margin: 0.5rem 0; }
form.enquire { display: grid; gap: 0.8rem; max-width: 34rem; }
form.enquire label { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
form.enquire input, form.enquire textarea, form.enquire select {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font: inherit; font-size: 1rem;
}
form.enquire button {
  justify-self: start; background: var(--warm); color: #fff; border: 0; border-radius: 8px;
  padding: 0.7rem 1.2rem; font: 600 1rem "Inter", sans-serif; cursor: pointer;
}
.credit { font-size: 0.9rem; color: var(--muted); }
footer.site { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0 3rem; font-size: 0.9rem; color: var(--muted); }
footer.site p { margin: 0.3rem 0; }
.back { display: inline-block; margin: 2rem 0 0; font-size: 0.95rem; }
.charter {
  margin: 1.2rem 0; padding: 1.2rem 1.4rem; max-width: var(--max);
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--warm);
  border-radius: 12px; font-family: "Fraunces", Georgia, serif; font-size: 1.02rem;
}
.charter p { margin: 0.5rem 0; }
.doors .door { display: flex; flex-direction: column; }
.price { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; font-weight: 600; color: var(--warm); margin: 0.2rem 0 0.4rem !important; }
.partner { cursor: pointer; position: relative; }
.partner input { position: absolute; top: 1rem; right: 1rem; accent-color: var(--accent); }
.partner:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.log { display: flex; flex-direction: column; gap: 12px; margin: 1rem 0; }
.msg { max-width: 44rem; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.msg p { margin: 0.3rem 0; }
.msg.user { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.msg.waiting { color: var(--muted); font-style: italic; }
.composer { display: grid; gap: 0.6rem; max-width: 44rem; }
.composer textarea { width: 100%; padding: 0.7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; }
.composer button { justify-self: start; background: var(--accent); color: var(--paper); border: 0; border-radius: 8px; padding: 0.6rem 1.1rem; font: 600 1rem "Inter", sans-serif; cursor: pointer; }
.composer button:disabled { opacity: 0.5; }
button.linkish { background: none; border: 0; color: var(--accent); text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
