/* raiseaq — editorial minimal. No dependencies, no web fonts. */

/* ── tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:        #faf9f7;
  --bg-sunk:   #f2f0ec;
  --ink:       #1c1a17;
  --ink-soft:  #55504a;
  --ink-faint: #8b847b;
  --rule:      #e0dcd4;
  --accent:    #9c4221;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;      /* body text column */
  --gutter:  clamp(1.5rem, 6vw, 5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #16150f;
    --bg-sunk:   #1d1b15;
    --ink:       #eae6de;
    --ink-soft:  #b0a99e;
    --ink-faint: #7e766b;
    --rule:      #33302a;
    --accent:    #e0915f;
  }
}

/* ── reset-ish ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem;
  z-index: 10;
  padding: .5rem .9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 3px;
}

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

/* ── header ─────────────────────────────────────────────────────────── */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.head-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-block: 1.4rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .01em;
  text-decoration: none;
}
.wordmark::after {
  content: ".";
  color: var(--accent);
}

.site-head nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: .82rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.site-head nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-head nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(4rem, 13vw, 8.5rem) clamp(3.5rem, 9vw, 6rem);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6.4vw, 3.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 28ch;
  text-wrap: balance;
}

.lede {
  margin-top: 1.9rem;
  max-width: var(--measure);
  font-size: 1.085rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero-meta {
  margin-top: 2.4rem;
  font-size: .82rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-meta a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.hero-meta a:hover { border-bottom-color: var(--accent); }

/* ── sections ───────────────────────────────────────────────────────── */
.band {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 52rem) {
  .row {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 3.5rem;
  }
}

.row-label {
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: .45rem;
}

.row-body {
  max-width: var(--measure);
}

/* ── items ──────────────────────────────────────────────────────────── */
.item + .item,
.case + .case {
  margin-top: 2.4rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--rule);
}

.item h3,
.case h3 {
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-bottom: .6rem;
}

.item p,
.case p {
  color: var(--ink-soft);
  text-wrap: pretty;
}

.case p + p { margin-top: .95rem; }

.case-meta {
  font-size: .78rem !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint) !important;
  margin-bottom: 1rem !important;
}

.note {
  margin-top: 2.2rem;
  font-size: .92rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ── contact ────────────────────────────────────────────────────────── */
.contact-line { margin-bottom: 1rem; }

.email {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  transition: border-color .15s;
}
.email:hover { border-bottom-color: var(--accent); }

#contact .row-body > p:not(.contact-line) { color: var(--ink-soft); }

.details {
  margin: 2.6rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr;
  gap: .3rem 2rem;
  font-size: .94rem;
}

@media (min-width: 34rem) {
  .details {
    grid-template-columns: 9.5rem minmax(0, 1fr);
    gap: .85rem 2rem;
  }
}

.details dt {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: .22rem;
}

.details dd {
  margin: 0 0 .9rem;
  color: var(--ink-soft);
}

@media (min-width: 34rem) {
  .details dd { margin-bottom: 0; }
}

/* ── footer ─────────────────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--bg-sunk);
  padding-block: 2rem;
  font-size: .84rem;
  color: var(--ink-faint);
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.site-foot a:hover { color: var(--ink-soft); }

/* ── print ──────────────────────────────────────────────────────────── */
@media print {
  .site-head nav, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { break-inside: avoid; }
}
