/* ═══════════════════════════════════════════════════════════════════════
   Elis & Wright Solicitors — Cardiff
   Identity: "Welsh slate" — slate-green, parchment, muted brass, oxblood.
   Type: Newsreader (editorial serif) / Archivo (grotesque).
   ═══════════════════════════════════════════════════════════════════════ */

/* === defensive base — injected by harden_css.py; do not hand-edit === */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: calc(var(--nav-h, 72px) + 1rem); }
img, svg, video, iframe, canvas, table { display: block; max-width: 100%; }
p, li, h1, h2, h3, h4, blockquote, td, dd, dt { overflow-wrap: anywhere; }
form[style*="min-height"] { align-content: center; }
/* === end defensive base === */

:root {
  --ink:       #161D1B;
  --ink-2:     #1E2825;
  --slate:     #3D4B47;
  --muted:     #6B7A75;
  --muted-lt:  #9AA8A3;
  --line:      #DCD6C9;
  --line-ink:  #33403C;
  --bone:      #F1EDE4;
  --paper:     #FBF9F4;
  --brass:     #A07C43;
  --brass-lt:  #C9A163;
  --ox:        #7E2B26;
  --ox-dk:     #642019;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "Archivo", "Helvetica Neue", system-ui, sans-serif;

  --nav-h: 68px;
  --wrap:  1200px;
  --r:     3px;

  --shadow: 0 1px 2px rgba(22,29,27,.05), 0 12px 34px -18px rgba(22,29,27,.22);
}

@media (max-width: 720px) { :root { --nav-h: 58px; } }

/* ─── base ──────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5cqi, 56px); }

/* Off-screen vertically, never horizontally — a negative `left` would widen
   the scroll box and register as horizontal overflow. */
.skip {
  position: absolute; left: 12px; top: 0; z-index: 200;
  transform: translateY(-140%);
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  text-decoration: none; transition: transform .18s;
}
.skip:focus { transform: translateY(12px); }

/* A class that sets `display` outranks the UA stylesheet's [hidden] rule, so
   `el.hidden = true` silently fails on .form-fields / .nav__links / the
   Turnstile box. Make the attribute authoritative. */
[hidden] { display: none !important; }

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

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 1.1em;
}
.eyebrow--light { color: var(--brass-lt); }

.stars { color: var(--brass); letter-spacing: .1em; }

.cy { font-style: italic; color: var(--muted); }

/* ─── buttons ───────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  letter-spacing: .01em; text-decoration: none;
  padding: 13px 24px; border: 1px solid transparent; border-radius: var(--r);
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--sm { padding: 9px 16px; font-size: .82rem; }
.btn--lg { padding: 16px 30px; font-size: .96rem; }
.btn--block { width: 100%; }

.btn--ox { background: var(--ox); color: #FBF9F4; }
.btn--ox:hover { background: var(--ox-dk); }

.btn--brass { background: var(--brass); color: #14100A; }
.btn--brass:hover { background: var(--brass-lt); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(251,249,244,.35); }
.btn--ghost-light:hover { border-color: var(--paper); }

@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

/* ─── nav ───────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(251,249,244,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand__seal { color: var(--brass); display: flex; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-size: 1.16rem; letter-spacing: .005em; white-space: nowrap; }
.brand__sub {
  font-size: .58rem; font-weight: 600; letter-spacing: .17em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  text-decoration: none; font-size: .88rem; font-weight: 500;
  color: var(--slate); padding: 4px 0; border-bottom: 1px solid transparent;
}
.nav__links a:hover { color: var(--ink); border-bottom-color: var(--brass); }

.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__actions .btn { white-space: nowrap; }
.nav__tel { text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav__tel:hover { color: var(--ox); }

.nav__toggle {
  display: none; width: 40px; height: 40px; padding: 9px;
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  flex-direction: column; justify-content: space-between; cursor: pointer;
}
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); }

@media (max-width: 1000px) {
  .nav__links {
    display: none;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 0; box-shadow: var(--shadow);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 13px clamp(20px, 5vw, 56px); border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__toggle { display: flex; }
}
/* Phone: the bar is 58px of single-line real estate. Drop the tel link and the
   descender, hold the wordmark and CTA on one line, and shrink the CTA rather
   than let either wrap — a wrapped button overflows the bar and reads broken. */
