/* ============================================================
   One Dot Library — landing preview
   A single editorial flow: cover figure, then the copy in order,
   then a quiet colophon. Tokens from odl/: charcoal ink, orange
   dot, EB Garamond. Sky blue lives only in the poster artwork.
   ============================================================ */

@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/EBGaramond-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/EBGaramond-Italic-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue: #53a4dc; /* sky blue: poster artwork + CTA block tint */
  --ink: #2c2c2c;
  --paper: #ffffff;
  --dot: #fa4d1b;
  --rule: rgba(44, 44, 44, 0.25);
  --font: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--dot);
  color: var(--paper);
}

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--dot);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Single column flow ---------- */

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 3rem) clamp(2rem, 6vh, 4rem);
}

.cover {
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
  display: flex;
  justify-content: center;
}

.poster {
  width: min(400px, 100%);
  height: auto;
}

.text p {
  margin: 0 0 1.6em;
  font-size: 1.3rem;
  line-height: 1.7;
}

.title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.08;
}

.pull {
  font-style: italic;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  width: fit-content;
  margin: 0 auto;
  padding: 0.55em 1.6em;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.ig-icon {
  flex-shrink: 0;
}

.cta-block {
  margin: 2.5rem 0;
  padding: clamp(2rem, 5vh, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  background: color-mix(in srgb, var(--blue) 10%, var(--paper));
  text-align: center;
}

.cta-block .cta-line {
  margin: 1.25rem 0 0;
  text-align: center;
}

.dot {
  color: var(--dot);
  font-weight: 700;
}

/* ---------- Colophon ---------- */

.site-footer {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem clamp(1.5rem, 5vw, 3rem) 2.5rem;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  body { font-size: 1.15rem; }
  .poster { width: min(320px, 85vw); }
}
