/* ─────────────────────────────────────────────────────────────────
   CANONSPIKE.COM — Personal landing page for Paul Reioux
   Design: dark editorial luxury · Chinese Ox palette
   Colors: near-black · antique gold · forest green · off-white
   Modern CSS: @property, scroll-driven animations, color-mix(),
   text-wrap, CSS nesting, container queries, backdrop-filter
   ───────────────────────────────────────────────────────────────── */

/* ── Animatable custom properties via @property ── */
@property --shimmer-pos {
  syntax: '<percentage>';
  inherits: false;
  initial-value: -100%;
}

/* ── 1. Custom Properties ── */
:root {
  --color-bg:           #0a0a0a;
  --color-bg-raised:    #111110;
  --color-gold:         #C9A84C;
  --color-gold-dim:     rgba(201, 168, 76, 0.4);
  --color-gold-glow:    rgba(201, 168, 76, 0.15);
  --color-green:        #3D7A52;
  --color-green-dim:    rgba(61, 122, 82, 0.35);
  --color-text:         #F5F5F0;
  --color-muted:        #888880;
  --color-muted-dim:    #55554e;

  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --max-w:        680px;
  --section-pad:  clamp(4rem, 8vw, 7rem);
  --h-pad:        clamp(1.5rem, 5vw, 3rem);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);

}

/* ── 2. Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── 3. Grain Overlay ── */
.grain {
  position: fixed;
  inset: -20%;
  width: 140%;
  height: 140%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: grain-drift 7s steps(10) infinite;
}

@keyframes grain-drift {
  0%   { transform: translate(0,    0);    }
  10%  { transform: translate(-3%,  -4%);  }
  20%  { transform: translate(4%,   2%);   }
  30%  { transform: translate(-2%,  5%);   }
  40%  { transform: translate(3%,   -3%);  }
  50%  { transform: translate(-5%,  2%);   }
  60%  { transform: translate(2%,   -2%);  }
  70%  { transform: translate(-3%,  4%);   }
  80%  { transform: translate(5%,   -2%);  }
  90%  { transform: translate(-2%,  3%);   }
  100% { transform: translate(0,    0);    }
}

/* ── 4. Scroll Animation System ── */
/* JS IntersectionObserver fallback adds .visible class */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.85s var(--ease-out-expo),
    transform 0.85s var(--ease-out-expo);
  transition-delay: calc(var(--delay, 0) * 110ms);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* CSS scroll-driven animation: replaces IO where supported */
@supports (animation-timeline: view()) {
  .fade-in:not([data-delay]) {
    animation: scroll-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  @keyframes scroll-reveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0);    }
  }
}

/* ── 5. Hero Section ── */
.section-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 12vw, 9rem) var(--h-pad) clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%,
      rgba(201, 168, 76, 0.04) 0%,
      transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 100%,
      rgba(0, 0, 0, 0.5) 0%,
      transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.8rem, 4vw, 2.8rem);
  width: 100%;
  max-width: var(--max-w);
  position: relative;
}

/* ── Profile Photo ── */
.hero-photo-wrap {
  position: relative;
}

.hero-photo {
  display: block;
  width: clamp(130px, 20vw, 175px);
  height: clamp(130px, 20vw, 175px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-gold);
  box-shadow:
    0 0 0 6px var(--color-bg),
    0 0 0 7px var(--color-gold-dim),
    0 0 40px var(--color-gold-glow),
    0 0 80px rgba(201, 168, 76, 0.06);
  transition: box-shadow 0.5s var(--ease-in-out), transform 0.5s var(--ease-in-out);
}

.hero-photo:hover {
  box-shadow:
    0 0 0 6px var(--color-bg),
    0 0 0 7px var(--color-gold),
    0 0 50px rgba(201, 168, 76, 0.25),
    0 0 100px rgba(201, 168, 76, 0.1);
  transform: scale(1.03);
}

/* ── Animated shimmer on hero name via @property ── */
@keyframes name-shimmer {
  from { --shimmer-pos: -100%; }
  to   { --shimmer-pos: 200%;  }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--color-text);
  text-wrap: balance;
  background: linear-gradient(
    120deg,
    var(--color-text) 0%,
    #e8e3d8 25%,
    var(--color-gold) var(--shimmer-pos),
    #e8e3d8 75%,
    var(--color-text) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: name-shimmer 6s ease-in-out infinite;
}

/* ── Meta line: title · company ── */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-title-label {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero-dot {
  color: var(--color-gold-dim);
  font-size: 0.9rem;
  user-select: none;
}

.hero-company {
  font-family: var(--font-body);
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold-dim);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}

.hero-company:hover {
  color: #e0c06a;
  border-color: #e0c06a;
  color: color-mix(in oklch, var(--color-gold) 70%, white);
  border-color: color-mix(in oklch, var(--color-gold) 70%, white);
}

/* ── Tagline ── */
.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.8vw, 1.4rem);
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 36ch;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-gold-dim), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.1); }
}

