/* =========================================================
   NEOARCHITECTURE — Shared Design System
   Editorial base. Modernist surprises.
   ========================================================= */

:root {
  --bg: #F7F3EC;
  --ink: #1A1614;
  --muted: #5B544C;
  --rule: #C9BFAE;
  --accent: #8B2A1F;

  /* extended system */
  --bg-deep: #EFE9DE;
  --ink-soft: #2C2420;
  --paper-line: rgba(26, 22, 20, 0.08);

  --serif: Georgia, "Times New Roman", Cambria, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 72px 32px 96px; }
@media (max-width: 640px) { .wrap { padding: 48px 20px 64px; } }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* =========================================================
   HIDDEN NAVIGATION — Sigil + Keyboard + Overlay
   ========================================================= */

/* The sigil — a small serif 'N' monogram in the top-right.
   Discreet, not aggressive. Serves as the only persistent UI. */
.sigil {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 50;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 240ms ease, color 240ms ease, border-color 240ms ease, transform 240ms ease;
}
.sigil:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sigil:active { transform: scale(0.96); }

/* Corner hint — whispers the keyboard shortcut once per page load, then fades. */
.hint {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 49;
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}
.hint kbd {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 4px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
}
.hint.show { opacity: 1; }

/* The overlay nav — a stark modernist table-of-contents moment.
   Same palette, very different rhythm from the essay. */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.nav-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1;
  transition: background 220ms ease, color 220ms ease;
}
.nav-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.nav-body {
  display: grid;
  place-items: center;
  padding: 32px 28px;
}
.nav-list {
  list-style: none;
  width: 100%;
  max-width: 640px;
  display: grid;
  gap: 4px;
}
.nav-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--paper-line);
  font-family: var(--serif);
  transition: color 220ms ease, padding 320ms ease;
}
.nav-item:last-child { border-bottom: 1px solid var(--paper-line); }
.nav-item:hover { color: var(--accent); padding-left: 10px; }
.nav-item.current { color: var(--accent); }
.nav-item.current::after {
  content: "· you are here";
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 12px;
}

.nav-numeral {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.nav-title {
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.nav-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  justify-self: end;
  align-self: center;
}
@media (max-width: 640px) {
  .nav-item { grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 14px 0; }
  .nav-desc { grid-column: 2; justify-self: start; margin-top: 4px; }
  .nav-item.current::after { display: block; margin-left: 0; margin-top: 6px; }
}

.nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-footer kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
  margin: 0 2px;
}

/* Prevent scroll when nav is open */
body.nav-open { overflow: hidden; }

/* =========================================================
   SHARED PAGE COMPONENTS
   ========================================================= */

.masthead {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.title {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 16px;
  color: var(--ink);
}
.subtitle {
  font-style: italic;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  margin-top: 20px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 42px;
  margin-bottom: 14px;
}
h2.tenet {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 26px;
  margin-top: 56px;
}
.numeral {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 36px;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
  flex-shrink: 0;
}

p { font-size: 17.5px; margin-bottom: 16px; color: var(--ink); }
p.lead { font-size: 19px; line-height: 1.6; }
p + p { margin-top: 6px; }

.drop {
  font-size: 52px;
  line-height: .85;
  float: left;
  margin: 6px 10px 0 0;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--serif);
}

.rule { border: none; border-top: 1px solid var(--rule); margin: 56px auto; width: 120px; }

.pullquote {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 18px;
  margin: 28px 0;
  font-style: italic;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.stat {
  font-family: var(--sans);
  font-feature-settings: "tnum";
  font-weight: 600;
  color: var(--accent);
}

.closing {
  text-align: center;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.signature { font-style: italic; color: var(--muted); font-size: 15px; margin-top: 24px; }
.meta {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

strong { font-weight: 700; }
em { font-style: italic; }

a.inline {
  border-bottom: 1px solid var(--rule);
  transition: border-color 200ms ease, color 200ms ease;
}
a.inline:hover { color: var(--accent); border-color: var(--accent); }

/* =========================================================
   MODERNIST SURPRISE PAGE PATTERNS
   Used on Work & Contact for aesthetic contrast.
   ========================================================= */

.slab-head {
  padding: 120px 32px 72px;
  border-bottom: 1px solid var(--rule);
  max-width: 1120px;
  margin: 0 auto;
}
.slab-head .eyebrow { margin-bottom: 20px; }
.slab-head .title { text-align: left; margin-top: 0; font-size: clamp(44px, 8vw, 96px); }
.slab-head .subtitle {
  text-align: left;
  margin: 28px 0 0;
  max-width: 640px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 640px) { .slab-head { padding: 88px 20px 48px; } }

.grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px 120px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
}
@media (max-width: 900px) { .grid { padding: 32px 20px 80px; } }

.card {
  grid-column: span 6;
  background: var(--bg-deep);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: background 240ms ease, color 240ms ease;
}
.card:hover { background: var(--ink); color: var(--bg); }
.card:hover .card-meta, .card:hover .card-desc { color: var(--bg-deep); }
.card:hover .card-num { color: var(--bg); }
.card-num {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--accent);
  transition: color 240ms ease;
}
.card-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-top: auto;
}
.card-desc {
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  transition: color 240ms ease;
}
.card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 240ms ease;
}
@media (max-width: 900px) { .card { grid-column: span 12; min-height: 200px; padding: 32px 24px; } }

/* Footer — present on every page for editorial cohesion */
.pagefoot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 640px) {
  .pagefoot { flex-direction: column; gap: 10px; padding: 24px 20px; text-align: center; }
}
