:root {
  --bg: #f7f5f0;
  --fg: #1f2a44;
  --muted-fg: #5b6578;
  --card: #ffffff;
  --border: #e3dccb;
  --accent: #c76b4f;
  --sea-soft: #dceae8;
  --sea-deep: #3f6f6a;
  --sand-soft: #f3ede0;
  --btn-bg: #1f2a44;
  --btn-fg: #f7f5f0;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a2c;
    --fg: #f3efe6;
    --muted-fg: #aab3c4;
    --card: #1a2340;
    --border: #2c3858;
    --accent: #d9866b;
    --sea-soft: #24384a;
    --sea-deep: #a9cfca;
    --sand-soft: #222b44;
    --btn-bg: #e9dfc9;
    --btn-fg: #1f2a44;
  }
}
:root[data-theme="dark"] {
  --bg: #121a2c; --fg: #f3efe6; --muted-fg: #aab3c4; --card: #1a2340; --border: #2c3858;
  --accent: #d9866b; --sea-soft: #24384a; --sea-deep: #a9cfca; --sand-soft: #222b44; --btn-bg: #e9dfc9; --btn-fg: #1f2a44;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { height: 28px; width: auto; color: var(--fg); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; letter-spacing: 0.3em; }
.brand-name small { margin-top: 4px; font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.32em; color: var(--sea-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn-accent { background: var(--accent); color: #fff; }

.eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--sea-deep); margin: 0 0 12px; }
h1, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); }
h1 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.05rem; margin: 0 0 6px; }

.hero { padding: 40px 0 56px; display: grid; gap: 32px; }
.hero p.lead { font-size: 1.1rem; color: var(--muted-fg); max-width: 38rem; margin: 20px 0 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { font-size: 0.85rem; color: var(--muted-fg); margin-top: 14px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.card p { margin: 0; color: var(--muted-fg); font-size: 0.95rem; }
.icon { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; background: var(--sea-soft); color: var(--sea-deep); margin-bottom: 14px; }
.icon svg { width: 20px; height: 20px; }

section.block { padding: 48px 0; }
section.block > h2 { margin-bottom: 20px; }
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .principles { grid-template-columns: repeat(2, 1fr); } }
.principles li { background: var(--sand-soft); border-radius: 16px; padding: 18px 20px; }
.principles strong { display: block; margin-bottom: 4px; }
.principles span { color: var(--muted-fg); font-size: 0.95rem; }

.prose { padding-top: 16px; padding-bottom: 64px; }
.prose > * { max-width: 46rem; }
.prose h1 { font-size: clamp(2.2rem, 6vw, 3rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.6rem; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--fg); }
.prose .updated { color: var(--muted-fg); font-size: 0.9rem; margin: 0 0 28px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 12px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 700; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 0.88rem; color: var(--muted-fg); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 10;
  max-width: 560px; margin: 0 auto;
  background: var(--card); color: var(--fg); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 12px 40px rgba(31, 42, 68, 0.18); padding: 20px;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 14px; font-size: 0.92rem; }
.consent .actions { display: flex; flex-wrap: wrap; gap: 10px; }
