/* ==========================================================================
   "Warm paper magazine" — light, classic editorial.
   Paper with a generated grain · ink-brown masthead and colophon bands ·
   dateline between double rules · centred Bodoni headline with an italic
   burgundy accent · drop-capped standfirst · diamond-separated contents row ·
   numbered two-column entries · a framed pull-quote for the conclusion.
   Fonts: Bodoni Moda (display) + Lora (body) + Work Sans (labels).
   All layout on flexbox.
   ========================================================================== */

:root {
  /* Palette */
  --paper:    #efe6d6;
  --ink:      #2b2118;
  --ink-soft: rgba(43, 33, 24, 0.72);
  --burgundy: #7a1f2b;
  --mustard:  #c9922a;
  --on-ink:   rgba(239, 230, 214, 0.82);

  /* Type */
  --ff-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --ff-body:    "Lora", Georgia, "Times New Roman", serif;
  --ff-label:   "Work Sans", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --wrap:   1120px;
  --gutter: clamp(18px, 4vw, 48px);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  background: var(--paper) url("/assets/images/paper.jpg?v=2") repeat left top;
  color: var(--ink);
  font-family: var(--ff-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Rules ---------- */
.rule {
  height: 1px;
  background: var(--ink);
}

/* two 1px lines, 3px apart */
.rule--double {
  height: 4px;
  background:
    linear-gradient(var(--ink), var(--ink)) left top    / 100% 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 100% 1px no-repeat;
}

/* ---------- Labels (Work Sans, letter-spaced caps) ---------- */
.dateline__row,
.contents__list,
.finale__label,
.colophon__inner {
  font-family: var(--ff-label);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Masthead ---------- */
.masthead {
  background: var(--ink);
  border-bottom: 2px solid var(--mustard);
}

.masthead__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.masthead__brand { display: flex; align-items: center; }

.masthead__brand img {
  height: 46px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* placeholder wordmark (only until a per-domain logo file is dropped in) */
.brand-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); }
.brand-emblem { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--ff-display); font-size: 24px; font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }

/* ---------- Dateline ---------- */
.dateline {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 18px auto 0;
}

.dateline__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 11px 2px;
  color: var(--ink);
}

.dateline__item { white-space: nowrap; }

.dateline__dot,
.finale__dot { color: var(--mustard); margin: 0 0.35em; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 84px) var(--gutter) clamp(36px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.005em;
  max-width: 17ch;
  text-wrap: balance;
}

.hero__accent {
  font-style: italic;
  font-weight: 600;
  color: var(--burgundy);
}

.hero__lead {
  max-width: 68ch;
  margin-top: clamp(26px, 3vw, 40px);
  font-size: 19px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* three-line drop cap */
.dropcap {
  float: left;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 6.2em;
  line-height: 0.72;
  padding-top: 0.07em;
  margin: 0 0.1em 0 0;
  color: var(--burgundy);
}

/* ---------- Contents ---------- */
.contents {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 16px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.contents__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 8px;
}

.contents__list li { display: flex; align-items: center; }

.contents__list li + li::before {
  content: "\25C6";                 /* ◆ */
  color: var(--mustard);
  font-size: 9px;
  line-height: 1;
  margin: 0 16px;
}

.contents__label { color: var(--burgundy); }

.contents__list a {
  display: inline-block;
  padding: 4px 0 3px;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.contents__list a:hover,
.contents__list a.is-active {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

/* ---------- Entries ---------- */
.entries {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(16px, 2vw, 28px) var(--gutter) 0;
  display: flex;
  flex-direction: column;
}

.entry {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(36px, 4.5vw, 60px) 0;
}

.entry__head {
  flex: 0 0 30%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry__numeral {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 0.9;
  color: var(--burgundy);
}

.entry__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  text-wrap: balance;
}

.entry__body {
  flex: 1 1 0;
  min-width: 0;
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

/* a rule with a diamond at its centre */
.ornament {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg,
    var(--ink) 0 calc(50% - 18px),
    transparent calc(50% - 18px) calc(50% + 18px),
    var(--ink) calc(50% + 18px) 100%);
}

.ornament::before {
  content: "\25C6";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--mustard);
  font-size: 14px;
  line-height: 1;
}

/* ---------- Conclusion (pull-quote) ---------- */
.finale {
  width: min(880px, calc(100% - 2 * var(--gutter)));
  margin: clamp(28px, 4vw, 56px) auto clamp(64px, 8vw, 112px);
}

.finale__label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 0 8px;
  color: var(--ink-soft);
}

.finale__numeral { color: var(--burgundy); }

.finale__title {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.finale__quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(8px, 4vw, 48px) 34px;
}

.finale__mark {
  display: block;
  height: 50px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 116px;
  line-height: 1;
  color: var(--burgundy);
  user-select: none;
}

.finale__text {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.38;
  text-wrap: pretty;
}

/* ---------- Colophon ---------- */
.colophon {
  margin-top: auto;
  background: var(--ink);
  color: var(--on-ink);
  border-top: 2px solid var(--mustard);
}

.colophon__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  letter-spacing: 0.14em;
}

.colophon__brand { display: flex; align-items: center; }
.colophon__brand img { height: 30px; width: auto; }
.colophon__brand .brand-emblem { width: 24px; height: 24px; }
.colophon__brand .brand-name { font-size: 18px; }

.colophon__top {
  color: var(--mustard);
  border-bottom: 1px solid rgba(201, 146, 42, 0.5);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.colophon__top:hover { border-bottom-color: var(--mustard); }

/* ---------- Adaptive ---------- */
@media (max-width: 760px) {
  .masthead__inner { padding: 18px var(--gutter); }
  .masthead__brand img { height: 32px; }

  .dateline__row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 10px 0;
    font-size: 11px;
  }

  .hero { padding-top: 40px; }
  .hero__lead { font-size: 17px; line-height: 1.65; }

  /* two-line drop cap */
  .dropcap {
    font-size: 4.3em;
    line-height: 0.7;
    padding-top: 0.08em;
    margin-right: 0.12em;
  }

  .contents { padding: 14px 0; }
  .contents__list { font-size: 11px; row-gap: 6px; }
  .contents__list li + li::before { margin: 0 11px; }

  .entry {
    flex-direction: column;
    gap: 18px;
    padding: 34px 0;
  }

  .entry__head { flex: none; gap: 8px; }
  .entry__numeral { font-size: 44px; }
  .entry__title { font-size: 26px; }
  .entry__body { max-width: none; font-size: 17px; }

  .finale__mark { height: 40px; font-size: 92px; }
  .finale__quote { padding-bottom: 28px; }

  .colophon__inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 24px var(--gutter) 28px;
  }
}

@media (max-width: 400px) {
  .contents__label { flex-basis: 100%; justify-content: center; }
  .contents__label + li::before { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- Multi-paragraph copy (client text) ---------- */
.hero__lead + .hero__lead,
.entry__body p + p { margin-top: 1em; }
.finale__text + .finale__text { margin-top: 0.8em; }
