:root {
  color-scheme: light;
  --bg: #f5efe3;
  --bg-soft: #fbf8f0;
  --surface: rgba(255, 253, 246, 0.84);
  --surface-strong: #fffdf7;
  --ink: #15181d;
  --ink-soft: #3d4149;
  --muted: #73706a;
  --line: rgba(20, 24, 29, 0.16);
  --line-strong: rgba(20, 24, 29, 0.28);
  --brass: #ad7d32;
  --brass-soft: #d6b87a;
  --navy: #101f33;
  --steel: #52606c;
  --shadow: 0 24px 60px rgba(25, 23, 18, 0.1);
  --heading-font: Georgia, "Times New Roman", serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111111;
  --bg-soft: #171715;
  --surface: rgba(28, 28, 25, 0.86);
  --surface-strong: #20201d;
  --ink: #f5efe3;
  --ink-soft: #d8d0bf;
  --muted: #a79f90;
  --line: rgba(245, 239, 227, 0.16);
  --line-strong: rgba(245, 239, 227, 0.3);
  --brass: #d1a456;
  --brass-soft: #8c6a34;
  --navy: #d7dfeb;
  --steel: #b9c2cc;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(120, 107, 82, 0.08) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(120, 107, 82, 0.06) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(circle at 18% 0%, rgba(214, 184, 122, 0.16), transparent 28rem),
    var(--bg);
  font-family: var(--body-font);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 38%, transparent 39%),
    linear-gradient(24deg, transparent 0%, rgba(173, 125, 50, 0.08) 48%, transparent 49%);
  opacity: 0.42;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brass) 72%, transparent);
  outline-offset: 4px;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}

h1,
h2 {
  font-family: var(--heading-font);
  line-height: 0.98;
}

h1 {
  max-width: 860px;
  font-size: 5.6rem;
}

h2 {
  font-size: 3.35rem;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.62rem;
}

li::marker {
  color: var(--brass);
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--surface-strong);
  background: var(--ink);
  border: 1px solid var(--brass);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 70px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--bg-soft);
  background: var(--ink);
  border: 2px solid var(--brass);
  border-radius: 2px;
  font-family: var(--heading-font);
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 28px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a {
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--brass);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 86px;
  min-height: 38px;
  padding: 8px 11px;
  color: var(--ink);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}

.theme-dot {
  width: 9px;
  height: 9px;
  background: var(--brass);
  border-radius: 999px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 16%, transparent);
}

.theme-label {
  font-size: 0.78rem;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.44fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
  padding: clamp(72px, 10vw, 116px) 0 38px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.section-number,
.timeline-index,
.project-rule {
  color: var(--brass);
}

.eyebrow {
  margin-bottom: 16px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-body {
  max-width: 780px;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.identity-line {
  max-width: 760px;
  margin-top: 22px;
  color: var(--navy);
  font-size: 0.96rem;
  font-weight: 800;
}

.hero-actions,
.contact-actions,
.writing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 2px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--bg-soft);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.button-secondary:hover {
  border-color: var(--brass);
}

.button-compact {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.hero-panel {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--brass);
}

.hero-panel::before,
.hero-panel::after {
  position: absolute;
  left: -7px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--ink);
  border: 2px solid var(--brass);
}

.hero-panel::before {
  top: 0;
}

.hero-panel::after {
  bottom: 0;
}

.hero-image {
  width: min(300px, 80vw);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 34%;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.deco-mark {
  width: min(280px, 80vw);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.archive-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.archive-note span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.archive-note p {
  color: var(--ink-soft);
  font-weight: 700;
}

.stats-band {
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 72%, transparent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.05);
}

.stat-card strong {
  display: block;
  margin-bottom: 22px;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 2.25rem;
  line-height: 1;
}

.stat-card h3 {
  margin-bottom: 8px;
}

.stat-card p,
.journey-narrative p,
.timeline-copy span,
.experience-card li,
.experience-description,
.recommendation-card blockquote p,
.recommendation-card details p,
.recommendation-card small,
.project-card p,
.principle-card p,
.personal-card p,
.writing-copy,
.contact-panel p,
.footer-layout p {
  color: var(--ink-soft);
}

.content-section {
  padding: clamp(68px, 9vw, 112px) 0;
}

.section-header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

.section-number {
  padding-top: 9px;
  font-family: var(--heading-font);
  font-size: 1.2rem;
  font-weight: 700;
}

.section-subtitle {
  max-width: 680px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.74fr);
  gap: clamp(34px, 6vw, 76px);
}

.journey-narrative {
  display: grid;
  gap: 18px;
  padding: 30px 0 0;
}

.journey-narrative p {
  font-size: 1.02rem;
}

.journey-timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.journey-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25px;
  width: 1px;
  content: "";
  background: var(--line-strong);
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
}

.timeline-index {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1px solid var(--brass);
  border-radius: 999px;
  font-family: var(--heading-font);
  font-weight: 700;
}

