:root {
  --bg-night: #102b25;
  --bg-dusk: #174437;
  --bg-sun: #f0c969;
  --bg-leaf: #79bc6a;
  --bg-pool: #43d1bf;
  --bg-clay: #9f5237;
  --ink: #fff8e6;
  --muted: #d9d7bc;
  --panel: rgba(20, 47, 39, 0.84);
  --panel-strong: rgba(12, 35, 30, 0.91);
  --line: rgba(240, 201, 105, 0.24);
  --glow: 0 22px 60px rgba(7, 24, 21, 0.34);
  --max: 1160px;
  --title: "Palatino Linotype", "Book Antiqua", "URW Palladio L", serif;
  --body: "Trebuchet MS", "Gill Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  background:
    repeating-linear-gradient(135deg, rgba(240, 201, 105, 0.08) 0, rgba(240, 201, 105, 0.08) 1px, transparent 1px, transparent 22px),
    linear-gradient(180deg, var(--bg-dusk) 0%, var(--bg-night) 48%, #2b2a1e 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: 0 0 auto;
  height: 46vh;
  background:
    linear-gradient(180deg, rgba(240, 201, 105, 0.16), transparent 76%),
    repeating-linear-gradient(90deg, rgba(255, 248, 230, 0.05) 0, rgba(255, 248, 230, 0.05) 1px, transparent 1px, transparent 96px);
}

body::after {
  right: 0;
  bottom: 0;
  width: 48vw;
  height: 28vh;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(240, 201, 105, 0.16) 38% 45%, transparent 45%),
    linear-gradient(45deg, transparent 0 58%, rgba(67, 209, 191, 0.14) 58% 66%, transparent 66%);
}

a { color: inherit; }

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(10, 31, 27, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav .site-shell,
.footer .site-shell,
.section-head,
.contact-grid,
.split,
.author-panel {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.site-nav .site-shell {
  align-items: center;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(67, 209, 191, 0.24), rgba(240, 201, 105, 0.22)), rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(240, 201, 105, 0.25);
  box-shadow: var(--glow);
  font-family: var(--title);
  font-size: 1.25rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a {
  text-decoration: none;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: rgba(67, 209, 191, 0.24);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 70px 0 28px;
}

.hero-grid {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 30px;
  align-items: stretch;
}

.hero-copy,
.signal-panel,
.work-card,
.author-panel,
.link-panel,
.contact-grid {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--panel);
  box-shadow: var(--glow);
}

.hero-copy,
.signal-panel {
  border-radius: 18px;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  background:
    repeating-linear-gradient(90deg, rgba(240, 201, 105, 0.12) 0, rgba(240, 201, 105, 0.12) 2px, transparent 2px, transparent 72px),
    linear-gradient(145deg, rgba(21, 69, 55, 0.94), rgba(135, 69, 45, 0.86));
}

.eyebrow,
.small-caps,
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.eyebrow,
.small-caps {
  color: var(--bg-sun);
}

.kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--bg-pool);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--title);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 10.5ch;
  font-size: clamp(4.2rem, 8vw, 5.9rem);
}

h2 {
  font-size: clamp(2.25rem, 6vw, 4.1rem);
}

h3 {
  font-size: 1.55rem;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.14rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button {
  color: #112620;
  background: var(--bg-sun);
}

.ghost-button {
  color: var(--ink);
  border: 1px solid rgba(240, 201, 105, 0.32);
  background: rgba(255, 255, 255, 0.06);
}

.signal-panel {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(180deg, rgba(67, 209, 191, 0.10), transparent 58%),
    rgba(12, 35, 30, 0.88);
}

#glyph-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.signal-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(16, 43, 37, 0.86);
  border: 1px solid var(--line);
}

.signal-card p {
  margin: 0;
}

.signal-card p + p {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 62px 0;
}

.section-head {
  align-items: end;
  margin-bottom: 24px;
}

.section-head > p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
}

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

.work-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
}

.work-card.feature {
  grid-column: span 2;
  background:
    linear-gradient(145deg, rgba(159, 82, 55, 0.78), rgba(20, 47, 39, 0.9)),
    var(--panel);
}

.work-card p {
  margin: 0;
  color: var(--muted);
}

.work-card span {
  margin-top: auto;
  color: var(--bg-sun);
  font-size: 0.92rem;
}

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

.newsletter-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--panel);
  box-shadow: var(--glow);
}

.newsletter-card p {
  margin: 0;
  color: var(--muted);
}

.newsletter-card.action-card {
  background:
    linear-gradient(145deg, rgba(159, 82, 55, 0.70), rgba(12, 35, 30, 0.92)),
    var(--panel-strong);
}

.newsletter-card .button {
  margin-top: auto;
  align-self: flex-start;
}

.band {
  background: rgba(7, 24, 21, 0.26);
  border-top: 1px solid rgba(240, 201, 105, 0.10);
  border-bottom: 1px solid rgba(240, 201, 105, 0.10);
}

.split,
.author-panel,
.contact-grid {
  align-items: center;
}

.split > div:first-child,
.author-panel > div:first-child,
.contact-grid > div:first-child {
  flex: 1 1 54%;
}

.split p,
.author-panel p,
.contact-grid p {
  color: var(--muted);
}

.link-panel,
.author-panel,
.contact-grid {
  padding: 26px;
  border-radius: 8px;
}

.link-panel {
  flex: 0 1 360px;
  background: var(--panel-strong);
}

.author-panel .prose {
  flex: 1 1 54%;
}

.theme-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.theme-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink);
  border: 1px solid rgba(240, 201, 105, 0.26);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

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

.contact-links a {
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(67, 209, 191, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.footer {
  padding: 26px 0;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 860px) {
  .site-nav .site-shell,
  .section-head,
  .split,
  .author-panel,
  .contact-grid,
  .footer .site-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
  }

  .nav-links a {
    padding: 8px 10px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-grid,
  .works-grid,
  .newsletter-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
  }

  .signal-panel {
    min-height: 360px;
  }

  .work-card.feature {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(calc(100% - 22px), var(--max));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero-copy,
  .work-card,
  .author-panel,
  .contact-grid,
  .link-panel {
    padding: 18px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3.25rem, 16vw, 4.2rem);
  }

  .button,
  .ghost-button {
    width: 100%;
  }
}
