/* ═══════════════════════════════════════════════
   The Parson — shared site styles
   Font link tags are kept in each HTML file.
   ═══════════════════════════════════════════════ */

:root {
  --parson-green: #376f02;
  --paper: #fffdf5;
  --ink: #111;
  --separator: #2d572c;
  --rule-light: #b0b8a8;
  --max-width: 1020px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--parson-green) url('/static/black-orchid.png');
  font-family: 'Source Serif 4', serif;
  color: var(--ink);
}

a:link, a:visited { color: var(--parson-green); text-decoration: none; }
a:hover, a:focus  { text-decoration: underline; }

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

/* ── Outer container ── */
.container {
  max-width: var(--max-width);
  margin: 24px auto;
  background: var(--paper) url('/static/paper-fibres.png');
  background-size: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  border: 1px solid #bbb;
}

/* ── Publication info bar ── */
.pub-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  font-size: 13px;
  font-style: italic;
  background: var(--parson-green);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
}

/* ── Masthead ── */
.masthead-wrap {
  background: var(--parson-green);
  padding: 20px 20px 18px;
}

.masthead {
  text-align: center;
}

.masthead h1 {
  font-family: 'Source Serif 4', serif;
  font-size: 128px;
  font-optical-sizing: auto;
  margin: 0;
  letter-spacing: 10px;
  color: var(--paper);
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

/* Plain link on sub-pages */
.masthead h1 a,
.masthead h1 a:link,
.masthead h1 a:visited { color: var(--paper); text-decoration: none; }
.masthead h1 a:hover   { text-decoration: none; }

.masthead .tagline {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-top: 10px;
}

/* Legacy rule elements — hidden now masthead is a solid colour block */
.masthead-top-rule,
.masthead-bottom-rule,
.masthead-bottom-rule2 { display: none; }

/* ── Footer ── */
.footer {
  text-align: center;
  font-size: 12px;
  padding: 10px 12px;
  border-top: 1px solid var(--rule-light);
  color: #666;
  letter-spacing: 1px;
  font-style: italic;
}

/* ── Fixed SEO link ── */
.seo-link {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 11px;
  opacity: 0.6;
  z-index: 1000;
}
.seo-link a { color: #777; text-decoration: none; }
.seo-link a:hover { text-decoration: underline; }

/* ── Responsive masthead ── */
@media (max-width: 1000px) {
  .masthead h1     { font-size: 88px; }
  .masthead .tagline { font-size: 12px; letter-spacing: 3px; }
}

@media (max-width: 550px) {
  .masthead h1     { font-size: 52px; letter-spacing: 5px; }
  .masthead .tagline { font-size: 10px; letter-spacing: 2px; }
  .pub-info-bar {
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
    text-align: center;
  }
}

/* ════════════════════════════════════════════════
   Print stylesheet
   ════════════════════════════════════════════════ */
@media print {
  body {
    background: #fff !important;
    font-size: 11pt;
  }

  .container {
    box-shadow: none;
    border: none;
    margin: 0;
    max-width: 100%;
    background: #fff !important;
  }

  .pub-info-bar {
    border-bottom: 1px solid #000;
    color: #000;
  }

  .masthead h1 {
    font-size: 64pt;
    letter-spacing: 6pt;
  }

  .masthead .tagline {
    letter-spacing: 3pt;
  }

  .masthead-top-rule  { border-top-width: 3pt; }
  .masthead-bottom-rule { border-top-width: 1.5pt; border-bottom-width: 0.5pt; }

  /* Don't append URL text after links */
  a[href]::after { content: none !important; }

  .seo-link,
  .logo-area { display: none; }

  /* Let columns break naturally for print */
  .main-story p { column-count: 2; }
  .below { display: block; }
  .stories-col { border-right: none; }
  aside { border-top: 1pt solid #000; padding-top: 12pt; }

  /* Avoid page breaks inside article blocks */
  .sub-story,
  .content-card,
  .answer-block { break-inside: avoid; }
}
