/* ----------------------------------------------------------------------------
   Datsche guest site — full-bleed photo with a yellow info card, top-left.
   Tweak the variables below to recolour the whole thing.
---------------------------------------------------------------------------- */

:root {
  --ink: #141414;             /* text                  (blue scheme: #1A291A) */
  --card: #ffd400;            /* the yellow card       (blue scheme: #D1E4FE) */
  --rule: rgba(0, 0, 0, 0.22); /* thin dividers inside the card */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
}

/* Background photo ------------------------------------------------------ */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #2b2f24;   /* fallback while the photo loads */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* The card -------------------------------------------------------------- */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 1rem;
  max-width: 27rem;
  /* The page scrolls (not the card), so all four corners stay rounded
     and the photo behind stays fixed in place. */
}

.card__head { margin-bottom: 0.5rem; }

.card__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 0;
}

.card__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Content --------------------------------------------------------------- */
.content h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 650;
  font-size: 1.4rem;
  letter-spacing: 0;
  margin: 1.9rem 0 0.5rem;
}

.content h3 {
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0.9rem 0 0.15rem;
}

/* Collapsible section headings ------------------------------------------ */
.content h3.collapsible {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.content h3.collapsible::before {
  content: "☛";
  font-size: 0.95em;
  line-height: 1;
  transition: transform 0.15s ease;
}

.content h3.collapsible.is-open::before {
  transform: rotate(90deg);
}

.content h3.collapsible + .collapsible__body { margin-top: 0.4rem; }

.content p,
.content ul,
.content ol { margin: 0.5rem 0; }

.content ul,
.content ol { padding-left: 1.4rem; }

.content li { margin: 0.2rem 0; }

/* Bespoke list bullet — swap the character in content to taste */
.content ul li::marker {
  content: "_  ";
  font-weight: 700;
}

.content a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content a:hover { text-decoration: none; }

.content strong { font-weight: 700; }

.content code {
  background: rgba(0, 0, 0, 0.12);
  padding: 0.08em 0.32em;
  border-radius: 4px;
  font-size: 0.92em;
}

.content blockquote {
  margin: 0.9rem 0;
  padding: 0.25rem 0 0.25rem 0.8rem;
  border-left: 3px solid rgba(0, 0, 0, 0.45);
}

/* Link buttons ---------------------------------------------------------- */
.card__links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.card__links a {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 14px;          /* matches the card */
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.card__links a:active,
.card__links a:hover {
  background: var(--ink);
  color: var(--card);
}

/* Wider screens: keep the card snug in the corner, never full-bleed ----- */
@media (min-width: 30rem) {
  .card { margin: 1.5rem; }
}