@media (max-width: 560px) {
  .nav__tel { display: none; }
  .brand__sub { display: none; }
  .brand__name { font-size: 1.02rem; }
  .nav__inner { gap: 10px; }
  .nav__actions { gap: 10px; }
  .nav__actions .btn { padding: 8px 11px; font-size: .74rem; }
  /* Drop the separator and break to a new line instead — a "·" left hanging at
     the end of a wrapped line is the tell, and the two clauses run together
     without it. flex-basis forces the break inside the wrapping flex row. */
  .hero__proof .dot { display: none; }
  .hero__proof .proof__sra { flex-basis: 100%; }
}

/* ─── hero ──────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  container-type: inline-size;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  background:
    radial-gradient(90% 70% at 78% 8%, rgba(160,124,67,.10), transparent 62%),
    radial-gradient(70% 60% at 4% 96%, rgba(61,75,71,.10), transparent 60%),
    var(--paper);
  overflow: hidden;
  padding-block: clamp(20px, 3.2cqi, 60px);
}

.hero__grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(250px, 25cqi, 330px);
  gap: clamp(24px, 4cqi, 64px); align-items: center;
}

.hero__body { display: flex; flex-direction: column; }

.hero__title {
  font-size: clamp(2.05rem, 7.9cqi, 4.25rem);
  line-height: 1.03;
  letter-spacing: -.018em;
  margin: 0 0 clamp(14px, 1.7cqi, 26px);
}
.hero__title em { color: var(--brass); }

.hero__lede {
  font-size: clamp(.95rem, 1.32cqi, 1.09rem);
  color: var(--slate); max-width: 46ch;
  margin: 0 0 clamp(18px, 2.2cqi, 32px);
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 11px;
  margin-bottom: clamp(16px, 1.9cqi, 26px);
}

.hero__proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: clamp(.82rem, 1.1cqi, .92rem); color: var(--muted); margin: 0;
}
.hero__proof strong { color: var(--ink); font-weight: 600; }
.hero__proof .dot { color: var(--line); }

.hero__card {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(18px, 2.1cqi, 28px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}
.card__kicker {
  font-size: .68rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brass); margin: 0 0 14px;
}
.card__list { list-style: none; margin: 0 0 14px; padding: 0; }
.card__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(.82rem, 1.05cqi, .89rem); color: var(--slate);
}
.card__list li:last-child { border-bottom: none; }
.card__list b { font-family: var(--serif); font-size: 1.06em; color: var(--ink); font-weight: 500; white-space: nowrap; }
.card__foot { font-size: .72rem; line-height: 1.5; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 3cqi, 28px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__card { padding: 14px 16px; }
  .card__kicker { margin-bottom: 9px; font-size: .64rem; }
  .card__list { margin-bottom: 9px; }
  .card__list li { padding: 6px 0; }
  .card__foot { font-size: .68rem; }
}

/* ─── trust strip ───────────────────────────────────────────────────── */

.strip { background: var(--ink); color: var(--paper); }
.strip__inner {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-ink);
  border-inline: 1px solid var(--line-ink);
}
.strip__item {
  background: var(--ink); padding: 30px 18px; text-align: center;
  display: flex; flex-direction: column; gap: 5px;
}
.strip__item b { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.75rem); font-weight: 400; }
.strip__item span { font-size: .76rem; letter-spacing: .06em; color: var(--muted-lt); }
@media (max-width: 720px) {
  .strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__item { padding: 22px 12px; }
}

/* ─── section scaffolding ───────────────────────────────────────────── */

.section { padding-block: clamp(64px, 9vw, 132px); }
.section--bone { background: var(--bone); }
.section--ink { background: var(--ink); color: var(--paper); }

.sec-head { max-width: 60ch; margin-bottom: clamp(38px, 5vw, 66px); }
.sec-title {
  font-size: clamp(1.85rem, 4.3vw, 3.1rem);
  letter-spacing: -.015em; margin: 0 0 .5em;
}
.sec-title em { color: var(--brass); }
.sec-title--light { color: var(--paper); }
.sec-lede { font-size: 1.04rem; color: var(--slate); margin: 0; }
.sec-lede--light { color: var(--muted-lt); }
.sec-lede--light em { color: var(--paper); font-style: italic; }

/* ─── services ──────────────────────────────────────────────────────── */

