/* =============================================================
   Read Studio — Monochrome + Bone, Satoshi single-family system
   ============================================================= */

/* Satoshi from Fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Colour — Monochrome + Bone (architectural) */
  --ink:        #0A0A0A;
  --ink-soft:   #1F1F1D;
  --bone:       #FAF8F2;   /* default page bg */
  --bone-soft:  #F4F1E9;
  --concrete:   #E5E2DC;   /* alt section bg */
  --concrete-2: #D6D2C8;   /* dividers / chips */
  --graphite:   #5C5C58;   /* secondary text */
  --graphite-2: #8A8A85;
  --line:       #D6D2C8;
  --line-soft:  #E5E2DC;
  --white:      #FFFFFF;
  --ochre:      #C8985E;   /* muted brass accent */
  --ochre-deep: #8B6638;

  /* Type — Satoshi single family */
  --sans:  'Satoshi', 'Inter', 'Helvetica Neue', system-ui, sans-serif;
  --mono:  'Satoshi', 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Satoshi', 'Inter', system-ui, sans-serif; /* alias — same family in this system */

  /* Backwards-compatible aliases (old tokens map to new monochrome palette) */
  --paper:       #FAF8F2;
  --cream:       #E5E2DC;
  --cream-deep:  #D6D2C8;
  --stone:       #5C5C58;
  --stone-soft:  #8A8A85;
  --accent:      #C8985E;
  --accent-2:    #8B6638;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px; --s-11: 160px;

  /* Layout */
  --max:   1440px;
  --gutter: 80px;

  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 20px;
}

@media (max-width: 900px){
  :root { --gutter: 24px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; } /* we don't use italic — we use weight + colour */

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "tnum";
}

/* ---------- Typography Scale ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
}

.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
h1.display {
  font-size: clamp(56px, 10vw, 168px);
  letter-spacing: -0.055em;
  line-height: 0.86;
}
h1.hero {
  font-size: clamp(48px, 7.4vw, 124px);
  letter-spacing: -0.045em;
  line-height: 0.9;
}
h2.section {
  font-size: clamp(36px, 5vw, 76px);
  letter-spacing: -0.035em;
  line-height: 0.96;
}
h3 {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
}
h4 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.lede {
  font-family: var(--sans);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 38ch;
}
/* Accent emphasis — formerly italic + terracotta, now ochre + same weight */
.it,
em.italic,
.italic {
  font-style: normal !important;
  color: var(--ochre-deep);
}
.it.muted,
em.italic.muted,
.italic.muted { color: var(--graphite); }
.it.ochre { color: var(--ochre-deep); }
em { font-style: normal; }

/* Outline / stroke type for hero accents */
.outline {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: grid; gap: var(--s-6); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5); }
@media (max-width: 900px){
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-12 { grid-template-columns: repeat(4, 1fr); }
}

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;  /* sharp corners — architectural */
}
.tag::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--ochre);
}

/* ---------- Brand logo component ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand .logo {
  display: block;
  width: 84px;
  height: auto;
  color: var(--ink);
}
.brand .logo.lg { width: 200px; }
.brand .logo.sm { width: 64px; }
.brand-stack { display: flex; flex-direction: column; gap: 2px; line-height: 1; }
.brand-stack .name {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.brand-stack .sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-top: 4px;
}

/* Inline READ STUDIO wordmark, sharper than text */
.wordmark {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.045em;
  line-height: 0.86;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}
.wordmark .tm {
  font-size: 0.5em;
  font-weight: 500;
  vertical-align: super;
  letter-spacing: 0;
}

/* ---------- Buttons / Links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 240ms ease;
}
.btn .arrow {
  width: 18px; height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn .arrow svg { width: 9px; height: 9px; }
.btn-primary {
  background: var(--ink);
  color: var(--bone);
}
.btn-primary:hover { background: var(--ochre-deep); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bone); }

.link-underline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}
.link-arrow .dash { width: 36px; height: 1px; background: currentColor; }

/* ---------- Top Nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(18px);
  background: rgba(250, 248, 242, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.topnav .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-6);
}

.nav-links {
  display: flex;
  gap: var(--s-6);
  justify-content: center;
}
.nav-links a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 100%;
  bottom: 4px; height: 1px;
  background: var(--ink);
  transition: right 280ms ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--ochre-deep); }

.nav-meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
}
.marquee .track {
  display: flex;
  gap: var(--s-8);
  padding: 22px 0;
  animation: scroll 38s linear infinite;
  white-space: nowrap;
}
.marquee span {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.035em;
}
.marquee .dot { color: var(--ochre); padding: 0 4px; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Image plates ---------- */
.plate {
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--concrete);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 800ms ease;
  filter: grayscale(0.15) contrast(1.04);
}
.plate:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.05); }
.plate .meta {
  position: absolute;
  inset: auto var(--s-5) var(--s-5) var(--s-5);
  display: flex; justify-content: space-between; align-items: end;
  color: var(--bone);
  z-index: 2;
}
.plate::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.55));
  z-index: 1;
}
.plate.tall { aspect-ratio: 3/4.6; }
.plate.wide { aspect-ratio: 16/9; }
.plate.square { aspect-ratio: 1/1; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: var(--s-10) 0 var(--s-6);
  margin-top: var(--s-11);
}
.footer .inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.footer .grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-9);
}
@media (max-width: 900px){ .footer .grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite-2);
  margin-bottom: var(--s-4);
}
.footer .big {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 18ch;
}
.footer a { color: var(--bone); }
.footer a:hover { color: var(--ochre); }
.footer ul li { padding: 6px 0; font-size: 14px; }
.footer .baseline {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--s-6);
  border-top: 1px solid #1A1A18;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite-2);
}

