/* Mobile-first styles. Phones are the main audience, so the base rules target small screens. */
/* Brand fonts, served from this site (not Google) so no visitor data leaves it.
   Licence files for both fonts are in /fonts. */
@font-face { font-family: "Playfair Display"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/fonts/playfair-display-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/montserrat-latin-500-normal.woff2") format("woff2"); }

/* Colours from Belinda's brand guide. */
:root {
  --terracotta: #C75A3A;
  --peach: #F7B8A6;
  --beige: #EADFD4;
  --brown: #6B4E3E;
  --cream: #FAF7F1;

  --bg: var(--cream);
  --text: var(--brown);
  --muted: #8a7062;
  --accent: var(--terracotta);
  --line: var(--beige);

  /* Brand fonts: Playfair Display Bold for headings, Montserrat for text.
     If a font file fails to load, phones fall back to the closest built-in font. */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

/* The logo in the header: about 140px wide on phones. */
.brand { display: block; line-height: 0; }
.brand img { width: 140px; height: auto; }

/* Big enough to tap with a thumb (at least 44px tall). */
.lang-switch {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border: 1px solid var(--peach);
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

main { flex: 1; padding: 32px 16px; max-width: 640px; width: 100%; margin: 0 auto; }

.hero h1 { font-family: var(--font-heading); font-weight: 700; color: var(--terracotta); font-size: 2.25rem; line-height: 1.1; margin: 0 0 16px; }
.hero p { margin: 0 0 12px; }
a { color: var(--accent); }

.disclosure {
  padding: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.disclosure p { margin: 0; }

@media (min-width: 768px) {
  main { padding: 64px 24px; }
  .hero h1 { font-size: 2.75rem; }
  .brand img { width: 180px; }
}

/* Rounded terracotta button, tall enough to tap easily. */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  margin-top: 8px;
  background: var(--terracotta);
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
}

/* The brand tagline above the main heading: small, spaced capitals like the logo's subtitle. */
.tagline {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown);
}

/* Footer links (Privacy, Disclosure). */
.footer-links { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.footer-links a { color: var(--muted); padding: 8px 0; display: inline-block; }

/* Text pages like Privacy and Disclosure. */
.text-page h1 { font-family: var(--font-heading); font-weight: 700; color: var(--terracotta); font-size: 2rem; line-height: 1.15; margin: 0 0 16px; }
.text-page h2 { font-weight: 500; font-size: 1.1rem; margin: 28px 0 8px; }
.text-page p { margin: 0 0 12px; }
.text-page .lead { font-size: 1.05rem; }
.text-page .updated { margin-top: 32px; color: var(--muted); font-size: 14px; }