.timeline-copy {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.timeline-copy p {
  margin-bottom: 6px;
  color: var(--brass);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-copy span {
  display: block;
  margin-top: 8px;
}

.experience-section,
.recommendations-section,
.arsenal-section,
.personal-section {
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 58%, transparent);
}

.experience-grid {
  display: grid;
  gap: 18px;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 64px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.experience-topline p {
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 900;
}

.experience-topline time {
  display: block;
  margin-bottom: 12px;
  color: var(--brass);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.experience-topline span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.experience-topline small {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.experience-main h3 {
  margin-bottom: 12px;
}

.experience-description {
  margin-bottom: 18px;
  font-weight: 700;
}

.experience-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.recommendation-card,
.skill-group,
.principle-card,
.personal-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-card {
  padding: 26px;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 20px;
}

.experience-topline .badge-list {
  margin-bottom: 0;
}

.badge-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  color: var(--navy);
  background: color-mix(in srgb, var(--brass) 9%, var(--surface-strong));
  border: 1px solid color-mix(in srgb, var(--brass) 36%, var(--line));
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 900;
}

.project-rule {
  width: 54px;
  height: 3px;
  margin-bottom: 28px;
  background: var(--brass);
}

.project-card .badge-list {
  margin-top: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-description {
  margin-top: 12px;
  font-weight: 800;
}

.project-card p + p {
  margin-top: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--surface-strong) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  padding: 8px 10px;
  color: var(--navy);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: color-mix(in srgb, var(--surface-strong) 82%, transparent);
  font-size: 0.82rem;
  font-weight: 900;
}

.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.recommendation-card {
  position: relative;
  padding: 30px;
}

.recommendation-card::before {
  position: absolute;
  top: 18px;
  right: 24px;
  color: color-mix(in srgb, var(--brass) 38%, transparent);
  content: "“";
  font-family: var(--heading-font);
  font-size: 5rem;
  line-height: 1;
}

.recommendation-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 18px;
  border-left: 3px solid var(--brass);
}

.recommendation-card blockquote p {
  font-family: var(--heading-font);
  font-size: 1.35rem;
  line-height: 1.35;
}

.recommendation-person {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.recommendation-person strong {
  color: var(--ink);
}

.recommendation-person span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.recommendation-card details {
  margin-top: 22px;
}

.recommendation-card summary {
  width: fit-content;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.recommendation-card details p {
  margin-top: 14px;
}

.recommendation-card small {
  display: block;
  margin-top: 12px;
  font-size: 0.78rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.skill-group {
  padding: 24px;
}

.skill-group:first-child {
  grid-column: 1 / -1;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.personal-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.52fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.principle-card,
.personal-card {
  min-height: 190px;
  padding: 24px;
}

.principle-card h3,
.personal-card h3 {
  margin-bottom: 14px;
}

.personal-card span {
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 28px;
  background: var(--brass);
}

.personal-media-rail {
  display: grid;
  gap: 18px;
}

.personal-media {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.personal-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.personal-media figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.writing-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: clamp(34px, 6vw, 76px);
}

.writing-copy {
  max-width: 680px;
  font-size: 1.05rem;
}

.writing-actions {
  margin-top: 28px;
}

.article-list {
  display: grid;
  gap: 12px;
}

.article-link {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-link:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.article-link span {
  color: var(--brass);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.article-link strong {
  color: var(--ink);
  line-height: 1.35;
}

.contact-section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.contact-panel {
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brass);
  border-radius: 6px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--brass) 8%, transparent) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  max-width: 760px;
}

.contact-panel p {
  max-width: 680px;
  margin-top: 22px;
  font-size: 1.08rem;
}

.contact-actions {
  margin-top: 34px;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.footer-layout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--heading-font);
  font-size: 1.28rem;
}

.footer-layout nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 24px;
  color: var(--ink-soft);
  font-weight: 800;
}

.footer-layout nav a:hover {
  color: var(--brass);
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: fade-up 520ms ease both;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .hero,
  .journey-layout,
  .personal-layout,
  .writing-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .recommendation-grid,
  .principle-grid,
  .personal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-panel {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .section-shell {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    gap: 14px;
    padding: 14px;
  }

  .nav-links {
    gap: 8px 14px;
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .hero-body {
    font-size: 1.04rem;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .experience-card,
  .recommendation-grid,
  .project-grid,
  .skill-grid,
  .principle-grid,
  .personal-grid,
  .footer-layout {
    grid-template-columns: 1fr;
  }

  .skill-group:first-child {
    grid-column: auto;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-number {
    padding-top: 0;
  }

  .experience-card,
  .project-card,
  .skill-group,
  .principle-card,
  .personal-card,
  .stat-card {
    padding: 22px;
  }

  .footer-layout nav {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2rem;
  }

  .theme-toggle {
    min-width: 78px;
  }

  .hero-panel {
    padding-left: 20px;
  }

  .hero-image,
  .deco-mark {
    width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
