/* Unycsluxe: visual identity v1 (References/visual-identity.md) */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --ivory: #F5F1EA;
  --ink: #1C1B19;
  --stone: #B9AE9F;
  --brass: #A8834A;
  --slate: #4A5868;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
  --wide: 68rem;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--ink); text-decoration-color: var(--brass); text-underline-offset: 0.2em; }
a:hover { color: var(--slate); }
a:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--ink); color: var(--ivory); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; }

/* Labels: Inter capitals, +8 % letter spacing */
.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--stone);
}
.site-header .inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.28em;
  text-decoration: none;
  color: var(--ink);
}
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem;
}
.site-nav a {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
}
.site-nav a[aria-current="page"] { border-bottom: 1px solid var(--brass); }

/* Main */
main { padding: 0 1.25rem; }
.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}
.page.wide { max-width: var(--wide); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-top: 3rem; }
h3 { font-size: 1.35rem; }
p, ul, ol { margin: 0 0 1.1rem; }
.lede { font-size: 1.2rem; color: var(--ink); max-width: var(--measure); }
.rule {
  width: 3rem; height: 1px; background: var(--brass);
  border: 0; margin: 2rem 0;
}

/* Hero */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--stone);
}
.hero h1 { max-width: 15ch; }

/* Index cards (the Unycsluxe test) */
.cards {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}
.card {
  background: #FBF9F5;
  border: 1px solid var(--stone);
  padding: 1.25rem 1.25rem 1.5rem;
  min-height: 9rem;
}
.card .num {
  font-family: var(--serif); font-size: 2rem; font-weight: 500;
  color: var(--brass); line-height: 1; display: block; margin-bottom: 0.75rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; font-size: 0.95rem; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.note {
  border-left: 2px solid var(--brass);
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--slate);
}

/* Disclosure strip */
.disclosure {
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  padding: 0.75rem 0;
  margin: 0 0 2rem;
  font-size: 0.9rem;
}

/* Missing facts: must all be filled before publishing */
.check {
  background: #FFF2C2;
  outline: 1px dashed var(--brass);
  padding: 0 0.25em;
  font-family: var(--sans);
  font-size: 0.9em;
}

dl.facts { margin: 0 0 1.5rem; }
dl.facts dt { margin-top: 1rem; }
dl.facts dd { margin: 0.2rem 0 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--stone);
  padding: 2.5rem 1.25rem 3rem;
  font-size: 0.9rem;
}
.site-footer .inner {
  max-width: var(--wide); margin: 0 auto;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.site-footer ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.site-footer li { margin: 0.25rem 0; }
.site-footer p { margin: 0.5rem 0 0; color: var(--slate); }
