:root {
  --ink: #f4efe2;
  --muted: #c7bda8;
  --paper: #e8d7b6;
  --paper-deep: #c1a16a;
  --charcoal: #080908;
  --panel: #111410;
  --panel-soft: #181a15;
  --line: rgba(232, 215, 182, 0.24);
  --gold: #c99631;
  --green: #75c66b;
  --rust: #a85b38;
  --shadow: rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
svg {
  display: block;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 30;
  transform: translateY(-150%);
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--paper);
  color: #1d1710;
  padding: 0.6rem 0.85rem;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 5vw;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(8, 9, 8, 0.92), rgba(8, 9, 8, 0.18));
}

.brand-mark,
.nav-links {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-icon {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
}

.nav-links {
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  padding: 0.35rem 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 8, 0.95) 0%, rgba(8, 9, 8, 0.82) 32%, rgba(8, 9, 8, 0.2) 72%),
    linear-gradient(0deg, rgba(8, 9, 8, 0.82) 0%, rgba(8, 9, 8, 0.08) 42%);
}

.hero-content {
  width: min(100%, 52rem);
  padding: 9.5rem 5vw 3.8rem;
}

.floating-posts {
  position: absolute;
  right: 5vw;
  bottom: 2.4rem;
  z-index: 2;
  display: grid;
  width: min(24rem, 34vw);
  gap: 0.85rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  margin-bottom: 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.25rem;
  text-shadow: 0 0.25rem 1.2rem var(--shadow);
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.45rem;
}

h3 {
  font-size: 1.12rem;
}

.hero-kicker {
  max-width: 17ch;
  margin-bottom: 1rem;
  color: #f0c65d;
  font-family: "Brush Script MT", "Segoe Print", cursive;
  font-size: 2.05rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 39rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-weight: 800;
}

.button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  background: var(--gold);
  color: #171108;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #dfad4a;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(17, 20, 16, 0.74);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--gold);
}

.hero-proof {
  display: grid;
  width: min(100%, 42rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 2rem 0 0;
}

.hero-proof div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 20, 16, 0.66);
  padding: 0.8rem;
}

.hero-proof dt {
  color: var(--ink);
  font-weight: 800;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-card {
  border: 1px solid rgba(33, 24, 13, 0.18);
  border-radius: 8px;
  background: var(--paper);
  color: #21180d;
  padding: 1rem;
  box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, 0.28);
}

.floating-posts .post-card {
  background: rgba(232, 215, 182, 0.93);
  backdrop-filter: blur(6px);
}

.post-card-error {
  transform: rotate(-2deg);
}

.post-card-ai {
  margin-left: 2rem;
  transform: rotate(1.5deg);
}

.post-card p {
  margin-bottom: 0.65rem;
}

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

.post-meta {
  color: #7a5018;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.qa-suggestion {
  border-top: 1px solid rgba(33, 24, 13, 0.16);
  padding-top: 0.65rem;
  font-weight: 800;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: #21180d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.signal-strip p {
  margin: 0;
  border-right: 1px solid rgba(33, 24, 13, 0.18);
  padding: 1rem 5vw;
}

.signal-strip p:last-child {
  border-right: 0;
}

.section {
  padding: 4.8rem 5vw;
}

.section-dark {
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--panel);
  background-size: 42px 42px;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading.compact {
  margin-bottom: 1.3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card,
.post-card,
.case-file,
.paper-panel,
.terminal-panel,
.newsletter-preview,
.subscribe-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.18);
}

.feature-card {
  min-height: 14.5rem;
  background: rgba(8, 9, 8, 0.58);
  padding: 1.2rem;
}

.feature-card svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.feature-card h3 {
  margin-bottom: 0.65rem;
  font-family: "Courier New", monospace;
  text-transform: uppercase;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.post-stream-section {
  background:
    linear-gradient(135deg, rgba(168, 91, 56, 0.14), rgba(117, 198, 107, 0.08)),
    #0b0c0a;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.post-grid .post-card:nth-child(2),
.post-grid .post-card:nth-child(4) {
  margin-top: 1.4rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  gap: 1rem;
  align-items: stretch;
  background: #0d0f0c;
}

.paper-panel {
  background: var(--paper);
  color: #21180d;
  padding: 2rem;
}

.paper-panel .eyebrow {
  color: #704a18;
}

.paper-panel p {
  max-width: 45rem;
}

.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.55rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--gold);
  content: ">";
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.paper-panel .check-list li::before {
  color: #865a1d;
}

.terminal-panel {
  overflow: hidden;
  background: #070b08;
  color: var(--green);
  padding: 1.35rem;
  font-family: "Courier New", monospace;
}

.terminal-bar {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.terminal-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--gold);
}

