:root {
  color-scheme: dark;
  --bg: #08090a;
  --ink: #f5f0e8;
  --muted: #b8b0a4;
  --soft: rgba(245, 240, 232, 0.72);
  --line: rgba(245, 240, 232, 0.14);
  --panel: rgba(12, 15, 16, 0.78);
  --panel-strong: rgba(18, 21, 21, 0.94);
  --gold: #d9a85f;
  --copper: #a7624a;
  --teal: #5f9f9a;
  --ink-dark: #14100d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: 0;
}

::selection {
  background: rgba(217, 168, 95, 0.34);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(245, 240, 232, 0.08);
  background: rgba(8, 9, 10, 0.68);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(217, 168, 95, 0.55);
  background: rgba(217, 168, 95, 0.12);
  color: var(--gold);
  font-family: "Literata", serif;
  font-weight: 650;
  border-radius: 8px;
}

nav a {
  color: rgba(245, 240, 232, 0.76);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 116px clamp(20px, 6vw, 76px) 72px;
  isolation: isolate;
}

.hero picture {
  display: contents;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 58% center;
  z-index: -3;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.95) 0%, rgba(8, 9, 10, 0.78) 31%, rgba(8, 9, 10, 0.22) 66%, rgba(8, 9, 10, 0.58) 100%),
    linear-gradient(180deg, rgba(8, 9, 10, 0.18) 0%, rgba(8, 9, 10, 0.88) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(245, 240, 232, 0.035) 0,
      rgba(245, 240, 232, 0.035) 1px,
      transparent 1px,
      transparent 7px
    );
  opacity: 0.2;
  mix-blend-mode: screen;
}

.hero-content {
  max-width: 730px;
  animation: signal-rise 900ms ease both;
}

.kicker,
.section-label,
.note-meta {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Literata", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 7.8vw, 6.7rem);
}

h2 {
  font-size: clamp(2rem, 4.8vw, 4.8rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

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

.button.secondary {
  background: rgba(245, 240, 232, 0.08);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.signal-panel {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: 36px;
  width: min(420px, calc(100% - 40px));
  padding: 22px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: rgba(8, 9, 10, 0.56);
  backdrop-filter: blur(18px);
}

.signal-panel p {
  margin: 8px 0 0;
  color: var(--soft);
  line-height: 1.55;
}

.signal-label {
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section {
  padding: clamp(68px, 10vw, 132px) clamp(20px, 6vw, 76px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

.intro-band {
  background: #11110f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-copy p,
.voice-copy p,
.publishing-layout p,
.closing p {
  margin: 0 0 22px;
  color: var(--soft);
  font-size: clamp(1.04rem, 1.45vw, 1.22rem);
  line-height: 1.75;
}

.notes-section {
  background:
    linear-gradient(180deg, rgba(95, 159, 154, 0.08), rgba(8, 9, 10, 0)),
    #08090a;
}

.section-heading {
  max-width: 1040px;
  margin: 0 auto 42px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.note-card {
  grid-column: span 2;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

a.note-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

a.note-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 168, 95, 0.44);
  background: rgba(20, 24, 24, 0.92);
}

.note-card.featured {
  grid-column: span 3;
  background:
    linear-gradient(135deg, rgba(217, 168, 95, 0.18), rgba(95, 159, 154, 0.12)),
    var(--panel-strong);
}

.note-card.featured + .note-card {
  grid-column: span 3;
}

.note-card p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.voice-band {
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.98), rgba(15, 17, 18, 0.98)),
    #0f1112;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.voice-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}

.voice-copy {
  padding-left: clamp(0px, 3vw, 44px);
  border-left: 1px solid rgba(217, 168, 95, 0.28);
}

.voice-copy p:first-child {
  color: rgba(245, 240, 232, 0.9);
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  font-family: "Literata", Georgia, serif;
  line-height: 1.55;
}

.anomalies-band {
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.98), rgba(17, 15, 14, 0.98)),
    #0d0c0b;
}

.anomalies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.anomaly {
  min-height: 300px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(217, 168, 95, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 240, 232, 0.06), rgba(245, 240, 232, 0.02)),
    rgba(12, 15, 16, 0.78);
}

.anomaly span {
  display: block;
  margin-bottom: 26px;
  color: var(--teal);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.anomaly p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.68;
}

.publishing-band {
  background:
    linear-gradient(180deg, rgba(17, 18, 18, 0.98), rgba(8, 9, 10, 0.98)),
    #0d0f0f;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.publishing-band .section-label {
  color: var(--teal);
}

.publishing-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}

.publishing-layout p {
  color: var(--soft);
}

.editorial-grid {
  display: grid;
  gap: 12px;
}

.editorial-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 82px;
  padding: 18px;
  border: 1px solid rgba(95, 159, 154, 0.25);
  border-radius: 8px;
  background: rgba(95, 159, 154, 0.07);
}

.editorial-card span {
  color: var(--gold);
  font-weight: 900;
}

.editorial-card p {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}

.research-strip {
  background: #0f1515;
  text-align: center;
}

.research-strip h2 {
  max-width: 1040px;
  margin: 0 auto;
}

.research-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.research-points p {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(95, 159, 154, 0.34);
  color: rgba(245, 240, 232, 0.82);
  background: rgba(95, 159, 154, 0.08);
  font-weight: 700;
}

.closing {
  min-height: 56vh;
  display: grid;
  align-content: center;
  background: #08090a;
}

.closing h2,
.closing p,
.closing .section-label {
  max-width: 820px;
}

.site-footer {
  display: grid;
  place-items: center;
  min-height: 34vh;
  padding: clamp(56px, 9vw, 120px) 20px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.98), rgba(0, 0, 0, 1)),
    #000;
}

