/* Hosannaith: black, deep red, white, gold accents. */

/* Type: Fraunces for the wordmark and headlines, Inter for text (the original site's fonts). */

:root {
  /* Surfaces */
  --bg: #000000;
  --surface: #110D0E;
  --panel: #191314;
  --rule: #2B2325;

  /* Text */
  --text: #F5F0EE;
  --text-soft: #B5A9AB;

  /* Red: the brightest is for text on black (wordmark 3.2:1, headings 3.7:1, large sizes only);
     the fill is for buttons and tabs carrying white text (9.2:1). */
  --red-mark: #B8192F;
  --red-head: #C8203A;
  --red-fill: #8E1424;
  --red-fill-hover: #A3162C;

  /* Gold accents */
  --gold: #C9A04A;
  --gold-light: #E3C27A;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --measure: 40rem;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }

code { overflow-wrap: anywhere; }

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold-light); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--text); color: var(--bg); padding: 8px 12px;
}
.skip:focus { left: 8px; z-index: 10; }

/* ---------- Top bar ---------- */
.topbar { border-top: 4px solid var(--red-fill); border-bottom: 1px solid var(--rule); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.005em; color: var(--red-mark); text-decoration: none; }
.wordmark:hover { color: var(--red-head); }
.topnav { display: flex; gap: 24px; font-size: 0.95rem; }
.topnav a { color: var(--text-soft); text-decoration: none; }
.topnav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; align-items: center; }

.status { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-soft); margin-bottom: 28px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 2.4vw + 1.6rem, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 15ch;
}

.hero-lede { margin-top: 26px; max-width: 34rem; font-size: 1.18rem; line-height: 1.65; color: var(--text-soft); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 2px; font-weight: 600; font-size: 0.98rem; text-decoration: none; }
.btn-light { background: var(--red-fill); color: #FFFFFF; }
.btn-light:hover { background: var(--red-fill-hover); color: #FFFFFF; }
.btn-outline { border: 1px solid var(--gold); color: var(--text); }
.btn-outline:hover { background: var(--panel); color: var(--gold-light); }

/* ---------- The certificate (example result) ---------- */
.cert-wrap { align-self: center; }
.cert {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 30px 60px -36px rgba(184, 25, 47, 0.45);
}
.cert-tab {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: var(--red-fill);
  color: #FFFFFF;
  padding: 12px 28px;
  border-bottom: 3px solid var(--gold);
  font-size: 0.9rem;
}
.cert-tab b { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.01em; }
.cert-tab span { color: var(--gold-light); }
.cert-body { padding: 26px 28px 24px; }
.cert-caption { font-size: 0.85rem; color: var(--text-soft); }
.cert-target { margin-top: 6px; font-family: var(--mono); font-size: 0.82rem; color: var(--text); }
.cert-score { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; }
.cert-score strong { font-family: var(--serif); font-weight: 600; font-size: 3.6rem; line-height: 1; color: var(--red-head); font-variant-numeric: lining-nums tabular-nums; }
.cert-score span { font-size: 1rem; color: var(--text-soft); }
.cert-figures { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid var(--rule); padding-top: 18px; }
.cert-figures dt { color: var(--text-soft); font-size: 0.85rem; }
.cert-figures dd { font-weight: 600; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cert-sig { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 0.85rem; color: var(--text-soft); }
.cert-real { margin-top: 16px; font-size: 0.98rem; color: var(--text-soft); }

/* ---------- Sections ---------- */
.band { padding: 88px 0; }
.band + .band { border-top: 1px solid var(--rule); }

.band h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 1vw + 1.4rem, 2.4rem);
  line-height: 1.15;
  color: var(--red-head);
  letter-spacing: -0.01em;
}
.band .intro { margin-top: 16px; max-width: var(--measure); font-size: 1.12rem; line-height: 1.65; color: var(--text-soft); }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }

/* Definition list of measures */
.measures { border-top: 2px solid var(--gold); }
.measures div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.measures dt { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--text); }
.measures dd { max-width: 36rem; color: var(--text-soft); }

/* Signed results */
.sig-points { margin-top: 28px; display: grid; gap: 14px; max-width: var(--measure); color: var(--text-soft); }
.sig-points li { padding-left: 20px; position: relative; }
.sig-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--gold); }

.panel { background: var(--panel); border-left: 3px solid var(--gold); padding: 22px 24px; }
.panel pre { margin: 0; overflow-x: auto; }
.panel code { font-family: var(--mono); font-size: 0.86rem; line-height: 1.7; color: var(--text); }
.panel-title { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 10px; }
.panel + .panel { margin-top: 18px; }

/* Reports list */
.reports { margin-top: 28px; border-top: 2px solid var(--gold); }
.reports li { border-bottom: 1px solid var(--rule); }
.reports a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding: 22px 0; text-decoration: none; color: var(--text); }
.reports a:hover .report-name { text-decoration: underline; text-decoration-color: var(--gold); }
.report-name { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--text); }
.report-meta { color: var(--text-soft); font-size: 0.95rem; }
.report-score { grid-row: span 2; align-self: center; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--red-head); font-variant-numeric: tabular-nums; }
.report-score small { display: block; font-family: var(--sans); font-size: 0.8rem; font-weight: 400; color: var(--text-soft); text-align: right; }

/* Endpoint line */
.endpoint { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--rule); padding: 16px 20px; }
.method { background: var(--red-fill); color: #FFFFFF; font-weight: 600; font-size: 0.82rem; padding: 3px 9px; }
.endpoint code { font-family: var(--mono); font-size: 0.9rem; word-break: break-all; }
.note { margin-top: 16px; color: var(--text-soft); font-size: 0.95rem; max-width: var(--measure); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--rule); color: var(--text-soft); padding: 48px 0 56px; font-size: 0.95rem; position: relative; }
.footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red-fill) 0 70%, var(--gold) 70% 100%); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; }
.footer a { color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer p { line-height: 1.8; }
.footer-mark { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; color: var(--red-mark); }

/* ---------- Report page ---------- */
.doc-head { padding: 64px 0 48px; border-bottom: 1px solid var(--rule); }
.doc-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 1.8vw + 1.5rem, 3.2rem); line-height: 1.1; color: var(--text); max-width: 22ch; }
.doc-head p { margin-top: 16px; max-width: var(--measure); font-size: 1.15rem; color: var(--text-soft); }
.facts { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: 0.98rem; border-top: 2px solid var(--gold); padding-top: 18px; }
.facts dt { color: var(--text-soft); font-size: 0.85rem; }
.facts dd { font-weight: 600; }

.doc { padding: 64px 0 88px; }
.doc section + section { margin-top: 64px; }
.doc h2 { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; color: var(--red-head); }
.doc h2 + p, .doc h2 + .table-wrap, .doc h2 + ul { margin-top: 16px; }
.doc p { max-width: var(--measure); color: var(--text-soft); }
.doc p + p { margin-top: 14px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
th, td { padding: 14px 16px 14px 0; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
thead th { font-weight: 600; font-size: 0.9rem; color: var(--text-soft); border-bottom: 2px solid var(--gold); }
tbody th { font-weight: 600; }
td.score { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--red-head); }

.events li { padding: 10px 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--text-soft); }
.events time { font-variant-numeric: tabular-nums; color: var(--text); }

.doc .disclaimer { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; font-size: 1.08rem; color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero { padding: 48px 0 72px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .topnav { display: none; }
  .band { padding: 64px 0; }
  .measures div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cert-tab, .cert-body { padding-left: 20px; padding-right: 20px; }
}