.terminal-bar span:nth-child(2) {
  background: var(--rust);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

.terminal-title {
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-weight: 800;
}

.terminal-panel ol {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  padding-left: 1.5rem;
}

.case-status {
  margin-bottom: 0;
  color: var(--muted);
}

.case-status strong {
  color: var(--green);
  text-transform: uppercase;
}

.cases-section {
  background: var(--panel-soft);
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.filter-button {
  min-height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--gold);
  background: rgba(201, 150, 49, 0.12);
  color: var(--ink);
}

.case-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.case-file {
  min-height: 12rem;
  background: #0b0c0a;
  padding: 1.15rem;
}

.case-file[hidden] {
  display: none;
}

.case-number {
  margin-bottom: 0.65rem;
  color: var(--gold);
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 800;
}

.case-file h3 {
  margin-bottom: 0.6rem;
}

.case-file p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.subscribe-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: 1rem;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(201, 150, 49, 0.12), rgba(117, 198, 107, 0.08)),
    #0b0c0a;
}

.newsletter-preview,
.subscribe-form {
  padding: 2rem;
}

.newsletter-preview {
  background: var(--paper);
  color: #21180d;
}

.issue-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  border-bottom: 2px solid #21180d;
  font-family: "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 800;
}

.newsletter-preview .check-list li::before {
  color: #865a1d;
}

.subscribe-form {
  align-self: stretch;
  background: rgba(17, 20, 16, 0.85);
}

.subscribe-form label {
  display: block;
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.1;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.form-row input {
  min-width: 0;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #080908;
  color: var(--ink);
  padding: 0.72rem 0.85rem;
}

.form-row input:focus-visible {
  border-color: var(--gold);
  outline: 2px solid rgba(201, 150, 49, 0.2);
}

.form-hint,
.form-message {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-hint {
  margin: 0.9rem 0 0;
}

.form-message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
}

.form-message.is-success {
  color: var(--green);
}

.form-message.is-error {
  color: #f0a17d;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  background: #050605;
  color: var(--muted);
  padding: 1.4rem 5vw;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.designer-pill {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(232, 215, 182, 0.1);
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
}

.designer-pill img {
  width: 1.05rem;
  height: 1.05rem;
}

.designer-pill strong {
  color: var(--ink);
  font-weight: 700;
}

.designer-pill em {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.designer-pill:hover,
.designer-pill:focus-visible {
  border-color: var(--gold);
  background: rgba(201, 150, 49, 0.14);
}

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

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-posts {
    width: min(21rem, 32vw);
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding-top: 0.85rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

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

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(8, 9, 8, 0.9) 0%, rgba(8, 9, 8, 0.72) 32%, rgba(8, 9, 8, 0.98) 100%),
      linear-gradient(90deg, rgba(8, 9, 8, 0.92), rgba(8, 9, 8, 0.32));
  }

  .hero-content {
    padding-top: 7.5rem;
    padding-bottom: 1.2rem;
  }

  .floating-posts {
    position: relative;
    right: auto;
    bottom: auto;
    width: auto;
    padding: 0 5vw 2rem;
  }

  .post-card-error,
  .post-card-ai {
    margin-left: 0;
    transform: none;
  }

  h1 {
    font-size: 3.15rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-kicker {
    font-size: 1.6rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-proof,
  .signal-strip,
  .two-column,
  .subscribe-section {
    grid-template-columns: 1fr;
  }

  .signal-strip p {
    border-right: 0;
    border-bottom: 1px solid rgba(33, 24, 13, 0.18);
  }

  .feature-grid,
  .post-grid,
  .case-list {
    grid-template-columns: 1fr;
  }

  .post-grid .post-card:nth-child(2),
  .post-grid .post-card:nth-child(4) {
    margin-top: 0;
  }

  .feature-card,
  .case-file {
    min-height: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row .button {
    width: 100%;
  }

  .designer-pill {
    width: 100%;
    justify-content: center;
  }
}

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