:root {
  --earthy-green: #606946;
  --light-cream: #faf5ef;
  --cream: #f5e7da;
  --brown: #7e543e;
  --dusty-purple: #975f8a;
  --dark-purple: #4c3d4c;
  --pumpkin: #dfa041;
  --black: #0d1114;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(13, 17, 20, 0.16);
  --radius: 28px;
  --radius-sm: 18px;
  --shell: 1160px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--black);
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(223, 160, 65, 0.22),
      transparent 30rem
    ),
    radial-gradient(
      circle at 92% 16%,
      rgba(151, 95, 138, 0.2),
      transparent 28rem
    ),
    var(--light-cream);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 50px 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  background: var(--pumpkin);
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  left: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  min-height: var(--header-height);
  backdrop-filter: blur(18px);
  background: rgba(250, 245, 239, 0.78);
  border-bottom: 1px solid rgba(13, 17, 20, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: var(--dark-purple);
  color: var(--cream);
  box-shadow: 6px 6px 0 var(--pumpkin);
}

.brand-text {
  font-family: Fraunces, serif;
  font-size: 1.35rem;
}

.brand-text span {
  color: var(--dusty-purple);
}

.homepage-logo {
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.homepage-logo img {
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 700;
}

.nav-links a:not(.nav-cta) {
  opacity: 0.78;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--dusty-purple);
}

.nav-cta {
  background: var(--black);
  color: var(--light-cream);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 5px 5px 0 var(--pumpkin);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--black);
  margin: 5px 0;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem) 0 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 14% auto auto -80px;
  width: 190px;
  height: 190px;
  background: var(--earthy-green);
  opacity: 0.16;
  border-radius: 45% 55% 62% 38%;
  transform: rotate(-18deg);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy,
.hero-panel,
.thought-card,
.brewing-card,
.contact-card {
  width: 95%;
  max-width: 95%;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
}

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

h1,
h2 {
  font-family: Fraunces, serif;
}

h1 {
  font-size: clamp(3rem, 5vw, 6.6rem);
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.5rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.4rem;
}

.hero-text {
  max-width: 670px;
  font-size: 1.2rem;
  margin: 24px 0 0;
  color: rgba(13, 17, 20, 0.78);
}

.hero-actions,
.kit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 2px solid var(--black);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-primary {
  background: var(--pumpkin);
  box-shadow: 6px 6px 0 var(--black);
}

.btn-secondary {
  background: var(--dark-purple);
  color: var(--light-cream);
  box-shadow: 6px 6px 0 var(--brown);
}

.btn-ghost {
  background: transparent;
}

.hero-panel {
  background: var(--black);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 2px solid rgba(250, 245, 239, 0.18);
  transform: rotate(1deg);
}

.window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(250, 245, 239, 0.12);
  font-family: 'JetBrains Mono', monospace;
  color: rgba(250, 245, 239, 0.72);
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dusty-purple);
}

.window-bar span:nth-child(2) {
  background: var(--pumpkin);
}

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

.window-bar strong {
  margin-left: auto;
  font-size: 0.82rem;
}

.terminal {
  padding: 26px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.98rem;
}

.terminal p {
  margin: 0 0 12px;
}

.prompt {
  color: var(--pumpkin);
  font-weight: 700;
  margin-right: 8px;
}

.prompt.success {
  color: #b9c693;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(250, 245, 239, 0.13);
}

.status-grid div {
  background: var(--dark-purple);
  padding: 18px;
}

.status-grid span {
  display: block;
  opacity: 0.75;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--light-cream);
}

.thought-card {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  max-width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--cream);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 8px 8px 0 var(--dusty-purple);
}

.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--brown);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.thought-card p {
  margin: 4px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.icon-button {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: var(--pumpkin);
  font-size: 1.35rem;
  cursor: pointer;
}

.intro-strip {
  padding: 24px 0;
}

.strip-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
}

.strip-grid p {
  margin: 0;
  background: var(--dark-purple);
  color: var(--light-cream);
  border-radius: 18px;
  padding: 18px 20px;
}

.strip-grid p:first-child {
  background: var(--earthy-green);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:last-child {
  color: rgba(13, 17, 20, 0.72);
  font-size: 1.08rem;
}

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

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.note-card,
.kit-card,
.contact-card {
  background: rgba(255, 255, 255, 0.52);
  border: 2px solid rgba(13, 17, 20, 0.12);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 50px rgba(13, 17, 20, 0.08);
}

.card {
  min-height: 245px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: var(--cream);
  border: 2px solid var(--black);
  box-shadow: 5px 5px 0 var(--pumpkin);
  margin-bottom: 22px;
  font-size: 1.7rem;
}

.card p,
.note-card p {
  color: rgba(13, 17, 20, 0.72);
}

.case-section {
  background: var(--cream);
  border-block: 1px solid rgba(13, 17, 20, 0.08);
}

.case-list {
  display: grid;
  gap: 22px;
}

.case-file {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  background: var(--light-cream);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 8px 8px 0 var(--earthy-green);
}

.case-number {
  font-family: 'JetBrains Mono', monospace;
  color: var(--light-cream);
  background: var(--black);
  align-self: start;
  border-radius: 999px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 800;
}

.case-file p {
  margin: 10px 0 14px;
  color: rgba(13, 17, 20, 0.75);
}

.case-file ul {
  margin: 0;
  padding-left: 20px;
}

.kit-section {
  background: var(--dark-purple);
  color: var(--light-cream);
}

.kit-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 38px;
  align-items: center;
}