.svc-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}
@media (max-width: 860px) { .svc-grid { grid-template-columns: minmax(0, 1fr); } }

.svc-col__head {
  font-size: 1.42rem; padding-bottom: 14px;
  border-bottom: 2px solid var(--ink); margin-bottom: 8px;
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.svc-list h4 { font-size: 1.12rem; margin-bottom: 7px; }
.svc-list p { font-size: .93rem; color: var(--slate); margin: 0 0 7px; }
.svc-price {
  font-family: var(--serif); font-style: italic;
  font-size: .95rem !important; color: var(--brass) !important; margin: 0 !important;
}

.svc-note {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  margin: clamp(38px, 5vw, 60px) 0 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--bone); border-left: 2px solid var(--brass);
  font-size: 1rem; color: var(--slate); max-width: 100%;
}
.svc-note .btn { margin-left: auto; flex: 0 0 auto; }

/* ─── fees ──────────────────────────────────────────────────────────── */

.fees__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 86px); align-items: start;
}
@media (max-width: 900px) { .fees__inner { grid-template-columns: minmax(0, 1fr); } }

.fees__lead .btn { margin-top: 12px; }
.fees__points { list-style: none; margin: 0; padding: 0; }
.fees__points li {
  padding: 20px 0; border-bottom: 1px solid var(--line-ink);
  display: flex; flex-direction: column; gap: 5px;
}
.fees__points li:first-child { padding-top: 0; }
.fees__points li:last-child { border-bottom: none; }
.fees__points b { font-family: var(--serif); font-size: 1.16rem; font-weight: 400; color: var(--paper); }
.fees__points span { font-size: .92rem; color: var(--muted-lt); }

/* ─── about ─────────────────────────────────────────────────────────── */

.about__inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(34px, 5vw, 76px); align-items: center;
}
@media (max-width: 900px) { .about__inner { grid-template-columns: minmax(0, 1fr); } }
.about__body p { font-size: 1.02rem; color: var(--slate); }

.pull { margin: 0; padding: clamp(26px, 3vw, 40px); background: var(--bone); border-top: 2px solid var(--brass); }
.pull p {
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.36; font-style: italic; color: var(--ink); margin: 0 0 16px;
}
.pull cite { font-family: var(--sans); font-style: normal; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ─── reviews ───────────────────────────────────────────────────────── */

.rev-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
@media (max-width: 780px) { .rev-grid { grid-template-columns: minmax(0, 1fr); } }

.rev {
  margin: 0; padding: clamp(24px, 3vw, 34px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 14px;
}
.rev .stars { font-size: .95rem; margin: 0; }
.rev blockquote { margin: 0; }
.rev blockquote p {
  font-family: var(--serif); font-size: 1.06rem; line-height: 1.55;
  color: var(--ink); margin: 0;
}
.rev figcaption {
  font-size: .76rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-top: auto;
}

/* ─── visit ─────────────────────────────────────────────────────────── */

.visit__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(34px, 5vw, 76px); }
@media (max-width: 780px) { .visit__inner { grid-template-columns: minmax(0, 1fr); } }

.visit__addr {
  font-style: normal; font-family: var(--serif); font-size: 1.24rem;
  line-height: 1.5; color: var(--ink); margin-bottom: 14px;
}
.visit__links a { color: var(--ox); font-weight: 600; font-size: .93rem; text-decoration: none; }
.visit__links a:hover { text-decoration: underline; }

.visit__h3 { font-size: 1.42rem; margin-bottom: 18px; }

.visit__meta, .hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; }
.visit__meta { margin-top: 26px; }
.visit__meta dt, .hours dt {
  font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding-top: 3px;
}
.visit__meta dd, .hours dd { margin: 0; font-size: .98rem; color: var(--ink); }
.visit__meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.visit__meta a:hover { border-bottom-color: var(--brass); }
.hours dd { font-variant-numeric: tabular-nums; }
.visit__note { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* ─── cta band ──────────────────────────────────────────────────────── */

.cta-band {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(160,124,67,.16), transparent 60%),
    var(--ink);
  color: var(--paper); padding-block: clamp(64px, 9vw, 120px); text-align: center;
}
.cta-band__title { font-size: clamp(1.75rem, 4vw, 2.9rem); letter-spacing: -.015em; margin-bottom: .45em; }
.cta-band__title em { color: var(--brass-lt); }
.cta-band__lede { color: var(--muted-lt); font-size: 1.02rem; margin-bottom: 30px; }
.cta-band__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ─── footer ────────────────────────────────────────────────────────── */

