/* =========================================================
   amyocen.com — "Harbor & Brass"
   Display: Newsreader  ·  Body: IBM Plex Sans  ·  Data: IBM Plex Mono
   Edit colours in :root. Everything else inherits.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,200;0,6..72,300;0,6..72,400;1,6..72,300&display=swap');

:root {
  /* Palette */
  --harbor:      #0B2A33;   /* ink */
  --harbor-2:    #16404B;   /* ink, softer */
  --mist:        #E7ECEA;   /* page ground */
  --paper:       #FBFCFB;   /* cards */
  --brass:       #A9762F;   /* the single accent */
  --brass-soft:  #E4D2B4;
  --muted:       #5D7278;
  --line:        rgba(11, 42, 51, 0.14);

  /* Type */
  --display: 'Newsreader', Georgia, serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --data:    'IBM Plex Mono', ui-monospace, monospace;

  /* Rhythm */
  --rail: 84px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1180px;
  --section-y: clamp(72px, 11vh, 140px);
}

/* Dark mode ("Harbor") */
[data-theme="dark"] {
  --harbor:      #EAF0EF;
  --harbor-2:    #C3D2D4;
  --mist:        #071A20;
  --paper:       #0D2830;
  --brass:       #D4A05A;
  --brass-soft:  #3A2E1C;
  --muted:       #8CA3A8;
  --line:        rgba(234, 240, 239, 0.16);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--harbor);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  transition: background 400ms ease, color 400ms ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Shared bits ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--data);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow .stage {
  color: var(--brass);
  font-weight: 500;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

h1, h2, h3 { font-family: var(--display); font-weight: 300; margin: 0; }

h2.section-title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 20px 0 28px;
  max-width: 20ch;
}
h2.section-title em { font-style: italic; color: var(--brass); }

.lede {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--harbor-2);
  max-width: 62ch;
  margin: 0;
}

.mono { font-family: var(--data); font-size: 13px; letter-spacing: 0.04em; }

/* ---------- Left rail (the pipeline spine) ---------- */

.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-right: 1px solid var(--line);
  background: var(--mist);
  z-index: 40;
  transition: background 400ms ease;
}
.rail-mark {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.02em;
}
.rail-mark span { color: var(--brass); }

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.rail-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  position: relative;
  transition: background 250ms ease, border-color 250ms ease, transform 250ms ease;
}
.rail-dot::after {
  content: attr(data-label);
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.rail-dot:hover::after { opacity: 1; }
.rail-dot:hover, .rail-dot.is-active {
  background: var(--brass);
  border-color: var(--brass);
  transform: scale(1.25);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: border-color 200ms ease, color 200ms ease;
}
.theme-toggle:hover { color: var(--brass); border-color: var(--brass); }

.page { margin-left: var(--rail); }

/* ---------- Top bar (mobile + inner pages) ---------- */

.topbar {
  display: none;
  position: sticky; top: 0;
  z-index: 50;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter);
  align-items: center;
  justify-content: space-between;
}
.topbar a.brand { font-family: var(--display); font-size: 19px; }
.topbar a.brand span { color: var(--brass); }
.topbar nav { display: flex; gap: 18px; }
.topbar nav a { font-family: var(--data); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.topbar nav a:hover { color: var(--brass); }

/* ---------- Hero ---------- */

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 90px;
  padding-bottom: 60px;
}
.hero-kicker {
  font-family: var(--data);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 rgba(169, 118, 47, 0.5);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(169, 118, 47, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(169, 118, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 118, 47, 0); }
}

.hero h1 {
  font-size: clamp(48px, 8.4vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 26px 0 0;
  font-weight: 200;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
}

.hero-thesis {
  font-family: var(--display);
  font-size: clamp(22px, 2.7vw, 32px);
  font-weight: 300;
  line-height: 1.35;
  max-width: 24ch;
  margin: 32px 0 0;
  color: var(--harbor-2);
}
.hero-thesis .mark {
  background-image: linear-gradient(to top, var(--brass-soft) 42%, transparent 42%);
  padding: 0 2px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--data);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--harbor);
  background: var(--harbor);
  color: var(--mist);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn:hover { transform: translateY(-2px); background: var(--brass); border-color: var(--brass); color: #fff; }
.btn.ghost { background: transparent; color: var(--harbor); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass); background: transparent; }

