/* ==========================================================================
   Sweet Street — sweetstreetlullaby.com
   One stylesheet for the whole site. Hand-written, no framework.

   Design source: art/street/STYLE.md (treatment A) and the style test
   plates. Warm ink line, flat colour, cream paper, ONE pillar-box red
   carrying all emphasis, specimen-card framing, Victorian ephemera
   typesetting with a modern cut.

   TYPE CHOICE (system fonts only, no CDN):
   - Headline face: a condensed grotesque, uppercase and letterspaced —
     the voice of the plates' caption strips. Stack: Avenir Next Condensed
     (iOS/macOS), Arial Narrow (Windows), Roboto Condensed (Android),
     then plain grotesques. "Victorian grotesque character in a modern
     cut" per STYLE.md.
   - Book face: Georgia — a Scotch Roman designed for screens; the closest
     system face to the engraved book type of the A_ui_1 catalogue card.
     Italic Georgia carries the specimen labels ("Coat —", "Visits —").
   ========================================================================== */

:root {
  /* palette sampled from A_scene_5 / A_ui_1 */
  --paper:       #f5ead0;   /* cream ground */
  --paper-deep:  #eee0bf;   /* caption strips, card interiors */
  --paper-lift:  #faf3e0;   /* brightest paper, card faces */
  --ink:         #443627;   /* warm dark brown-grey line, never pure black */
  --ink-soft:    #6b5b45;   /* secondary text */
  --red:         #a63a2b;   /* pillar-box red — THE accent, use once per page */
  --red-deep:    #8c2f22;
  --blue:        #7089a5;   /* delphinium / Wedgwood, background palette only */
  --sage:        #8a9471;

  --headline: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed",
              "Helvetica Neue", Helvetica, Arial, sans-serif;
  --book: Georgia, "Times New Roman", Times, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--book);
  color: var(--ink);
  background-color: var(--paper);
  /* faint global paper grain — the only texture the style allows */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.27 0 0 0 0 0.21 0 0 0 0 0.15 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  font-size: 17px;
  line-height: 1.55;
}

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

a { color: var(--ink); }
a:hover { color: var(--red-deep); }

/* ---------- page column ---------- */

.sheet {
  max-width: 1060px;
  margin: 0 auto;
  padding: 20px 18px 40px;
}

/* ---------- masthead line (subpages) ---------- */

.return-line {
  text-align: center;
  padding: 10px 0 18px;
  font-family: var(--headline);
  font-weight: 600;
  letter-spacing: 0.28em;
  font-size: 13px;
  text-transform: uppercase;
}
.return-line a { text-decoration: none; }
.return-line a:hover { color: var(--red-deep); }
.return-line .orn { letter-spacing: 0; color: var(--ink-soft); padding: 0 0.6em; }

/* ---------- the framed plate ---------- */