.foot { background: var(--ink-2); color: var(--muted-lt); padding-block: clamp(48px, 6vw, 76px) 34px; }
.foot__inner {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 4vw, 56px); align-items: start;
  padding-bottom: 30px; border-bottom: 1px solid var(--line-ink);
}
@media (max-width: 900px) { .foot__inner { grid-template-columns: minmax(0, 1fr); } }

.foot__brand { display: flex; align-items: center; gap: 11px; color: var(--paper); }
.foot__brand .brand__seal { color: var(--brass); }
.foot__brand .brand__sub { color: var(--muted); }

.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__nav a { text-decoration: none; font-size: .88rem; color: var(--muted-lt); }
.foot__nav a:hover { color: var(--paper); }

.foot__addr { font-style: normal; font-size: .86rem; line-height: 1.75; }
.foot__addr a { color: var(--muted-lt); text-decoration: none; border-bottom: 1px solid var(--line-ink); }
.foot__addr a:hover { color: var(--paper); }

.foot__legal { padding-top: 26px; }
.foot__legal p { font-size: .76rem; line-height: 1.7; color: var(--muted); max-width: 92ch; margin: 0 0 12px; }
.foot__legal a { color: var(--muted-lt); }
.foot__copy { margin-bottom: 0 !important; }

/* ─── contact page ──────────────────────────────────────────────────── */

.page-head { padding-block: clamp(48px, 7vw, 90px) 0; }
.page-head .sec-title { margin-bottom: .35em; }
.page-head .sec-lede { max-width: 56ch; }

.contact__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 70px); align-items: start;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 120px);
}
@media (max-width: 880px) { .contact__inner { grid-template-columns: minmax(0, 1fr); } }

.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.6rem; margin-bottom: 8px; }
.form-card__lede { font-size: .95rem; color: var(--muted); margin-bottom: 26px; }

.form-fields { display: flex; flex-direction: column; gap: 17px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate);
}
.field input, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; width: 100%; transition: border-color .18s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-lt); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

#estimate-form .btn { margin-top: 20px; }

.form-status { margin: 16px 0 0; font-size: .95rem; line-height: 1.6; }
.form-status.is-success {
  font-family: var(--serif); font-size: 1.16rem; color: var(--ink);
  padding: 16px 18px; background: var(--bone); border-left: 2px solid var(--brass); border-radius: var(--r);
}
.form-status.is-error {
  color: var(--ox); padding: 14px 16px;
  background: rgba(126,43,38,.06); border-left: 2px solid var(--ox); border-radius: var(--r);
}

.contact__aside { display: flex; flex-direction: column; gap: 30px; }
.contact__block h3 { font-size: 1.24rem; margin-bottom: 12px; }
.contact__block p { font-size: .95rem; color: var(--slate); }
.contact__big {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  color: var(--ink); text-decoration: none; display: inline-block; line-height: 1.2;
}
.contact__big:hover { color: var(--ox); }
.contact__hint { font-size: .84rem; color: var(--muted); margin-top: 6px; }

/* ─── reveal (below the fold only) ──────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Cloudflare Turnstile widget (injected by ensure_turnstile.py) */
.turnstile-box { margin-bottom: 1.25rem; min-height: 65px; }

/* === site credit (injected by credit_footer.py); do not hand-edit === */
.site-credit {
  margin: 2.25rem 0 0;
  padding-inline: 1.25rem;
  font-size: .73rem;
  line-height: 1.5;
  letter-spacing: .06em;
  text-align: center;
  opacity: .65;
}
.site-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(128, 128, 128, .5);
  border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  transition: border-bottom-color .25s ease;
}
.site-credit a:hover,
.site-credit a:focus-visible { border-bottom-color: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .site-credit a { transition: none; }
}

/* Shares the footer's own copyright row: sits opposite it rather than adding a
   third line under the page. The parent is reached with :has() so no client
   class name has to be guessed, and the rule cannot fire on a footer that has
   no inline credit in it. */
.site-credit--inline {
  margin: 0;
  padding: 0;
  text-align: right;
}
footer :has(> .site-credit--inline) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1.5rem;
}
/* === end site credit === */