.kit-copy .eyebrow {
  color: var(--pumpkin);
}

.kit-copy p:not(.eyebrow) {
  color: rgba(250, 245, 239, 0.78);
  font-size: 1.1rem;
}

.kit-card {
  position: relative;
  background: var(--light-cream);
  color: var(--black);
  border-color: var(--black);
  box-shadow: 10px 10px 0 var(--pumpkin);
  transform: rotate(-1deg);
}

.stamp {
  position: absolute;
  top: -18px;
  right: 22px;
  background: var(--dusty-purple);
  color: var(--light-cream);
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.check-list li {
  padding: 11px 0 11px 34px;
  border-bottom: 1px solid rgba(13, 17, 20, 0.1);
  position: relative;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--earthy-green);
  font-weight: 900;
}

.note-tag {
  display: inline-flex;
  margin: 0 0 12px;
  background: var(--cream);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brown) !important;
}

.graveyard-section {
  padding-top: 40px;
}

.graveyard {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  gap: 28px;
  align-items: center;
  background: var(--black);
  color: var(--light-cream);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.graveyard .eyebrow {
  color: var(--pumpkin);
}

.graveyard p:not(.eyebrow) {
  color: rgba(250, 245, 239, 0.74);
}

.graveyard-item {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(250, 245, 239, 0.08);
  border: 1px dashed rgba(250, 245, 239, 0.38);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.brewing-section {
  padding-top: 2rem;
  margin-top: 3rem;
}

.brewing-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(129, 92, 74, 0.35);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top left,
      rgba(112, 76, 138, 0.42),
      transparent 36%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(142, 93, 63, 0.38),
      transparent 38%
    ),
    linear-gradient(135deg, #2b2135 0%, #3a2a2c 48%, #5a3b2e 100%);
  box-shadow: 0 28px 80px rgba(24, 16, 20, 0.35);
}

.brewing-card::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(244, 218, 190, 0.14);
  border-radius: 22px;
  pointer-events: none;
}

.brewing-copy,
.brewing-list {
  position: relative;
  z-index: 1;
}

.brewing-copy h2 {
  margin: 0.35rem 0 1rem;
  color: #f7e7d4;
}

.brewing-copy p {
  max-width: 44rem;
  color: #e8cdb5;
}

.brewing-list {
  display: grid;
  gap: 1rem;
}

.brew-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(244, 218, 190, 0.16);
  border-radius: 18px;
  background: rgba(31, 22, 32, 0.46);
  backdrop-filter: blur(10px);
}

.brew-item span {
  grid-row: span 2;
  font-size: 1.45rem;
}

.brew-item strong {
  color: #fff2e1;
}

.brew-item p {
  margin: 0;
  color: #dcc0a8;
  font-size: 0.95rem;
}

.contact-section {
  padding-top: 40px;
}

.contact-card {
  text-align: center;
  max-width: 840px;
  margin-inline: auto;
  background: var(--cream);
  border-color: var(--black);
  box-shadow: 9px 9px 0 var(--brown);
}

.contact-card .btn {
  margin-top: 14px;
}

.site-footer {
  padding: 30px 0;
  background: var(--black);
  color: rgba(250, 245, 239, 0.78);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--pumpkin);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: var(--header-height) 20px auto 20px;
    display: none;
    text-align: center;
    flex-direction: column;
    align-items: stretch;
    background: var(--light-cream);
    border: 2px solid var(--black);
    border-radius: 22px;
    padding: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 2.5rem 0 2rem;
  }

  .hero-grid,
  .kit-grid,
  .graveyard,
  .strip-grid,
  .brewing-card {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .kit-card {
    transform: none;
  }

  .thought-card {
    max-width: 100%;
  }

  .cards.three {
    grid-template-columns: 1fr;
  }

  .case-file {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 9vw, 4.6rem);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, var(--shell));
  }

  .section {
    padding: 25px 0;
  }

  .site-header {
    min-height: var(--header-height);
  }

  .nav {
    min-height: var(--header-height);
  }

  .homepage-logo img {
    max-height: 88px;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

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

  .hero-text {
    font-size: 1rem;
    margin-top: 18px;
  }

  .terminal {
    padding: 20px 18px;
    font-size: 0.86rem;
  }

  .window-bar {
    padding: 14px 16px;
  }

  .window-bar strong {
    font-size: 0.72rem;
  }

  .hero-actions,
  .kit-actions,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .thought-card {
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
  }

  .icon-button {
    width: 42px;
    height: 42px;
  }

  .brewing-section {
    margin-top: 0;
    padding: 26px;
  }

  .brewing-card,
  .contact-card {
    border-radius: 20px;
  }

  .hero-panel {
    display: none;
  }

  .top-hero-section {
    padding-bottom: 26px;
  }

  .brew-item {
    grid-template-columns: 1fr;
  }

  .brew-item span {
    grid-row: auto;
  }

  .contact-card {
    padding: 2rem 1.25rem;
  }

  .footer-grid {
    align-items: flex-start;
  }
}
