@keyframes ompulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

:root {
  --accent: #bf512c;
  --accent-glow: rgba(191, 81, 44, .16);
  --bg: #f3f1ec;
  --fg: #211d18;
  --muted: #514a40;
  --muted-2: #6b6358;
  --label: #a39885;
  --faint: #8c8275;
  --divider: #ddd7cc;
  --divider-2: #ece7dc;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
}

body {
  color: var(--fg);
  font-family: var(--sans);
}

.page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 1760px;
  padding: 48px 56px 64px;
  display: flex;
  flex-direction: column;
}

/* ---------- header ---------- */

.topbar {
  display: flex;
  justify-content: center;
}

.topbar-inner {
  width: 100%;
  padding: 0 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .3em;
  font-weight: 600;
}

.topbar-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
}

/* ---------- two-column layout ---------- */

.layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 0 96px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 32px;
}

/* ---------- rail: identity ---------- */

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.dot--pulse {
  animation: ompulse 2.4s ease-in-out infinite;
}

.intro { margin-top: 28px; }

.name {
  font-size: clamp(44px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1.1;
  color: #7a7164;
  margin: 8px 0 0;
}

.lede {
  margin: 22px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 440px;
}

/* ---------- callout: at a glance ---------- */

.callout {
  margin-top: 28px;
  background: #fbf9f4;
  box-shadow: inset 0 0 0 1px rgba(33, 29, 24, .08);
  border-left: 2px solid var(--accent);
  border-radius: 2px;
  padding: 17px 20px;
}

.callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 14px;
  column-gap: 24px;
  margin-top: 13px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label);
}

.stat-value {
  font-size: 14.5px;
  margin-top: 3px;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--label);
}

.eyebrow--accent { color: var(--accent); }

.eyebrow--section { margin-bottom: 6px; }

.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.feed-head .eyebrow--section { margin-bottom: 0; }

.feed-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.feed-note-strong { color: var(--accent); }

.feed-head--gap { margin-top: 44px; }

.xp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 15px;
}

.xp-links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}

.xp-links a:hover { text-decoration: underline; }

/* ---------- rail: cta + contact ---------- */

.cta-row {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 2px;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--sans);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover { opacity: .9; }

.btn--outline {
  border: 1px solid #ccc3b4;
  color: var(--fg);
  padding: 10px 16px;
}

.btn--outline:hover { border-color: var(--fg); }

.contact {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--divider);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.email {
  cursor: pointer;
  color: var(--fg);
}

.email:hover { color: var(--accent); }

.sep { color: #cfc6b8; }

.contact a {
  color: var(--faint);
  text-decoration: none;
}

.contact a:hover { color: var(--fg); }

.copied-tag {
  color: var(--accent);
  margin-left: 8px;
}

/* ---------- feed: experience ---------- */

.feed { min-width: 0; }

.xp {
  border-bottom: 1px solid var(--divider-2);
  padding: 20px 0;
}

.xp-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #b3a896;
}

.xp-header:hover { color: var(--accent); }

.xp.is-expanded .xp-header { color: var(--accent); }

.xp-main { flex: 1; min-width: 0; }

.xp-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.xp-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
}

.xp-dates {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.xp-impact {
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.5;
}

.xp-stat {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  transition: color .35s ease;
}

.xp.is-expanded .xp-stat,
.xp-header:hover .xp-stat { color: var(--accent); }

.xp-impact-text { color: var(--muted-2); }

.xp-crisp {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--faint);
  line-height: 1.5;
}

.chevron {
  flex-shrink: 0;
  transform: rotate(0deg);
  transition: transform .42s cubic-bezier(.4, 0, .2, 1), color .35s ease;
}

.xp.is-expanded .chevron { transform: rotate(90deg); }

.xp-panel-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.4, 0, .2, 1);
}

.xp.is-expanded .xp-panel-wrap { grid-template-rows: 1fr; }

.xp-panel-inner {
  overflow: hidden;
  min-height: 0;
}

.xp-panel-body {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .38s ease .06s, transform .4s cubic-bezier(.2, .7, .3, 1) .06s;
  padding-top: 16px;
}

.xp.is-expanded .xp-panel-body {
  opacity: 1;
  transform: none;
}

.xp-detail {
  margin: 0 0 13px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 680px;
}

.xp-detail:last-of-type { margin-bottom: 0; }

.xp-detail strong {
  font-weight: 600;
  color: var(--fg);
}

.xp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 16px;
}

.xp-meta-k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--label);
}

.xp-meta-v {
  font-size: 13px;
  color: #2a2722;
  margin-top: 2px;
}

/* ---------- signals ---------- */

.signals {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.7;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.signals-strong { color: var(--fg); }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .container { padding: 32px 32px 48px; }

  .topbar-inner { padding: 0 0 22px; }

  .layout {
    margin-top: 48px;
    grid-template-columns: 1fr;
    gap: 48px 0;
  }

  .rail { position: static; }

  .contact { border-top: none; padding-top: 0; }
}
