:root {
  color-scheme: light;
  --ink: #121c24;
  --muted: #56636f;
  --line: #d8dde2;
  --paper: #f4f1ec;
  --accent: #0e6d73;
  --accent-dark: #084c53;
  --copper: #a36f4f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

main {
  display: block;
}

.site-header {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header.overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  color: var(--white);
}

.site-brand,
.site-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header.overlay .site-brand,
.site-header.overlay .site-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.site-brand:hover,
.site-nav a:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.hero {
  position: relative;
  min-height: min(82vh, 820px);
  display: flex;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(18, 28, 36, 0.95) 0%, rgba(18, 28, 36, 0.82) 42%, rgba(18, 28, 36, 0.34) 100%),
    url("assets/hero-bg.png") center / cover no-repeat;
  color: var(--white);
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.page-hero .section-grid {
  align-items: end;
  padding-top: 96px;
  padding-bottom: 72px;
}

.page-hero h1 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 3.4vw, 3.9rem);
}

.page-hero .prose {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero .text-button {
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(20px, 5vw, 54px);
  width: min(26vw, 260px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
  content: "";
}

.hero-inner,
.section-grid,
footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 700px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  text-decoration: none;
}

.button.primary {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.button.primary:hover {
  background: #ece7df;
}

.signature {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.signature span {
  position: relative;
  padding-left: 18px;
}

.signature span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.profile-links {
  display: flex;
  gap: 20px;
  margin-top: 22px;
}

.profile-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  text-decoration: none;
}

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

.content-band {
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  gap: 40px;
  padding: 56px 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
  line-height: 1.15;
}

.prose {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.notes-preview {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.notes-preview p {
  margin-bottom: 18px;
}

.featured-note {
  margin-bottom: 18px;
  border-top: 2px solid var(--copper);
  padding-top: 14px;
}

.featured-note h3 {
  margin-bottom: 0;
}

.featured-note a,
.note-list a {
  color: var(--ink);
  text-decoration: none;
}

.featured-note a:hover,
.note-list a:hover {
  text-decoration: underline;
}

.note-meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-button::after {
  margin-left: 8px;
  content: "->";
}

.text-button:hover {
  text-decoration: underline;
}

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

.focus-list article,
.principles article,
.note-streams article {
  border-top: 2px solid var(--copper);
  padding-top: 14px;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.focus-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.principles {
  display: grid;
  gap: 22px;
}

.principles p {
  margin-bottom: 0;
  color: var(--muted);
}

.note-streams p,
.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.empty-state {
  max-width: 680px;
  border-left: 2px solid var(--copper);
  padding-left: 20px;
  font-size: 1.05rem;
}

.note-list {
  max-width: 720px;
}

.note-list article {
  border-top: 2px solid var(--copper);
  padding-top: 16px;
}

.note-list article + article {
  margin-top: 28px;
}

.note-list h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.note-list p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.note-article {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.note-header {
  margin-bottom: 40px;
}

.note-header h1 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 4vw, 4rem);
}

.note-body {
  color: var(--muted);
  font-size: 1.08rem;
}

.note-body p {
  margin-bottom: 22px;
}

.note-body code {
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.note-body pre {
  overflow-x: auto;
  margin: 30px 0;
  border-left: 2px solid var(--copper);
  padding: 18px 0 18px 20px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

.note-footer {
  width: auto;
  margin-top: 40px;
  padding: 0;
}

.contact-copy a {
  color: var(--accent-dark);
  font-weight: 600;
}

.text-links {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.text-links a {
  color: var(--ink);
  text-decoration: none;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

footer a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .hero {
    min-height: 640px;
    background:
      linear-gradient(180deg, rgba(18, 28, 36, 0.76) 0%, rgba(18, 28, 36, 0.92) 100%),
      url("assets/hero-bg.png") center / cover no-repeat;
  }

  .hero-inner,
  .site-header,
  .section-grid,
  footer,
  .note-article {
    width: min(100% - 32px, 1120px);
  }

  .hero-inner {
    padding: 96px 0 44px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .lede {
    font-size: 1.08rem;
  }

  .signature {
    gap: 12px 16px;
    margin-top: 28px;
  }

  .section-grid,
  .focus-list,
  .note-streams {
    grid-template-columns: 1fr;
  }

  .section-grid {
    gap: 24px;
    padding: 40px 0;
  }

  .page-hero .section-grid {
    padding-top: 56px;
    padding-bottom: 48px;
  }
}