/* ── 6. Content Sections ── */
.section-content {
  padding: var(--section-pad) var(--h-pad);
  position: relative;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-divider-line {
  width: 32px;
  height: 1px;
  background: var(--color-green);
  margin-bottom: 2.2rem;
  opacity: 0.7;
}

/* ── 7. Gold Rule Divider ── */
.gold-rule {
  border: none;
  max-width: var(--max-w);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-gold-dim) 20%,
    var(--color-gold) 50%,
    var(--color-gold-dim) 80%,
    transparent
  );
  position: relative;
}

.gold-rule::after {
  content: '\25C6';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.5rem;
  color: var(--color-gold);
  background: var(--color-bg);
  padding: 0 0.5rem;
  line-height: 1;
}

/* ── 8. Body Text ── */
.body-text {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.8vw, 1rem);
  font-weight: 300;
  line-height: 1.85;
  color: #9a9a93;
  max-width: 60ch;
  margin-bottom: 1.4rem;
  text-wrap: pretty;
}

.body-text:last-child {
  margin-bottom: 0;
}

.body-text--center {
  text-align: center;
  max-width: 100%;
  color: var(--color-muted);
}

.text-link {
  color: var(--color-gold);
  text-decoration: none;
  border-bottom: 1px solid var(--color-gold-dim);
  padding-bottom: 1px;
  transition: color 0.25s, border-color 0.25s;
}

.text-link:hover {
  color: #e0c06a;
  border-color: #e0c06a;
  color: color-mix(in oklch, var(--color-gold) 70%, white);
  border-color: color-mix(in oklch, var(--color-gold) 70%, white);
}

/* ── 8b. Career Timeline ── */
.timeline {
  position: relative;
  padding-left: 2rem;
  container-type: inline-size;
}

/* Animated timeline spine */
.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--color-gold),
    #83914f 50%,
    var(--color-gold-dim)
  );
  background: linear-gradient(
    to bottom,
    var(--color-gold),
    color-mix(in oklch, var(--color-gold) 50%, var(--color-green)) 50%,
    var(--color-gold-dim)
  );
}

/* Scroll-driven drawing of timeline spine */
@supports (animation-timeline: view()) {
  .timeline::before {
    animation: draw-line linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 80%;
  }

  @keyframes draw-line {
    from { clip-path: inset(0 0 100% 0); }
    to   { clip-path: inset(0 0 0% 0);   }
  }
}

.timeline-entry {
  position: relative;
  padding-bottom: 2.8rem;
  transition: transform 0.3s var(--ease-out-expo);
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

.timeline-entry:hover {
  transform: translateX(4px);
}

/* Glass card effect on hover */
.timeline-content {
  padding: 1rem 1.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    background 0.4s var(--ease-in-out),
    border-color 0.4s var(--ease-in-out),
    box-shadow 0.4s var(--ease-in-out);
}

.timeline-entry:hover .timeline-content {
  background: rgba(17, 17, 16, 0.8);
  border-color: rgba(201, 168, 76, 0.15);
  background: color-mix(in oklch, var(--color-bg-raised) 80%, transparent);
  border-color: color-mix(in oklch, var(--color-gold) 15%, transparent);
  box-shadow: 0 4px 30px rgba(201, 168, 76, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.15rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--color-gold);
  background: var(--color-bg);
  z-index: 2;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-in-out);
}

.timeline-entry:first-child .timeline-marker {
  background: var(--color-gold);
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.timeline-entry:hover .timeline-marker {
  transform: scale(1.4);
  box-shadow: 0 0 16px var(--color-gold-glow);
}

.timeline-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.timeline-period {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-role {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
}

.timeline-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-highlights li {
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.7vw, 0.95rem);
  font-weight: 300;
  line-height: 1.7;
  color: #9a9a93;
  padding-left: 1rem;
  position: relative;
  text-wrap: pretty;
}

.timeline-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-green);
  opacity: 0.7;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.timeline-entry:hover .timeline-highlights li::before {
  transform: scale(1.5);
  opacity: 1;
}

/* Container query: compact layout on narrow viewports */
@container (max-width: 400px) {
  .timeline-header {
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* ── 8c. Advisory Section ── */
.advisory-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.advisory-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 1.7vw, 0.95rem);
  font-weight: 300;
  line-height: 1.7;
  color: #9a9a93;
  padding: 1rem 1.2rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    background 0.4s var(--ease-in-out),
    border-color 0.4s var(--ease-in-out),
    box-shadow 0.4s var(--ease-in-out);
}