.plate {
  background: var(--paper-lift);
  border: 1px solid var(--ink);
  padding: 5px;
  box-shadow: 0 1px 0 rgba(68, 54, 39, 0.15);
}
.plate-inner {
  border: 2.5px solid var(--ink);
}
.plate-caption {
  border-top: 2.5px solid var(--ink);
  background: var(--paper-lift);
  text-align: center;
  padding: 10px 12px 9px;
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 15px;
}
.plate-inner .plate-caption { border-top: none; }
.plate-inner > img + .plate-caption { border-top: 2.5px solid var(--ink); }
.plate-caption .orn {
  color: var(--ink-soft);
  letter-spacing: 0;
  font-family: var(--book);
  font-weight: normal;
  padding: 0 0.55em;
  font-size: 13px;
  vertical-align: 1px;
}
.plate-caption small {
  display: block;
  font-family: var(--book);
  font-style: italic;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* ---------- the landing masthead ---------- */

.masthead-plate .plate-inner {
  padding: clamp(22px, 5vw, 44px) 12px clamp(16px, 3.5vw, 30px);
  text-align: center;
}
.masthead-rule {
  width: 64px;
  margin: 0 auto 14px;
  border: 0;
  border-top: 1px solid var(--ink);
  position: relative;
}
h1.wordmark {
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(46px, 11vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.masthead-caption {
  font-family: var(--book);
  font-style: italic;
  font-size: clamp(13px, 2.2vw, 18px);
  color: var(--ink-soft);
  /* the domain must never touch the frame on a phone */
  overflow-wrap: anywhere;
  padding: 0 0.75em;
}
.masthead-caption .orn { font-style: normal; padding: 0 0.5em; }
@media (max-width: 430px) {
  .masthead-caption .orn { display: block; padding: 0; visibility: hidden; height: 0; }
}

/* ---------- landing layout ---------- */

.broadsheet {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 26px;
  align-items: start;
  margin-top: 26px;
}
@media (max-width: 780px) {
  .broadsheet { grid-template-columns: minmax(0, 1fr); }
}

.standfirst {
  font-size: clamp(17px, 2.1vw, 19px);
  line-height: 1.62;
  margin: 4px 2px 0;
}
.standfirst + .standfirst { margin-top: 14px; }
.standfirst .smallcaps {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* ---------- the one red object: the play button ---------- */

.play-button {
  display: block;
  margin: 26px auto 6px;
  max-width: 420px;
  text-align: center;
  text-decoration: none;
  background: var(--red);
  color: var(--paper-lift);
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 19px;
  padding: 17px 20px 15px;
  border: 1px solid var(--red-deep);
  box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(250, 243, 224, 0.85);
}
.play-button:hover { background: var(--red-deep); color: var(--paper-lift); }
.play-button small {
  display: block;
  font-family: var(--book);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: normal;
  font-size: 13px;
  margin-top: 3px;
  opacity: 0.9;
}

/* ---------- specimen cards ---------- */

.specimen-strip {
  display: grid;
  /* auto-fit rather than a fixed three columns: in the broadsheet's right
     column the cards would otherwise be ~190px wide, too narrow for the
     longest card title ("THE GRAMOPHONE") in the letterspaced headline
     face, which then clips behind the neighbouring card. */
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.specimen {
  background: var(--paper-lift);
  border: 1px solid var(--ink);
  padding: 4px;
  text-decoration: none;
  display: block;
  color: var(--ink);
}
.specimen:hover { color: var(--ink); }
.specimen:hover .specimen-in { background: var(--paper-deep); }
.specimen-in {
  border: 2px solid var(--ink);
  padding: 12px 14px 13px;
  height: 100%;
}
.specimen-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dotted var(--ink-soft);
  padding-bottom: 9px;
  margin-bottom: 9px;
}
.roundel {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--book);
  line-height: 1;
}
.roundel .no { font-style: italic; font-size: 10px; color: var(--ink-soft); }
.roundel .num { font-weight: bold; font-size: 15px; margin-top: 1px; }
.specimen-name {
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 19px;
  line-height: 1.1;
}
.specimen-name small {
  display: block;
  font-family: var(--book);
  font-style: italic;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.specimen dl { font-size: 14.5px; }
.specimen dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}
.specimen dl div + div { border-top: 1px dotted rgba(107, 91, 69, 0.5); }
.specimen dt { font-style: italic; color: var(--ink-soft); }
.specimen dt::after { content: " \2014"; }
.specimen dd { text-align: right; }

/* ---------- generic article pages (press, records) ---------- */

.page-head {
  text-align: center;
  margin: 6px 0 26px;
}
.page-head h1 {
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.05;
}
.page-head .red-rule {
  /* the page's single red element, as on the catalogue card */
  width: 120px;
  margin: 12px auto 10px;
  border: 0;
  border-top: 2px solid var(--red);
  position: relative;
}
.page-head p {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.article {
  max-width: 660px;
  margin: 0 auto;
}
.article p { margin: 0 0 15px; }
.article h2 {
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 18px;
  margin: 30px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
}

/* fact table (press) */
.fact-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.fact-table th, .fact-table td {
  text-align: left;
  vertical-align: top;
  padding: 7px 0;
  border-bottom: 1px dotted rgba(107, 91, 69, 0.5);
}
.fact-table th {
  font-family: var(--book);
  font-style: italic;
  font-weight: normal;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-right: 22px;
  width: 1%;
}
.fact-table th::after { content: " \2014"; }

/* press images */
.press-plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 14px 0 6px;
}
.press-plates figure figcaption {
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 7px;
}

/* ---------- record ledger (records page) ---------- */

.record-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 680px) {
  .record-strip { grid-template-columns: minmax(0, 1fr); }
}
.record-note {
  font-family: var(--book);
  font-style: italic;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
  border-top: 1px dotted rgba(107, 91, 69, 0.5);
  padding-top: 7px;
  margin-top: 4px;
}
.record-intro {
  max-width: 640px;
  margin: 0 auto 26px;
  text-align: center;
  font-size: 15.5px;
}

.ledger {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper-lift);
  border: 1px solid var(--ink);
  padding: 5px;
}
.ledger-in { border: 2.5px solid var(--ink); padding: 6px 0; }
.ledger-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
}
.ledger-row + .ledger-row { border-top: 1px dotted rgba(107, 91, 69, 0.55); }
.ledger-title {
  font-family: var(--headline);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 17px;
}
.ledger-title small {
  display: block;
  font-family: var(--book);
  font-style: italic;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.ledger-side {
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}
.ledger-row.awaited .ledger-title { color: var(--ink-soft); letter-spacing: 0.02em; }
.ledger-note {
  max-width: 720px;
  margin: 14px auto 0;
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- footer ---------- */

footer {
  margin-top: 46px;
  border-top: 1px solid var(--ink);
  padding-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
}
footer .foot-links {
  font-family: var(--headline);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  margin-bottom: 8px;
}
footer .foot-links a { text-decoration: none; padding: 0 10px; }
footer .foot-links a:hover { color: var(--red-deep); }
footer p { font-style: italic; }