/* footer logo */
.footer .brand-mark-lg {
  width: 280px;
  color: var(--bone);
  margin-bottom: var(--s-6);
}

/* ---------- Project cards ---------- */
.project {
  display: grid;
  gap: var(--s-4);
}
.project .num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--graphite);
  text-transform: uppercase;
}
.project .title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.project .meta-row {
  display: flex; gap: var(--s-4); align-items: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--graphite);
  text-transform: uppercase;
}
.project .meta-row span:not(:last-child)::after {
  content: '·';
  padding-left: var(--s-4);
  color: var(--line);
}

/* ---------- Section labels ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
  padding-block: var(--s-8);
  border-top: 1px solid var(--ink);
}
@media (max-width: 900px){ .section-head { grid-template-columns: 1fr; } }
.section-head .label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- Annotation system ---------- */
.board-frame {
  position: relative;
  padding-top: 56px;
}
.board-label {
  position: absolute;
  top: 18px; left: var(--gutter);
  display: inline-flex; gap: 10px; align-items: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--graphite);
  z-index: 60;
}
.board-label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); }

.annotation-toggle {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 99;
  background: var(--ink);
  color: var(--bone);
  padding: 12px 18px;
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: inline-flex; gap: 10px; align-items: center;
}
.annotation-toggle .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ochre);
  box-shadow: 0 0 0 0 rgba(200,152,94,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,152,94,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(200,152,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,152,94,0); }
}

.annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  display: none;
}
.annotations.show { display: block; }

/* ---------- Page-board navigation ---------- */
.boardnav {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 99;
  background: var(--ink);
  color: var(--bone);
  border-radius: 0;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
  display: flex; gap: 4px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.boardnav a {
  padding: 8px 12px;
  border-radius: 0;
  color: var(--bone);
  opacity: 0.6;
  transition: all 200ms ease;
}
.boardnav a:hover { opacity: 1; }
.boardnav a[aria-current="page"] {
  background: var(--ochre);
  color: var(--ink);
  opacity: 1;
}

/* ---------- Hero blocks ---------- */
.hero {
  padding: var(--s-9) 0 var(--s-8);
  position: relative;
  overflow: hidden;
}

/* ---------- Form ---------- */
.field {
  display: grid; gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 14px 0 18px;
}
.field label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
}
.field input, .field textarea, .field select {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  color: var(--ink);
  outline: none;
  padding: 0;
  letter-spacing: -0.02em;
}
.field textarea { resize: vertical; min-height: 80px; }

/* ---------- Utility ---------- */
.muted { color: var(--graphite); }
.center { text-align: center; }
.right  { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-7 { margin-bottom: var(--s-7); }
.mb-8 { margin-bottom: var(--s-8); }
.pt-9 { padding-top: var(--s-9); }
.pb-9 { padding-bottom: var(--s-9); }

/* ---------- Stat block ---------- */
.stat .n {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  display: block;
  margin-bottom: 12px;
}
.stat .l {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
}

/* ---------- Pull quote ---------- */
.pull {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.pull .accent { color: var(--ochre-deep); }

/* ---------- Tabs / filters ---------- */
.filters {
  display: flex; gap: 4px; flex-wrap: wrap;
}
.filters button {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 0;
  border: 1px solid var(--line);
  color: var(--graphite);
  transition: all 200ms ease;
}
.filters button[aria-pressed="true"], .filters button:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* ---------- Page intro ---------- */
.page-intro {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--s-7);
  padding-block: var(--s-9) var(--s-8);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px){ .page-intro { grid-template-columns: 1fr; } }
.page-intro .crumbs {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
}
.page-intro h1 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(48px, 6.4vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

/* small accents */
.dot-accent { width: 8px; height: 8px; background: var(--ochre); border-radius: 50%; display: inline-block; }
.rule { display: block; height: 1px; background: var(--ink); width: 56px; }
