/* Stacks - stacks.hruss.com
   Editorial, paper-warm, orange-accented. Shared by all pages. */

:root {
  --paper: #faf5ef;
  --paper-deep: #f3ebe1;
  --ink: #221c15;
  --ink-soft: #5c5248;
  --ink-faint: #8a7f73;
  --brand: #c7491f;
  --brand-deep: #9e3814;
  --rule: #e2d7c8;
  --measure: 41rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(120rem 60rem at 80% -20%, #fdf9f4 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}

/* ---------- masthead ---------- */

header.masthead {
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(to bottom, var(--paper-deep), transparent);
}

.masthead-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.masthead a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}

.masthead .logo { width: 34px; height: 34px; flex: none; }

.masthead .wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.masthead .tagline {
  margin-left: auto;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 0.95rem;
}

/* ---------- page scaffold ---------- */

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.kicker {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 1rem;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 560;
  font-size: clamp(2.1rem, 6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.75rem;
}

.dateline {
  color: var(--ink-faint);
  font-style: italic;
  margin: 0 0 2.75rem;
}

.lede {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-left: 3px solid var(--brand);
  padding-left: 1.25rem;
  margin: 0 0 3rem;
}

/* numbered editorial sections */

section.numbered {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0 1.1rem;
  margin: 0 0 2.6rem;
}

section.numbered > .no {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--brand);
  line-height: 1.3;
  border-top: 2px solid var(--ink);
  padding-top: 0.55rem;
}

section.numbered > div { border-top: 1px solid var(--rule); padding-top: 0.6rem; }

section.numbered h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.45rem; }

a { color: var(--brand-deep); text-decoration-color: rgba(199, 73, 31, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--brand); }

strong { font-weight: 650; }

.plain-list { list-style: none; padding: 0; }
.plain-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.plain-list li:first-child { border-top: 1px solid var(--rule); }

/* pull-quote style emphasis box */

.tenet {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 3rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.5;
  font-style: italic;
}
.tenet .mark { color: var(--brand); font-style: normal; }

/* contact card */

.contact-card {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  margin: 0 0 2.6rem;
  box-shadow: 5px 5px 0 var(--brand);
  background: #fffdf9;
}
.contact-card h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}
.contact-card .email {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-block;
  margin: 0.2rem 0 0.6rem;
}

/* FAQ */

details {
  border-top: 1px solid var(--rule);
  padding: 0.9rem 0;
}
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  color: var(--brand);
  font-weight: 600;
  flex: none;
  transition: transform 160ms ease;
}
details[open] summary::before { content: "–"; }
details > p, details > ul { margin-top: 0.7rem; color: var(--ink-soft); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
}
.footer-inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 2rem;
  font-size: 0.92rem;
  color: var(--ink-faint);
}
.footer-inner nav { margin-bottom: 0.5rem; }
.footer-inner nav a { margin-right: 1.4rem; }
.disclaimer { font-style: italic; }

/* gentle entrance */

@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  main > *:nth-child(2) { animation-delay: 0.06s; }
  main > *:nth-child(3) { animation-delay: 0.12s; }
  main > *:nth-child(4) { animation-delay: 0.18s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 540px) {
  section.numbered { grid-template-columns: 2.2rem 1fr; gap: 0 0.8rem; }
  .masthead .tagline { display: none; }
}