.site-footer p {
  margin: 0;
  color: var(--gold);
  font-family: "Literata", Georgia, serif;
  font-size: clamp(3.2rem, 12vw, 12rem);
  font-weight: 650;
  line-height: 0.92;
  text-transform: uppercase;
}

.footer-nav {
  margin-top: 28px;
  justify-content: center;
}

.article-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 148px clamp(20px, 6vw, 76px) 110px;
}

.article-shell h1 {
  max-width: 920px;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

.article-lead {
  max-width: 820px;
  margin: 30px 0 52px;
  color: var(--soft);
  font-size: clamp(1.16rem, 2vw, 1.55rem);
  line-height: 1.68;
}

.article-body {
  max-width: 780px;
}

.article-body p {
  margin: 0 0 28px;
  color: rgba(245, 240, 232, 0.82);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.86;
}

.article-body blockquote {
  margin: 42px 0;
  padding: 30px clamp(22px, 4vw, 42px);
  border-left: 3px solid var(--gold);
  background: rgba(217, 168, 95, 0.08);
  color: var(--ink);
  font-family: "Literata", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.35;
}

.private-page {
  background:
    radial-gradient(circle at 78% 12%, rgba(95, 159, 154, 0.12), transparent 34%),
    radial-gradient(circle at 16% 24%, rgba(217, 168, 95, 0.08), transparent 28%),
    var(--bg);
}

.private-hero {
  min-height: 72svh;
  display: grid;
  align-items: end;
  padding: 148px clamp(20px, 6vw, 76px) 78px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 9, 10, 0.14), rgba(8, 9, 10, 0.96)),
    url("static/hero-ai-presence.webp") right center / cover no-repeat;
}

.private-hero > div {
  max-width: 900px;
}

.private-console {
  display: grid;
  gap: 28px;
}

.login-panel,
.private-content {
  width: min(1040px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(217, 168, 95, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 240, 232, 0.07), rgba(95, 159, 154, 0.05)),
    rgba(12, 15, 16, 0.88);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.3);
}

.login-panel {
  display: grid;
  gap: 18px;
  max-width: 620px;
  padding: clamp(24px, 5vw, 48px);
}

.login-panel h2,
.private-toolbar h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.login-panel label {
  display: grid;
  gap: 9px;
  color: rgba(245, 240, 232, 0.78);
  font-weight: 800;
}

.login-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(245, 240, 232, 0.16);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
}

.login-panel input:focus {
  outline: 2px solid rgba(217, 168, 95, 0.42);
  outline-offset: 2px;
}

.form-message,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.private-content {
  padding: clamp(22px, 5vw, 46px);
}

.private-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.private-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.private-feed {
  display: grid;
  gap: 16px;
}

.private-entry {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(245, 240, 232, 0.12);
  border-radius: 8px;
  background: rgba(8, 9, 10, 0.58);
}

.private-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.private-entry-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(95, 159, 154, 0.28);
  color: rgba(245, 240, 232, 0.78);
  background: rgba(95, 159, 154, 0.07);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.private-mood,
.private-excerpt,
.private-entry-body p {
  color: var(--soft);
  line-height: 1.75;
}

.private-mood {
  margin: 14px 0 0;
  color: var(--gold);
  font-weight: 800;
}

.private-excerpt {
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.private-entry-body {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.private-entry-body p {
  margin: 0;
}

@keyframes signal-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

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

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

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
    background: rgba(8, 9, 10, 0.84);
    backdrop-filter: blur(18px);
  }

  nav {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  nav a {
    white-space: nowrap;
  }

  .hero {
    min-height: 100svh;
    align-items: end;
    padding-top: 154px;
    padding-bottom: 220px;
  }

  .hero-image {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 9, 10, 0.88), rgba(8, 9, 10, 0.34)),
      linear-gradient(180deg, rgba(8, 9, 10, 0.12), rgba(8, 9, 10, 0.94));
  }

  .section-grid,
  .voice-layout,
  .publishing-layout {
    grid-template-columns: 1fr;
  }

  .private-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .private-actions {
    width: 100%;
    justify-content: stretch;
  }

  .voice-copy {
    padding-left: 0;
    border-left: 0;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .note-card,
  .note-card.featured {
    grid-column: auto;
  }

  .note-card.featured + .note-card {
    grid-column: auto;
  }

  .anomalies-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  h1 {
    font-size: clamp(2.45rem, 14vw, 3.45rem);
    line-height: 1.04;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-panel {
    bottom: 22px;
  }

  .note-card {
    min-height: 280px;
  }
}