/* Ticker strip */
.ticker {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ticker div {
  padding: 20px 20px 20px 0;
  border-right: 1px solid var(--line);
}
.ticker div:last-child { border-right: 0; }
.ticker dt {
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.ticker dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  letter-spacing: -0.01em;
}

/* ---------- Sections ---------- */

.section { padding: var(--section-y) 0; }
.section.bordered { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 52px; }

/* Two-column split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

/* Focus cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 30px 26px 34px;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 14px 34px -22px rgba(11, 42, 51, 0.5);
}
.card h3 {
  font-size: 24px;
  margin: 14px 0 10px;
  letter-spacing: -0.01em;
}
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card .tag {
  font-family: var(--data);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

/* Process list */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.steps li:first-child { border-top: 1px solid var(--line); }
.steps .n {
  font-family: var(--data);
  font-size: 12px;
  color: var(--brass);
  padding-top: 5px;
  letter-spacing: 0.08em;
}
.steps h3 { font-size: 21px; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  transition: padding-left 260ms ease;
}
.timeline li:hover { padding-left: 10px; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .yr { font-family: var(--data); font-size: 13px; color: var(--brass); }
.timeline .role { font-family: var(--display); font-size: clamp(20px, 2.2vw, 27px); font-weight: 300; }
.timeline .role small { display: block; font-family: var(--body); font-size: 15px; color: var(--muted); margin-top: 4px; }
.timeline .place { font-family: var(--data); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* Portfolio grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile {
  background: var(--mist);
  padding: 30px 26px;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 240ms ease;
}
.tile:hover { background: var(--paper); }
.tile .co { font-family: var(--display); font-size: 25px; font-weight: 300; }
.tile .desc { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.tile .meta {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--data); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-top: 22px;
}
.tile .meta .stage-tag { color: var(--brass); }

/* Notes list */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { border-top: 1px solid var(--line); }
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes a {
  display: grid;
  grid-template-columns: 120px 1fr 22px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  transition: padding-left 260ms ease, color 260ms ease;
}
.notes a:hover { padding-left: 10px; color: var(--brass); }
.notes .date { font-family: var(--data); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.notes .title { font-family: var(--display); font-size: clamp(19px, 2vw, 25px); font-weight: 300; }
.notes .title small { display: block; font-family: var(--body); font-size: 15px; color: var(--muted); margin-top: 4px; }
.notes .arrow { font-family: var(--data); opacity: 0.35; transition: opacity 200ms ease, transform 200ms ease; }
.notes a:hover .arrow { opacity: 1; transform: translateX(4px); }

/* ---------- Contact: the term sheet ---------- */

.termsheet {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.termsheet header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  font-family: var(--data);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.termsheet header .stamp { color: var(--brass); }
.terms { list-style: none; margin: 0; padding: 0; }
.terms li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.terms li:last-child { border-bottom: 0; }
.terms .k {
  font-family: var(--data);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.terms .v { font-size: 16.5px; }
.terms .v a { border-bottom: 1px solid var(--brass); padding-bottom: 1px; }
.terms .v a:hover { color: var(--brass); }
.termsheet footer { padding: 26px 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--data);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer a:hover { color: var(--brass); }
.site-footer .links { display: flex; gap: 20px; }

/* ---------- Article (notes) pages ---------- */

.article { max-width: 720px; margin: 0 auto; padding: 70px 0 40px; }
.article h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.article .meta {
  font-family: var(--data);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-body { margin-top: 44px; }
.article-body p { margin: 0 0 24px; font-size: 18px; line-height: 1.75; }
.article-body h2 {
  font-size: 30px;
  margin: 46px 0 16px;
  letter-spacing: -0.01em;
}
.article-body blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--brass);
  font-family: var(--display);
  font-size: 23px;
  font-style: italic;
  font-weight: 300;
  color: var(--harbor-2);
}
.article-body ul { padding-left: 20px; color: var(--harbor-2); }
.article-body li { margin-bottom: 10px; }
.back {
  font-family: var(--data);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.back:hover { color: var(--brass); }

/* ---------- 404 ---------- */

.void {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.void h1 { font-size: clamp(52px, 10vw, 120px); line-height: 1; letter-spacing: -0.03em; font-weight: 200; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .rail { display: none; }
  .page { margin-left: 0; }
  .topbar { display: flex; }
  .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .ticker { grid-template-columns: 1fr 1fr; }
  .ticker div { border-bottom: 1px solid var(--line); padding-left: 0; }
  .ticker div:nth-child(2n) { border-right: 0; }
  .ticker div:nth-last-child(-n+2) { border-bottom: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .notes a { grid-template-columns: 1fr; gap: 6px; }
  .notes .arrow { display: none; }
  .terms li { grid-template-columns: 1fr; gap: 4px; }
  .hero { min-height: auto; padding-top: 56px; }
}
