/* The Daily Paper — website.
   Warm paper, ink black, one editorial red, used only where something
   can be clicked. Serif throughout, hairline rules, small-caps labels.
   Mobile-first: one column by default; the front-page columns open up
   on wider screens. No images, nothing to load but type, and one small
   script on the home page that prints today's date. */

* { box-sizing: border-box; }

:root {
  --paper: #FAF7F1;
  --paper-deep: #F1EADA;
  --ink: #1B1712;
  --ink-soft: #5C5546;
  --accent: #9E2B25;
  --accent-dark: #84231E;
  --hairline: rgba(27, 23, 18, 0.28);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 5vw, 3rem) 4rem;
}

.page.narrow { max-width: 46rem; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Rules */

.rule-thick { border-top: 4px solid var(--ink); }
.rule-thin { border-top: 1px solid var(--ink); margin-top: 3px; }
.rule-set { margin: 0.6rem 0; }

/* Masthead (home hero) */

.masthead { text-align: center; }

.masthead .kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: 0.9rem 0 0;
  color: var(--ink-soft);
}

.wordmark {
  font-size: clamp(3rem, 11vw, 6.75rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.1rem 0 0.4rem;
}

.tagline {
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  font-style: italic;
  line-height: 1.3;
  margin: 0.4rem 0 1rem;
}

.dateline {
  font-size: clamp(0.78rem, 2.6vw, 0.92rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1.9;
  margin: 0;
  padding: 0.7rem 0 0.2rem;
}

/* Masthead (text pages, compact) */

.masthead.small .wordmark {
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  margin: 0.7rem 0 0.3rem;
}

/* Sections */

section { margin-top: clamp(2.8rem, 7vw, 4.5rem); }

.section-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 0.9rem;
  margin: 0 0 1.4rem;
}

.lede {
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  line-height: 1.55;
  max-width: 38em;
  margin: 0;
}

/* The five sections, as a printed index */

.index-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem 2.5rem;
}

.index-item { border-top: 2px solid var(--ink); padding-top: 0.75rem; }

.index-item .folio {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin: 0 0 0.3rem;
}

.index-item h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.index-item p { margin: 0; color: var(--ink-soft); }

/* The weather, a small printed box under the front page */

.weather {
  background: var(--paper-deep);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.85rem 1.1rem;
  margin-top: 1.8rem;
}

.weather p { margin: 0; text-align: center; }

/* How posting works */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem 2.5rem;
}

.step .numeral {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.step h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }
.step p { margin: 0; color: var(--ink-soft); }

/* The rules, in short */

.rules-line {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.rules p { max-width: 40em; }

/* The end of the edition */

.signoff { text-align: center; }

.signoff .caught-up {
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 1.8rem 0 0.5rem;
}

.signoff .under { color: var(--ink-soft); margin: 0; }

/* Beta block */

.beta {
  background: var(--paper-deep);
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
  padding: clamp(2rem, 6vw, 3.2rem) clamp(1.25rem, 5vw, 3rem);
  margin-top: clamp(2.8rem, 7vw, 4.5rem);
}

.beta .section-label { border-top: none; padding-top: 0; }

.beta h2 {
  font-size: clamp(1.8rem, 5.5vw, 2.7rem);
  line-height: 1.2;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin: 0 0 0.8rem;
}

.beta p { max-width: 34em; margin: 0.6rem auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.7rem;
  margin-top: 1.1rem;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.btn:hover { background: var(--accent-dark); color: var(--paper); }

.contact-line {
  text-align: center;
  margin-top: 2rem;
  color: var(--ink-soft);
}

/* Text pages (privacy, terms, support) */

.page-title {
  font-size: clamp(2rem, 6vw, 2.6rem);
  line-height: 1.15;
  font-weight: 700;
  text-align: center;
  margin: 1.6rem 0 0.5rem;
}

.updated {
  text-align: center;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

h2 {
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin: 2.2rem 0 0.6rem;
}

p { margin: 0.6rem 0; }

ul { margin: 0.6rem 0; padding-left: 1.4rem; }
li { margin: 0.3rem 0; }

.center { text-align: center; }

.big-email {
  font-size: clamp(1.15rem, 5.2vw, 1.55rem);
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
  overflow-wrap: anywhere;
}

.big-email.small { font-size: clamp(1.05rem, 4.6vw, 1.25rem); }

/* Footer */

footer {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.92rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0.6rem 0;
}

footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
}

footer .pledge { font-style: italic; margin: 0.4rem 0; }
footer .colophon { color: var(--ink-soft); margin: 0.2rem 0; }

/* Wide screens: the front page opens into columns */

@media (min-width: 720px) {
  .index-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 1080px) {
  .index-grid { grid-template-columns: 1fr 1fr 1fr; }
}
