/* Digital PR Birmingham
   Light-first, editorial. The coverage screenshots are the loudest thing on the
   page and everything else stays out of their way. Tokens come from
   docs/brand/digital-pr-birmingham.md; do not invent new ones per component. */

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:   #fbfaf8;
  --paper-2: #f3f1ec;
  --rule:    #e3dfd7;
  --rule-2:  #cec9bd;
  --muted:   #6b665c;
  --ink-2:   #4b4740;
  --ink:     #141310;
  --accent:  #b3261e;
  --accent-2:#8e1c16;

  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --shell: 1180px;
  --gut: clamp(1.15rem, 4vw, 2.75rem);
  --band: clamp(3.5rem, 8vw, 6.5rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(1rem, 0.97rem + 0.18vw, 1.075rem)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.75rem); }
h3 { font-size: clamp(1.16rem, 1.05rem + 0.42vw, 1.38rem); }
p { margin: 0 0 1.1rem; max-width: 68ch; }
.lede { font-size: clamp(1.1rem, 1.02rem + 0.42vw, 1.32rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--muted); }
.cite { font: 400 .78rem/1.5 var(--mono); color: var(--muted); letter-spacing: .01em; }
.note { font-size: .95rem; color: var(--muted); max-width: 60ch; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gut); }
section { padding-block: var(--band); }
section + section { border-top: 1px solid var(--rule); }
.tint { background: var(--paper-2); }

/* ---- header ---------------------------------------------------------- */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-head .shell { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display);
  font-weight: 700; font-size: 1.06rem; letter-spacing: -0.015em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: clamp(.85rem, 2vw, 1.6rem); }
.site-head nav a { text-decoration: none; font-size: .935rem; color: var(--ink-2); white-space: nowrap; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }
/* .site-head nav a outranks .btn, which left the CTA unreadable at 1.41:1 */
.site-head nav a.btn { color: #fff; }
.site-head nav a.btn.ghost { color: var(--ink); }
.site-head nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.btn { display: inline-block; padding: .74rem 1.25rem; border-radius: 3px; text-decoration: none;
  font: 500 .95rem/1 var(--sans); background: var(--accent); color: #fff; border: 1px solid var(--accent);
  transition: background .15s ease; white-space: nowrap; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn.ghost:hover { background: var(--paper-2); border-color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }

/* ---- hero ------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) var(--band); }
.hero .lede { margin-top: 1.4rem; }
.herogrid { display: grid; gap: clamp(2.2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .herogrid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); } }
.fan { display: grid; gap: 1rem; }
.fan figure { margin: 0; }
.fan img { border: 1px solid var(--rule-2); }
.fan figcaption { margin-top: .55rem; }
.fan .pub { font: 500 .72rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fan .hl { display: block; margin-top: .2rem; font-family: var(--display); font-size: 1rem; line-height: 1.3; }

/* ---- coverage grid --------------------------------------------------- */
.coverage { display: grid; gap: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.coverage figure { margin: 0; }
.coverage img { border: 1px solid var(--rule); background: #fff; }
.coverage figcaption { margin-top: .75rem; }
.coverage .pub { display: block; font: 500 .72rem var(--mono); letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.coverage .hl { font-family: var(--display); font-size: 1.06rem; line-height: 1.32; }
.coverage a { text-decoration-color: var(--rule-2); }
.coverage .client { display: block; margin-top: .35rem; font-size: .84rem; color: var(--muted); }
.fan .client { display: block; margin-top: .3rem; font-size: .82rem; color: var(--muted); }
.newtab { width: .72em; height: .72em; margin-left: .32em; color: var(--muted); vertical-align: baseline; }

/* ---- prose lists and steps ------------------------------------------- */
.steps { display: grid; gap: 1.6rem; margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.steps > div { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.steps h3, .steps h2.step-h { margin-bottom: .5rem; }
/* these carry h2 weight in the outline but the visual scale of a card heading */
.steps h2.step-h { font-size: clamp(1.16rem, 1.05rem + 0.42vw, 1.38rem); }
.steps p { margin: 0; font-size: .97rem; color: var(--ink-2); }

.promise { display: grid; gap: 0; margin-top: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.promise > div { padding: 1.35rem 1.3rem 1.45rem 0; border-top: 1px solid var(--rule); }
.promise h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.promise p { margin: 0; font-size: .95rem; color: var(--ink-2); }

.facts { display: grid; gap: 0; margin-top: 2.6rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.facts > div { padding: 1.3rem 1.2rem 1.4rem 0; border-top: 1px solid var(--rule); }
.facts b { display: block; font-family: var(--display); font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 600; line-height: 1; }
.facts small { display: block; margin-top: .5rem; font-size: .87rem; color: var(--muted); line-height: 1.45; }

/* ---- legal + long prose ---------------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.28rem, 1.15rem + 0.55vw, 1.6rem); margin-top: 2.6rem; }
.prose h2:first-of-type { margin-top: 1.8rem; }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: .45rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .95rem; }
.prose th { text-align: left; font: 500 .72rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 0 1rem .6rem 0; border-bottom: 1px solid var(--rule-2); }
.prose td { padding: .75rem 1rem .75rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }

/* ---- contact --------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); margin-top: 2.4rem;
  grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .contact-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.detail { border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-bottom: 1.5rem; }
.detail dt { font: 500 .72rem var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.detail dd { margin: .4rem 0 0; font-size: 1.05rem; }

/* ---- footer ---------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--rule); background: var(--paper-2); padding-block: clamp(2.8rem, 6vw, 4rem) 2.2rem; }
.foot-cols { display: grid; gap: clamp(1.8rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.foot-cols h2.foot-h, .foot-cols h4 { font: 500 .72rem var(--mono); letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .85rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: .5rem; }
.foot-cols a { font-size: .95rem; text-decoration: none; color: var(--ink-2); }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.foot-note { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .87rem; color: var(--muted); }
.foot-note p { max-width: 62ch; margin-bottom: .5rem; }

/* Below this width the four nav links plus the CTA measured 641px against a
   390px viewport, so the links go and the brand and the CTA keep the row. The
   pages are all reachable from the footer. */
@media (max-width: 860px) {
  .site-head nav a:not(.btn) { display: none; }
  .site-head .shell { gap: .75rem; min-height: 64px; }
  .site-head nav { gap: .6rem; }
  .brand { font-size: .98rem; }
  .brand img { width: 26px; height: 26px; }
  .btn { padding: .62rem .9rem; font-size: .88rem; }
}
@media (max-width: 380px) {
  .brand span.long { display: none; }
}
