:root {
  --bg: #f6f1ea; --surface: #fffdf9; --ink: #1d1a17; --muted: #6f665d; --line: #e3dbd0;
  --accent: #b5532f; --accent-ink: #fff; --ok: #2f6b45; --err: #a3302a;
  --radius: 14px; --serif: "Lora", Georgia, serif; --sans: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #15130f; --surface: #1f1c18; --ink: #f1ebe3; --muted: #a79d91; --line: #34302a;
          --accent: #e07a52; --accent-ink: #15130f; --ok: #6fbf8c; --err: #ef7c74; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.page-top { padding-top: 40px; padding-bottom: 56px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 1000; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; text-decoration: none; }
.logo.small { font-size: 1.05rem; }
.main-nav { display: flex; gap: 20px; align-items: center; margin-left: auto; }
.main-nav a { text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav .nav-cta { color: var(--accent); }
.langs { display: flex; gap: 4px; }
.langs a { text-decoration: none; font-size: .8rem; font-weight: 600; padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.langs a[aria-current] { background: var(--ink); color: var(--bg); }
.site-header .langs:first-child, .header-row > .logo + .langs { margin-left: auto; }
@media (max-width: 760px) {
  .header-row { gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
  .langs { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; gap: 16px; overflow-x: auto; font-size: .95rem; }
}

/* buttons, forms */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.form { display: grid; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 500; }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 13px; }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.alert p:last-child { margin: 0; }
.alert.error { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.alert.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); }

/* home + grid */
.hero-intro { padding-top: 56px; padding-bottom: 48px; }
.hero-intro h1 { max-width: 18ch; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.section-head a { color: var(--accent); font-weight: 500; text-decoration: none; }
.grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 56px; }
.card { text-decoration: none; display: block; }
.card-img { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.03); }
.card-body { padding-top: 12px; }
.card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.age { font-weight: 500; color: var(--muted); }
.occ { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.quote { font-family: var(--serif); font-style: italic; font-size: 1rem; margin: 0; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; text-align: center; margin-bottom: 56px; }
@media (prefers-reduced-motion: reduce) { .card-img img { transition: none; } }

/* story */
.story { padding-top: 28px; padding-bottom: 56px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.story-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.story-photos { display: grid; gap: 14px; }
.story-photos img { border-radius: var(--radius); width: 100%; height: auto; }
.story-text { position: sticky; top: 88px; }
.story-text .occ { font-size: 1.05rem; }
blockquote { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; margin: 20px 0 24px;
  padding-left: 18px; border-left: 3px solid var(--accent); }
.prose p { font-size: 1.06rem; }
.note { font-size: .9rem; color: var(--muted); background: var(--surface); border-radius: 8px; padding: 8px 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 24px 0; font-size: .9rem; }
.meta dt { color: var(--muted); } .meta dd { margin: 0; font-weight: 500; }
.route-chip { display: inline-block; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: .9rem; }
.share { display: flex; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-text { position: static; }
}

/* route */
.map { height: min(60vh, 480px); border-radius: var(--radius); border: 1px solid var(--line); margin: 24px 0 32px; z-index: 0; }
.pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent);
  color: #fff; font: 700 14px var(--sans); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.stops { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.stop { display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; scroll-margin-top: 90px; }
.stop.active { border-color: var(--accent); }
.stop-num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 700; }
.stop h2 { font-size: 1.25rem; margin-bottom: 2px; }
.stop-photo { border-radius: 10px; margin: 10px 0 14px; max-height: 320px; object-fit: cover; width: 100%; }
.hero-link { display: flex; gap: 12px; align-items: center; text-decoration: none; margin: 8px 0 12px; }
.hero-link img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hero-link small { display: block; color: var(--muted); }

/* consent */
.draft-badge { display: inline-block; background: #fff1c2; color: #6a4b00; font-size: .8rem; font-weight: 600;
  border-radius: 6px; padding: 4px 10px; }
.consent-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.consent-text.open { max-height: 46vh; overflow-y: auto; }
.consent-text h3 { font-family: var(--sans); font-size: 1rem; margin: 14px 0 4px; }
.consent-text p { font-size: .95rem; margin-bottom: 6px; }
.consent-text summary { cursor: pointer; font-weight: 600; }
.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.check.req { font-weight: 500; }
.sig { width: 100%; height: 180px; border: 1px solid var(--line); border-radius: 10px; background: #fff; touch-action: none; }
.consent-summary { list-style: none; padding: 0; display: grid; gap: 8px; }
.consent-summary .no { color: var(--muted); }
.personal-link { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; margin: 16px 0; }
.personal-link code { overflow-wrap: anywhere; flex: 1; font-size: .9rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-row p { margin: 0; font-size: .9rem; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
[hidden] { display: none !important; }
