:root {
  --bg: #fbf9f5;
  --ink: #23201c;
  --muted: #6d665c;
  --line: #e3ddd2;
  --accent: #7a5c3e;
  --accent-soft: #f1e9dd;
  --max: 860px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header / nav ---------- */

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.05rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 12px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

nav.site-nav { margin-left: auto; }

nav.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.site-nav a {
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] { color: var(--ink); }
nav.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--accent); }

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
}

.lang-switch button {
  border: 1px solid transparent;
  background: none;
  font: inherit;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 3px 7px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-switch button:hover { background: var(--accent-soft); }
.lang-switch button[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--line);
  color: var(--ink);
}

/* ---------- page furniture ---------- */

main { padding: 44px 0 72px; }

.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); margin: 0 0 8px; font-weight: 400; }
.hero .dateline {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--muted);
}

h1, h2, h3 { font-weight: 400; line-height: 1.25; }
h2 { font-size: 1.5rem; margin: 44px 0 12px; }
h3 { font-size: 1.12rem; margin: 28px 0 6px; }

.lede { font-size: 1.1rem; color: var(--muted); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  background: #fff;
  margin: 18px 0;
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: .06em;
  font-size: .95rem;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.button:hover { background: var(--ink); color: #fff; }
.button[disabled] { opacity: .5; cursor: not-allowed; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  border-left: 2px solid var(--line);
  padding: 0 0 22px 20px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -6px; top: 8px;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.timeline .when {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- forms ---------- */

form label { display: block; margin: 16px 0 4px; font-size: .95rem; }

input[type="text"], input[type="email"], input[type="date"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: .95rem;
  background: #fff;
  color: var(--ink);
}

textarea { min-height: 96px; resize: vertical; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 22px 0;
  padding: 6px 18px 18px;
}
fieldset legend { padding: 0 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .95rem; }
.check input { margin-top: 6px; flex: 0 0 auto; }

.radio-row { display: flex; gap: 22px; flex-wrap: wrap; margin: 8px 0 0; }
.radio-row label { display: flex; gap: 8px; align-items: center; margin: 0; }

.hint { font-size: .85rem; color: var(--muted); margin: 4px 0 0; }

.notice {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: .95rem;
  border: 1px solid var(--line);
  background: var(--accent-soft);
}
.notice.error { background: #fdecec; border-color: #f0c4c4; }
.notice.ok { background: #eaf4ea; border-color: #c2ddc2; }

.guest-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px 18px;
  margin: 16px 0;
  background: #fff;
}
.guest-block > h3 { margin-top: 16px; }

[hidden] { display: none !important; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
}

.untranslated { border-bottom: 1px dotted #c99; }

@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-toggle { display: block; }
  nav.site-nav { flex-basis: 100%; margin-left: 0; }
  nav.site-nav[data-collapsed="true"] { display: none; }
  nav.site-nav ul { flex-direction: column; gap: 12px; padding-bottom: 14px; }
}
