/* Corten Research — site styles */
:root {
  --bg: #121010;
  --bg-2: #1a1614;
  --panel: #1f1a17;
  --line: #3a2e28;
  --text: #e8e0d6;
  --muted: #a3968a;
  --rust: #8b3a1f;
  --rust-bright: #c25a2f;
  --patina: #d08a4e;
  --serif: "IM Fell English", Georgia, "Times New Roman", serif;
  --body: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139,58,31,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(139,58,31,.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--patina); text-decoration: none; border-bottom: 1px solid rgba(208,138,78,.35); transition: color .15s, border-color .15s; }
a:hover { color: #f0b07a; border-color: currentColor; }

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

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18,16,16,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; border: 0; color: var(--text); }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .01em; }
.nav { display: flex; gap: 28px; }
.nav a {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border: 0; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--rust-bright); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; padding: 8px 12px; cursor: pointer; }

/* Type */
.eyebrow {
  font-family: var(--mono); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rust-bright); margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -.005em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.25rem; color: #d6ccc0; max-width: 40em; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 120px 0 96px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: 40px; width: 520px; height: 520px;
  background: url("crow.svg") no-repeat center / contain; opacity: .06; pointer-events: none;
}
.hero h1 em { font-style: italic; color: var(--patina); }
.hero .actions { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid var(--rust-bright); color: var(--text); background: var(--rust);
}
.btn:hover { background: var(--rust-bright); color: #fff; border-color: var(--rust-bright); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: rgba(194,90,47,.15); color: var(--text); }

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.section-head { max-width: 44em; margin-bottom: 48px; }

.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); padding: 32px; position: relative;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 2px; background: var(--rust-bright); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 14px;
}

/* Research entries */
.paper { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.paper:first-of-type { border-top: 0; padding-top: 0; }
.paper .meta { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); line-height: 1.9; }
.paper .meta strong { color: var(--rust-bright); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.paper ul { padding-left: 1.1em; margin: 0 0 1.1em; }
.paper li { margin-bottom: .4em; }
.links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; }

/* Principles list */
.principles { list-style: none; padding: 0; margin: 0; counter-reset: p; }
.principles li { counter-increment: p; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 26px 0; border-top: 1px solid var(--line); }
.principles li::before { content: counter(p, upper-roman) "."; font-family: var(--serif); font-size: 1.6rem; color: var(--rust-bright); }
.principles h3 { font-size: 1.3rem; margin-bottom: .3em; }
.principles p { margin: 0; color: #d0c6ba; }

/* Quote band */
.band { background: var(--rust); border: 0; padding: 72px 0; }
.band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.3; max-width: 30em; font-style: italic; }
.band cite { display: block; margin-top: 18px; font-family: var(--mono); font-style: normal; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: #f1d2c0; }

/* Contact */
.contact-box { border: 1px solid var(--line); padding: 40px; background: var(--panel); }
.contact-box .addr { font-family: var(--mono); font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 56px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.site-footer a { color: var(--muted); border: 0; }
.site-footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 860px) {
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .paper { grid-template-columns: 1fr; gap: 16px; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 28px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 80px 0 64px; }
  section { padding: 64px 0; }
  body { font-size: 17px; }
}
