/* rohrsheim.com: one stylesheet for every page. Colours are tokens, with a dark mode. */
@font-face {
  font-family: "Rohrsheims"; src: url("/assets/rohrsheims-display.0b85ad7d.woff2") format("woff2");
  font-display: swap;   /* David's own typeface (2018, Sasa Kojic); subset to "More coming soon." only */
}
:root {
  --bg: #f6f2ea; --card: #fbf8f2; --fg: #2a2620; --muted: #6d655a; --rule: #d9cfbf; --accent: #7a4a24;
  --de: #4f5d3a; --au: #8a4b1f; --prob: #4d6a8a; --poss: #a8650a;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1d1a16; --card: #25211c; --fg: #ece5d8; --muted: #a89e8f; --rule: #3a342c; --accent: #d39a6a;
          --de: #a9b98a; --au: #e0a275; --prob: #93acc8; --poss: #e6b04d; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.08rem/1.65 "Source Serif 4", Georgia, "Times New Roman", serif;
}
.wrap {
  max-width: 44rem; margin: 0 auto;
  padding-block: 40px 56px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: var(--accent); text-underline-offset: .15em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header and logo */
.masthead { text-align: center; }
.masthead.large { margin-bottom: 2em; }
.masthead.small { margin-bottom: 2.4em; }
.logo { display: block; width: min(100%, 30rem); margin: 0 auto; color: var(--fg); line-height: 0; }
.logo svg { display: block; width: 100%; height: auto; }
.masthead.small .logo { width: min(70%, 15rem); }
.eyebrow { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1em; }
.places { color: var(--accent); font-style: italic; margin: .9em 0 0; }
hr { border: 0; border-top: 1px solid var(--rule); width: 4rem; margin: 2em auto; }

/* text */
h1 { font-weight: 500; font-size: clamp(1.9rem, 6vw, 2.5rem); line-height: 1.15; margin: 1.2em 0 .2em; text-wrap: balance; }
h2 { font-weight: 500; font-size: 1.45rem; line-height: 1.25; margin: 2em 0 .5em; text-wrap: balance; }
h3 { font-weight: 600; font-size: 1.1rem; margin: 0 0 .25em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.lead { font-size: 1.2rem; color: var(--fg); }
.kicker { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.de .kicker { color: var(--de); } .au .kicker { color: var(--au); }
.date { font-variant-numeric: oldstyle-nums; color: var(--muted); font-size: .92rem; }
.maybe { font-style: italic; }

/* the two doors on the home page */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; margin: 2em 0 0; }
.door {
  display: block; min-width: 0; padding: 22px 22px 20px; background: var(--card); border: 1px solid var(--rule);
  border-top: 4px solid var(--c); border-radius: 6px; color: var(--fg); text-decoration: none;
}
.door:hover { border-color: var(--c); }
.door.de { --c: var(--de); } .door.au { --c: var(--au); }
.door h2 { margin: .2em 0 .35em; font-size: 1.35rem; }
.door p { margin: 0; color: var(--muted); font-size: .98rem; }
.door .go { display: inline-block; margin-top: .8em; color: var(--c); font-size: .9rem; letter-spacing: .04em; }

/* departures and timeline */
.journeys { display: grid; gap: 14px; margin: 1em 0 0; }
.journey { padding: 18px 20px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--de); border-radius: 6px; min-width: 0; }
.journey.home { border-left-color: var(--au); }
.journey .route { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .3em; }
.journey p:last-child { margin-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 1em 0 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 1.1em 1.3em; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--au); }
.timeline b { font-variant-numeric: lining-nums; }
.children { columns: 2 12rem; column-gap: 2rem; padding: 0; list-style: none; margin: .6em 0 1em; }
.children li { break-inside: avoid; padding: .1em 0; }
.children span { color: var(--muted); font-size: .9rem; font-variant-numeric: oldstyle-nums; }

/* villages */
.villages { display: grid; gap: 18px; margin: 1em 0 0; }
@media (min-width: 40rem) { .villages { grid-template-columns: 1fr 1fr; } }
.village { min-width: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.village img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.vtext { padding: 14px 16px 12px; }
.vtext h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.vtext p { font-size: .96rem; margin: 0 0 .6em; }
.vtext .credit, .credit { font-size: .76rem; color: var(--muted); margin: 0; }
.credit a, figcaption a { color: inherit; }
.timeline.de-line li::before { border-color: var(--de); }

/* photo */
figure { margin: 2em 0; }
figure img { display: block; width: 100%; height: auto; border-radius: 4px; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: .6em; line-height: 1.45; }
.bleed { margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); }
.bleed figcaption { padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
@media (min-width: 52rem) { .bleed { margin-inline: -4rem; } .bleed figcaption { padding-inline: 4rem; } }

/* footer */
footer { margin-top: 3em; text-align: center; color: var(--muted); font-size: .8rem; }
footer .soon { font-family: "Rohrsheims", "Avenir Next", "Futura", sans-serif; letter-spacing: .14em; font-size: .95rem; margin: 0 0 1.4em; color: var(--muted); }
footer .back { font-size: .95rem; margin: 0 0 1.6em; }
footer p { margin: 0 0 .5em; }
.invite { margin: 0 auto 2em; max-width: 30rem; padding: 14px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; font-size: .95rem; color: var(--fg); }
.invite p { margin: 0 0 .4em; } .invite .mail { margin: 0; }
