:root {
  --ink: #1a1a18;
  --ink-soft: #3d3d38;
  --paper: #f3f1eb;
  --paper-2: #e8e4da;
  --rule: #cfc9bb;
  --accent: #0e4a4a;
  --accent-soft: #1a6464;
  --link: #0e4a4a;
  --link-hover: #082e2e;
  --footer-ink: #5c5a52;
  --max: 40rem;
  --font-display: Lora, Georgia, "Times New Roman", serif;
  --font-body: Lora, Georgia, "Times New Roman", serif;
  --font-ui: "IBM Plex Mono", ui-monospace, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(14, 74, 74, 0.07), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(90, 70, 40, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
  background-attachment: fixed;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

.site {
  width: min(100% - 2rem, calc(var(--max) + 4rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.nav-top {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.nav-top a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav-top a:hover {
  border-bottom-color: var(--rule);
}

.nav-top .sep {
  margin: 0 0.45rem;
  opacity: 0.45;
}

main {
  flex: 1;
}

.page-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 1.35rem;
}

.page-title .brand {
  font-style: italic;
  font-weight: 600;
}

.meta-line {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.meta-line span + span::before {
  content: " · ";
  opacity: 0.55;
}

.prose p {
  margin: 0 0 1rem;
  max-width: 38rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose .short {
  max-width: 32rem;
}

.doors {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.doors a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.doors a:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.65);
  color: var(--accent-soft);
  transform: translateX(2px);
}

.doors a .hint {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}

.band {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.band h2 {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.band ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  max-width: 36rem;
}

.band li {
  margin-bottom: 0.45rem;
}

.band li:last-child {
  margin-bottom: 0;
}

.soft-note {
  font-size: 0.95em;
  color: var(--ink-soft);
}

.portfolio-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.portfolio-list li {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.45;
  text-transform: uppercase;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

/* Inline highlights (picker: cream / paperbox / creambox / yellow / mono).
   Markup: <mark class="highlight-cream">…</mark> or <em class="highlight-mono">…</em> */
mark.highlight-cream,
mark.highlight-paperbox,
mark.highlight-creambox,
mark.highlight-yellow,
mark.highlight-mono,
mark.highlight-monosmall,
em.highlight-cream,
em.highlight-paperbox,
em.highlight-creambox,
em.highlight-yellow,
em.highlight-mono,
em.highlight-monosmall {
  font-style: normal;
}

/* Warm cream underpaint */
.highlight-cream {
  background: #e8dcc8;
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.06em 0.22em;
}

/* Soft paper box */
.highlight-paperbox {
  border: 1px solid var(--rule);
  padding: 0.05em 0.28em 0.08em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Soft cream chip (cream fill + warm rule border) */
.highlight-creambox {
  border: 1px solid #c4b8a4;
  background: #e8dcc8;
  color: var(--ink);
  padding: 0.05em 0.28em 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Angled parchment / soft yellow */
.highlight-yellow {
  color: var(--ink);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.12em 0.22em;
  background: linear-gradient(
    -8deg,
    transparent 10%,
    #f0e4a8 10%,
    #f0e4a8 90%,
    transparent 90%
  );
}

/* Soft mono — body-ink typeface flip (inherit size from surrounding text) */
.highlight-mono {
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-transform: uppercase;
  font-style: normal;
}

/* Soft mono, slightly smaller + more tracking — for body/serif contexts */
.highlight-monosmall {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.86em;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-transform: uppercase;
  font-style: normal;
}

.etymology {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 1.5rem 0 1.5rem;
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.4);
  max-width: 30rem;
}

.etymology strong {
  font-weight: 500;
  color: var(--accent);
}

.contact-block {
  margin: 1.5rem 0 0;
}

.contact-block dt {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.25rem 0 0.35rem;
}

.contact-block dd {
  margin: 0;
  max-width: 32rem;
}

.contact-block a {
  font-weight: 500;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-ui);
  font-size: 0.7rem;
  line-height: 1.55;
  color: var(--footer-ink);
  letter-spacing: 0.02em;
}

.site-footer p {
  margin: 0 0 0.4rem;
  max-width: 36rem;
}

.site-footer a {
  color: var(--footer-ink);
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.site-footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-footer-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--rule);
}

.site-footer-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Author fill-in: replace .stub-fill paragraphs before ship */
.stub-fill {
  border-left: 2px dashed var(--rule);
  padding-left: 0.75rem;
  color: var(--ink-soft);
  font-style: italic;
}

.stub-fill::before {
  content: "[fill in] ";
  font-family: var(--font-ui);
  font-style: normal;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.faq-list {
  margin: 1.5rem 0 0 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
}

.faq-list > li {
  margin: 0 0 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.faq-list > li:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.faq-list h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.faq-list p {
  margin-left: 1.5rem;
}

.evidence-template {
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px dashed var(--rule);
  background: rgba(255, 255, 255, 0.35);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
}

.evidence-template strong {
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-top: 0.45rem;
}

.evidence-template strong:first-child {
  margin-top: 0;
}

.contact-block {
  margin: 1.5rem 0 0;
}

.contact-block .band {
  margin-top: 1.5rem;
}

/* Alias: primary column of contact is sections, not only dt/dd */
.contact-methods {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-methods > li {
  margin: 0 0 1.25rem;
}

.contact-methods h2 {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.contact-methods p {
  margin: 0;
  max-width: 32rem;
}

.contact-methods a {
  font-weight: 500;
}

@media (min-width: 640px) {
  .site {
    padding: 2.5rem 0 4rem;
  }

  .doors {
    gap: 0.75rem;
  }

  .doors a {
    padding: 1rem 1.15rem;
  }
}
