/* Hello Bertie — editorial / "newspaper" theme
   Palette and feel inspired by the first-pass Lovable draft. */

:root {
  --cream:        #fcfbf8;
  --cream-soft:   #f4f1e8;
  --ink:          #1a2240;
  --ink-soft:     rgba(26, 34, 64, 0.72);
  --ink-muted:    rgba(26, 34, 64, 0.55);
  --rule:         rgba(26, 34, 64, 0.85);
  --rule-soft:    rgba(26, 34, 64, 0.18);
  --accent:       #2b3a7a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
}

body {
  font-family: "Iowan Old Style", "Iowan Old Style BT", "Source Serif Pro",
               "Georgia", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; }

/* ---------- shared layout ------------------------------------- */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.kicker {
  font-family: "Helvetica Neue", "Inter", "Arial", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.rule-soft {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  margin: 2rem 0;
}

/* ---------- masthead / nav ------------------------------------ */

.masthead {
  padding: 1.75rem 1.5rem 0.75rem;
}

.masthead-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead .vol { display: inline-flex; align-items: center; gap: 0.6rem; }

.flag {
  width: 22px;
  height: 13px;
  border: 1px solid var(--rule-soft);
  display: inline-block;
  vertical-align: middle;
}

.masthead hr.rule {
  max-width: 760px;
  margin: 1rem auto 0;
}

/* ---------- logo badge ---------------------------------------- */

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}
.logo-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }

.logo-badge.small { width: 112px; height: 112px; }

/* ---------- hero (home) --------------------------------------- */

.hero {
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}

.hero-figure {
  margin: 1.5rem auto 0;
  max-width: 520px;
}
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-caption {
  font-family: "Caveat", "Bradley Hand", "Segoe Script", cursive;
  font-size: 1.7rem;
  margin-top: 0.5rem;
  color: var(--ink);
}

.hero h1 {
  font-family: "Iowan Old Style", "Source Serif Pro", "Georgia", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  line-height: 1.05;
  margin: 2.25rem 0 1.25rem;
}

.hero p.lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 auto;
}

/* ---------- waitlist form ------------------------------------- */

.waitlist {
  max-width: 28rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.waitlist .label {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
}

.waitlist .field {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.4rem;
}

.waitlist input[type="email"] {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  padding: 0.25rem 0;
}
.waitlist input[type="email"]::placeholder {
  color: var(--ink-muted);
  font-style: italic;
}

.waitlist button {
  border: 0;
  background: transparent;
  font-family: "Helvetica Neue", "Inter", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--ink);
  padding: 0.25rem 0;
}
.waitlist button:hover { font-style: italic; }

.waitlist .fine {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  margin-top: 1rem;
}

/* ---------- footer -------------------------------------------- */

.site-footer {
  padding: 2.5rem 1.5rem 2.5rem;
}
.site-footer-inner {
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}
.site-footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer p { color: var(--ink-muted); font-size: 0.8rem; line-height: 1.6; margin: 0.6rem 0 0; }
.site-footer a { color: var(--ink-muted); }

/* ---------- legal / policy pages ------------------------------ */

.doc-header {
  padding: 1.75rem 1.5rem 0;
  background: var(--cream);
}
.doc-header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.doc-header a.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.doc-header a.brand span {
  font-family: "Iowan Old Style", "Source Serif Pro", "Georgia", serif;
  font-style: italic;
  font-size: 1.1rem;
}

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.doc h1 {
  font-family: "Iowan Old Style", "Source Serif Pro", "Georgia", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 1.5rem 0 0.5rem;
}
.doc h2 {
  font-family: "Iowan Old Style", "Source Serif Pro", "Georgia", serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  margin: 2.2rem 0 0.6rem;
}
.doc h3 {
  font-family: "Helvetica Neue", "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 1.4rem 0 0.4rem;
}

.doc p, .doc li {
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.4rem; }
.doc li { margin: 0.3rem 0; }
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
.doc th, .doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
}
.doc th {
  font-family: "Helvetica Neue", "Inter", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}

.doc .meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0;
}

.doc .callout {
  border-left: 2px solid var(--rule);
  padding: 0.4rem 0 0.4rem 1rem;
  margin: 1.5rem 0;
  color: var(--ink-soft);
  font-style: italic;
}

.doc .toc {
  background: var(--cream-soft);
  border: 1px solid var(--rule-soft);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.doc .toc h3 { margin-top: 0; }
.doc .toc ol { margin: 0; padding-left: 1.2rem; }
.doc .toc li { font-size: 0.92rem; }
.doc .toc a { color: var(--ink); }

.doc .back-link {
  display: inline-block;
  font-family: "Helvetica Neue", "Inter", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 3rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.doc .back-link:hover { color: var(--ink); text-decoration: underline; }

/* ---------- single-message pages (contact, 404) -------------- */

.single {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.single .contact-link {
  font-family: "Iowan Old Style", "Source Serif Pro", "Georgia", serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--ink);
  text-underline-offset: 6px;
}

.huge {
  font-family: "Iowan Old Style", "Source Serif Pro", "Georgia", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.05;
  max-width: 18ch;
  color: var(--ink);
  margin: 0;
}

/* ---------- responsive ---------------------------------------- */

@media (max-width: 520px) {
  .masthead-inner { font-size: 0.65rem; }
  .hero { padding: 1.5rem 1rem 2.5rem; }
  .hero-caption { font-size: 1.4rem; }
  .doc h1 { font-size: 2rem; }
  .site-footer .row { flex-direction: column; align-items: flex-start; }
}
