/* The Arcis Project: shared stylesheet */

/* Fonts (self-hosted, SIL Open Font License; see assets/fonts/) */
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #131b2e;        /* deep navy: grounds, text */
  --ink-2: #3b4356;      /* secondary text on paper */
  --paper: #f3f0e8;      /* off-white */
  --rule: #d5d3cb;       /* hairlines on paper */
  --accent: #8a2b27;     /* oxblood, on paper */
  --accent-ink: #c8726a; /* same hue, lifted for navy grounds */
  --on-ink: #e8e4da;
  --on-ink-2: #a3a8b4;
  --rule-ink: #26304a;   /* hairlines on navy */

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { 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: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .band :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent-ink); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

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

/* Header */
.site-header { background: var(--ink); color: var(--on-ink); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 1rem 2.5rem;
  padding-top: 1.75rem; padding-bottom: 1.75rem;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .28em;
  text-decoration: none;
  white-space: nowrap;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.nav a {
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--on-ink-2);
  padding-bottom: .25rem; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-ink); border-bottom-color: var(--accent-ink); }

/* Hero (home) and page head (inner pages) */
.hero { background: var(--ink); color: var(--on-ink); }
.hero .wrap { padding-top: clamp(5rem, 14vw, 10rem); padding-bottom: clamp(5rem, 12vw, 9rem); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.06;
  letter-spacing: -.012em;
  max-width: 15ch;
  margin: 0;
}
.hero p {
  max-width: var(--measure);
  margin: 2.5rem 0 0;
  color: var(--on-ink-2);
  font-size: 1.125rem;
}
.hero.page .wrap { padding-top: clamp(4rem, 9vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.hero.page h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 18ch; }
.hero.page .label { margin-bottom: 1.5rem; }
.hero.page p { margin-top: 1.75rem; }

/* Sections */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.label {
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 2.5rem; font-weight: 500;
}
.split { display: grid; gap: 2rem; }
@media (min-width: 52rem) {
  .split { grid-template-columns: 14rem 1fr; gap: 4rem; }
  .split > .label { margin: .35rem 0 0; }
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.15;
  margin: 0 0 1.25rem; max-width: 22ch;
}
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin: 0; }
.lede { max-width: var(--measure); color: var(--ink-2); margin: 0; }
.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.25rem; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose .first { color: var(--ink); font-size: 1.1875rem; }

/* Rows: linked (focus areas) and plain (lists of statements) */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a, .rows .row {
  display: grid; grid-template-columns: 3rem 1fr; gap: .25rem 1rem;
  padding: 1.75rem 0; text-decoration: none;
}
.rows .row { grid-template-columns: 1fr; }
@media (min-width: 52rem) {
  .rows a { grid-template-columns: 4rem 18rem 1fr; align-items: baseline; padding: 2rem 0; }
  .rows .row { grid-template-columns: 18rem 1fr; align-items: baseline; padding: 2rem 0; }
}
.rows .num { font-family: var(--serif); color: var(--accent); font-size: 1rem; }
.rows .title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.rows .desc { color: var(--ink-2); grid-column: 2; max-width: 30rem; }
.rows .row .desc { grid-column: auto; }
@media (min-width: 52rem) { .rows a .desc { grid-column: 3; } }
.rows a:hover .title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* Focus area entries */
.area { scroll-margin-top: 2rem; }
.area .num { font-family: var(--serif); color: var(--accent); font-size: 1.125rem; margin: 0 0 1rem; }
@media (min-width: 52rem) { .area .num { margin: .35rem 0 0; } }

/* Text link */
.more {
  display: inline-block; margin-top: 2rem;
  font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: .2rem;
}

/* Publications index */
.pubs { border-top: 1px solid var(--ink); }
.pubs-head, .pub {
  display: grid; grid-template-columns: 1fr; gap: .25rem 2rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 52rem) {
  .pubs-head, .pub { grid-template-columns: 8rem 1fr 12rem 8rem; align-items: baseline; }
}
.pubs-head { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 51.99rem) { .pubs-head { display: none; } }
.pubs ol { list-style: none; margin: 0; padding: 0; }
.pub .date, .pub .meta { font-size: .875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pub .t { font-family: var(--serif); font-size: 1.375rem; line-height: 1.25; }
.pub .t a { text-decoration: none; }
.pub .t a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.empty { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
.empty p { margin: 0; }
.empty .t { font-family: var(--serif); font-size: 1.75rem; line-height: 1.2; }
.empty .lede { margin-top: .75rem; }

/* People */
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 3rem; border-top: 1px solid var(--ink); }
@media (min-width: 52rem) { .people.cols { grid-template-columns: 1fr 1fr; } }
.person { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.person .role { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: .5rem 0 1rem; }
.person p { margin: 0; color: var(--ink-2); max-width: var(--measure); }

/* Contact */
.address { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.25rem); line-height: 1.2; margin: 0 0 1.25rem; word-break: break-word; }

/* Dark band */
.band { background: var(--ink); color: var(--on-ink); }
.band .lede { color: var(--on-ink-2); }
.band .label, .hero .label { color: var(--accent-ink); }
.band .more { color: var(--on-ink); border-bottom-color: var(--accent-ink); }
.section.band + .section, .section + .section.band { border-top: 0; }

/* Placeholder marker: remove .ph spans as real content arrives */
.ph {
  background: rgba(138, 43, 39, .08);
  border-bottom: 1px dashed var(--accent);
  padding: 0 .2em;
}
.band .ph, .site-footer .ph, .hero .ph {
  background: rgba(232, 228, 218, .08);
  border-bottom-color: var(--accent-ink);
}

/* Footer */
.site-footer {
  background: var(--ink); color: var(--on-ink-2);
  border-top: 1px solid var(--rule-ink);
  font-size: .875rem;
}
.site-footer .wrap { display: grid; gap: 1.5rem; padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 52rem) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; }
}
.site-footer .wordmark { color: var(--on-ink); font-size: .875rem; }
.site-footer p { margin: .5rem 0 0; }
.site-footer .legal { font-size: .8125rem; max-width: 36rem; }

@media (prefers-reduced-motion: no-preference) {
  .nav a, .rows .title { transition: color .15s ease, border-color .15s ease; }
}
