/* ==================================================================
   june5.is — Giacomo & Sólveig, 5 June 2027

   ALL the aesthetics of this site are the ~10 lines below. Every colour
   elsewhere in this file refers to one of these by name, so changing
   --accent once changes every button, link and rule on all seven pages.

   Palette: "Forest & Sea" — pine green for the forest, Adriatic teal
   for the sea, with a pale sand neutral so it doesn't read as cold.
   Two alternate variants are at the bottom of this file: paste one over
   the block below to switch the whole site in a single edit.
   ================================================================== */

:root {
  --bg:          #f6f8f6;  /* page background — barely-green off-white   */
  --ink:         #16241f;  /* body text — deep forest, not pure black    */
  --muted:       #5c7268;  /* dates, captions, hints — soft slate-green  */
  --line:        #d5e0d9;  /* borders, card edges, rules — pale sage     */
  --accent:      #1f6156;  /* buttons and links — where forest meets sea */
  --accent-soft: #e3efea;  /* notice boxes, image placeholders — seafoam */
  --sand:        #efe9dd;  /* warm counterpoint, used sparingly          */

  --max: 860px;            /* page width                                 */
  --radius: 10px;          /* corner rounding — raise for softer         */

  /* Your homepage photo. Upload it as public/images/hero.jpg, and this
     line picks it up automatically. Until then a soft seafoam band
     shows in its place, which looks deliberate rather than broken. */
  --hero-image: url('../images/hero.jpg');
}

* { 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(246, 248, 246, .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;
  color: var(--ink);
}

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);
}

/* ---------- photos ---------- */

/* Homepage hero band. Uses a CSS background rather than an <img> so a
   missing file degrades to a calm coloured band instead of a broken
   image icon — useful while the site is live but the photos aren't. */
.hero-photo {
  aspect-ratio: 3 / 2;
  max-height: 460px;
  background-color: var(--accent-soft);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center 40%;
  border-radius: var(--radius);
  margin: 0 0 30px;
  border: 1px solid var(--line);
}

/* Gallery. Any number of photos; the grid reflows on its own.
   Images are lazy-loaded, so guests on mobile roaming only download
   what they actually scroll to. */
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 26px 0;
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--accent-soft);
}

.gallery figcaption {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

/* A full-width photo used as a section break on inner pages. */
.photo-band {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--accent-soft);
  margin: 32px 0;
}

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

main { padding: 44px 0 72px; }

.hero { text-align: center; padding: 40px 0 24px; }
.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);
}

input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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: #fbeceb; border-color: #eec6c3; }
.notice.ok { background: var(--accent-soft); border-color: var(--accent); }

.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; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .photo-band { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ==================================================================
   ALTERNATE PALETTES

   To switch the whole site, copy one block below over the :root block
   at the top of this file. Keep the --max / --radius / --hero-image
   lines as they are.
   ------------------------------------------------------------------

   "Deep forest" — greener, darker, more woodland than water:

     --bg:          #f5f7f4;
     --ink:         #17231a;
     --muted:       #5f6f5c;
     --line:        #d8e0d4;
     --accent:      #2c5438;
     --accent-soft: #e6eee5;
     --sand:        #efe9dd;

   "Open water" — bluer, brighter, more Adriatic than pine:

     --bg:          #f5f8f9;
     --ink:         #14232a;
     --muted:       #5a7078;
     --line:        #d3e0e4;
     --accent:      #175f74;
     --accent-soft: #e0eef1;
     --sand:        #efe9dd;

   ================================================================== */
