/* ===========================================================================
   The Domestic Times — shared newspaper theme
   Fonts: UnifrakturMaguntia (blackletter logotype), Playfair Display (display
   headlines), Libre Caslon Text (body), Libre Franklin (bylines/labels).
   =========================================================================== */

:root {
  --paper: #f6f1e4;         /* newsprint cream */
  --paper-edge: #efe8d6;
  --ink: #16130d;           /* near-black */
  --ink-soft: #453f33;
  --ink-faint: #6f685a;
  --rule: #26221a;          /* hairline rules */
  --rule-soft: #c9c0ab;
  --accent: #7a1113;        /* deep masthead red, used sparingly */
  --max: 1180px;
  --serif-display: "Playfair Display", "Times New Roman", serif;
  --serif-body: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --black-letter: "UnifrakturMaguntia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.5;
  /* faint paper tooth */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(0,0,0,0.015) 0, transparent 60%),
    radial-gradient(circle at 80% 90%, rgba(0,0,0,0.02) 0, transparent 55%);
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---- Rules ---------------------------------------------------------------- */
.rule        { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-thick  { border: 0; border-top: 3px solid var(--rule); margin: 0; }
.rule-double {
  border: 0;
  border-top: 3px double var(--rule);
  margin: 0;
}
.rule-soft   { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; }

/* ---- Masthead ------------------------------------------------------------- */
.masthead { text-align: center; padding: 26px 0 8px; }

.masthead .ears {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 6px;
}
.masthead .ears div { flex: 1; }
.masthead .ears .center { text-align: center; }
.masthead .ears .right { text-align: right; }

.logotype {
  font-family: var(--black-letter);
  font-weight: 400;
  line-height: 0.9;
  font-size: clamp(44px, 9vw, 96px);
  margin: 6px 0 10px;
  letter-spacing: 0.01em;
}

.masthead .dateline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 2px 6px;
}
.masthead .dateline .price { color: var(--accent); font-weight: 600; }

/* ---- Section kicker / small caps labels ----------------------------------- */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.byline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- Buttons & forms (shared with admin) ---------------------------------- */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.danger { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.danger:hover { background: var(--accent); color: var(--paper); }
.btn:disabled { opacity: 0.5; cursor: default; }

label.field { display: block; margin-bottom: 16px; }
label.field .lab {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
input[type="text"],
input[type="password"],
select,
textarea {
  width: 100%;
  font-family: var(--serif-body);
  font-size: 16px;
  color: var(--ink);
  background: #fffdf7;
  border: 1px solid var(--rule-soft);
  padding: 10px 12px;
  border-radius: 0;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}
textarea { resize: vertical; line-height: 1.5; }

.notice {
  font-family: var(--sans);
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--rule-soft);
  background: #fffdf7;
}
.notice.err { color: var(--accent); border-color: var(--accent); }

.footer {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding: 26px 0 40px;
}
.footer a { text-decoration: none; border-bottom: 1px solid var(--rule-soft); }