.advisory-item:hover {
  background: rgba(17, 17, 16, 0.8);
  border-color: rgba(201, 168, 76, 0.15);
  background: color-mix(in oklch, var(--color-bg-raised) 80%, transparent);
  border-color: color-mix(in oklch, var(--color-gold) 15%, transparent);
  box-shadow: 0 4px 30px rgba(201, 168, 76, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.advisory-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.25em;
  color: var(--color-gold);
  opacity: 0.85;
}

.advisory-heading {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.advisory-desc {
  display: block;
  text-wrap: pretty;
}

.advisory-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* ── 8d. Contact Form ── */
.contact-form {
  max-width: 480px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form[hidden] {
  display: none;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-text);
  background: rgba(17, 17, 16, 0.6);
  background: color-mix(in oklch, var(--color-bg-raised) 60%, transparent);
  border: 1px solid var(--color-muted-dim);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s var(--ease-in-out), box-shadow 0.3s var(--ease-in-out);
  outline: none;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-gold-dim);
  box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  align-self: center;
  cursor: pointer;
  background: none;
  margin-top: 0.5rem;
}

.btn-submit:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.form-status {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-green);
  margin: 0;
  min-height: 1.5em;
}

.form-status.error {
  color: #c44;
}

/* ── 9. Currently List ── */
.currently-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.currently-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.8vw, 1rem);
  font-weight: 300;
  line-height: 1.7;
  color: #9a9a93;
  text-wrap: pretty;
}

.currently-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 0.25em;
  color: var(--color-green);
  opacity: 0.85;
}

/* ── 10. Contact Section ── */
.section-contact .section-inner {
  text-align: center;
}

/* ── Writing / Blog ── */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
  margin-bottom: 0.6rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: var(--color-gold);
  transition: opacity 0.2s ease;
}

.post-link:hover .post-title {
  opacity: 0.75;
}

.post-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.post-excerpt {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
  text-wrap: pretty;
}

.contact-cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn-connect {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 2.2rem;
  border: 1px solid var(--color-gold-dim);
  border-radius: 2px;
  color: var(--color-gold);
  background: none;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition:
    color       0.35s var(--ease-in-out),
    border-color 0.35s var(--ease-in-out),
    box-shadow  0.35s var(--ease-in-out);
}

.btn-connect::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-in-out);
  z-index: 0;
}

.btn-connect:hover::before {
  transform: scaleX(1);
}

.btn-connect:hover {
  color: var(--color-bg);
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.2);
}

.btn-icon,
.btn-connect span {
  position: relative;
  z-index: 1;
}

.btn-connect .btn-icon {
  flex-shrink: 0;
  transition: color 0.35s var(--ease-in-out);
}

/* ── 11. Footer ── */
.site-footer {
  padding: 2.5rem var(--h-pad) 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-muted-dim);
  letter-spacing: 0.08em;
}

.footer-ox {
  font-size: 1.1rem;
  color: var(--color-muted-dim);
  opacity: 0.5;
  cursor: default;
  user-select: none;
  transition: opacity 0.3s, color 0.3s;
}

.footer-ox:hover {
  opacity: 0.9;
  color: var(--color-gold);
}

/* ── 12. Background texture ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, 0.012) 39px,
      rgba(255, 255, 255, 0.012) 40px
    );
  pointer-events: none;
  z-index: 0;
}

main, footer, article {
  position: relative;
  z-index: 1;
}

/* ── Blog Post Page ── */
.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--h-pad) 6rem;
}

.post-header {
  padding: 5rem var(--h-pad) 3rem;
  max-width: 680px;
  margin: 0 auto;
}

.post-header-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.2rem;
}

.post-header-label a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-header-label a:hover { color: var(--color-gold); }

.post-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  text-wrap: balance;
}

.post-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.post-divider {
  border: none;
  border-top: 1px solid var(--color-gold-dim);
  margin: 2.5rem 0;
}

.post-body p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0 0 1.6rem;
  text-wrap: pretty;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 500;
  color: var(--color-gold);
  margin: 3rem 0 1rem;
  font-style: italic;
  text-wrap: balance;
}

.post-body .lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-decoration: none;
  margin-top: 3rem;
  transition: opacity 0.2s ease;
}

.back-link:hover { opacity: 0.7; }

/* ── 13. Responsive ── */
@media (min-width: 700px) {
  .hero-name {
    font-size: clamp(4rem, 7vw, 5.5rem);
  }

  .body-text {
    font-size: 1rem;
  }

  .hero-photo {
    width: 175px;
    height: 175px;
  }
}

@media (min-width: 1024px) {
  .section-content {
    padding-top: calc(var(--section-pad) * 1.1);
    padding-bottom: calc(var(--section-pad) * 1.1);
  }
}

/* ── 14. Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .grain {
    animation: none;
  }

  .hero-name {
    animation: none;
    background-image: none;
    background-color: transparent;
    -webkit-text-fill-color: initial;
    color: var(--color-text);
  }

  .scroll-line {
    animation: none;
    opacity: 0.4;
  }

  .timeline-entry,
  .timeline-marker,
  .timeline-content,
  .timeline-highlights li::before {
    transition: none;
  }

  .fade-in,
  .fade-in:not([data-delay]) {
    animation: none !important;
  }

  .timeline::before {
    animation: none !important;
    clip-path: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── 15. Focus styles ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── 16. Selection ── */
::selection {
  background: var(--color-gold);
  color: var(--color-bg);
}

/* ── 17. View Transitions ── */
@view-transition {
  navigation: auto;
}
