/* === Lepidoptera Cypria — type, color, layout === */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bone: oklch(0.96 0.01 80);
  --parchment: oklch(0.92 0.02 75);
  --sand: oklch(0.85 0.03 75);
  --stone: oklch(0.72 0.04 90);
  --olive: oklch(0.42 0.04 110);
  --olive-deep: oklch(0.28 0.04 110);
  --ink: oklch(0.18 0.02 80);
  --terracotta: oklch(0.62 0.13 40);
  --terracotta-deep: oklch(0.48 0.12 40);
  --sage: oklch(0.72 0.04 130);
  --crimson: oklch(0.48 0.16 25);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
}

/* === App scaffolding === */
.app {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  transition: background 1.2s ease;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(40, 28, 10, 0.28) 100%);
}

/* === Top nav === */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  background: linear-gradient(180deg, rgba(245, 232, 200, 0.85) 0%, rgba(245, 232, 200, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.brand-mark {
  font-size: 22px;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}

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

.brand-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--olive-deep);
  letter-spacing: 0.01em;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--olive);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.navlink {
  background: none;
  border: none;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--olive);
  cursor: pointer;
  border-radius: 999px;
  transition: all .25s;
}

.navlink:hover {
  color: var(--olive-deep);
  background: rgba(60, 50, 20, 0.08);
}

.navlink.active {
  color: var(--bone);
  background: var(--olive-deep);
}

.audio-toggle {
  border: 1px solid rgba(80, 60, 30, 0.2);
  margin-left: 8px;
  min-width: 56px;
  text-align: center;
}

/* === HOME === */
@keyframes view-in {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.view {
  position: relative;
  min-height: 100vh;
  z-index: 3;
  animation: view-in 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) both;
}

.home {
  padding-top: 0;
}

.hero {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding: 24vh 36px 0;
  text-align: center;
  pointer-events: none;
}

.hero>* {
  pointer-events: auto;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--olive);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  margin: 0;
  color: var(--olive-deep);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(245, 232, 200, 0.55);
}

.hero-line {
  display: block;
}

.hero-line.italic {
  font-style: italic;
  color: var(--terracotta-deep);
}

.hero-rule {
  width: 80px;
  height: 1px;
  background: var(--olive);
  margin: 32px auto 24px;
}

.hero-lede {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: oklch(0.15 0.04 110);
  font-style: italic;
  font-weight: 400;
  text-wrap: pretty;
  max-width: 540px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 2px rgba(245, 232, 200, 0.65);
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .3s;
  border: 1px solid var(--olive-deep);
}

.cta.primary {
  background: var(--olive-deep);
  color: var(--bone);
}

.cta.primary:hover {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
}

.cta.ghost {
  background: transparent;
  color: var(--olive-deep);
}

.cta.ghost:hover {
  background: rgba(40, 32, 12, 0.08);
}

.home-foot {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--olive);
  z-index: 6;
}

.home-foot .dot {
  opacity: 0.5;
}

/* === Swarm flight === */
@keyframes flyPath {
  0% {
    offset-distance: 0%;
  }

  100% {
    offset-distance: 100%;
  }
}

.flyer {
  transform-style: preserve-3d;
}

/* === Butterfly anim === */
@keyframes flapLeft {

  0%,
  100% {
    transform: translateY(-50%) rotateY(60deg);
  }

  50% {
    transform: translateY(-50%) rotateY(-15deg);
  }
}

@keyframes flapRight {

  0%,
  100% {
    transform: translateY(-50%) rotateY(-60deg);
  }

  50% {
    transform: translateY(-50%) rotateY(15deg);
  }
}

.bf-wing-left.bf-flap {
  animation: flapLeft 280ms ease-in-out infinite;
}

.bf-wing-right.bf-flap {
  animation: flapRight 280ms ease-in-out infinite;
}

.bf-wing-left.bf-rest {
  transform: translateY(-50%) rotateY(25deg);
}

.bf-wing-right.bf-rest {
  transform: translateY(-50%) rotateY(-25deg);
}

.bf-wing-left.bf-flat {
  transform: translateY(-50%) rotateY(0deg);
}

.bf-wing-right.bf-flat {
  transform: translateY(-50%) rotateY(0deg);
}

/* === INDEX === */
.index {
  padding: 120px 36px 80px;
  max-width: 1320px;
  margin: 0 auto;
}

.page-head {
  text-align: center;
  margin-bottom: 56px;
}

.ph-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--terracotta);
}

.ph-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 80px;
  line-height: 1;
  margin: 12px 0 16px;
  color: var(--olive-deep);
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(245, 232, 200, 0.5);
}

.ph-lede {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--olive-deep);
  max-width: 480px;
  margin: 0 auto 28px;
}

.ph-filters {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pill {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  border: 1px solid rgba(60, 50, 20, 0.25);
  color: var(--olive);
  transition: all .25s;
}

.pill:hover {
  border-color: var(--olive-deep);
  color: var(--olive-deep);
}

.pill.on {
  background: var(--olive-deep);
  color: var(--bone);
  border-color: var(--olive-deep);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 36px 28px;
}

.card {
  background: linear-gradient(180deg, rgba(252, 246, 228, 0.65) 0%, rgba(238, 222, 180, 0.45) 100%);
  border: 1px solid rgba(80, 60, 30, 0.18);
  padding: 24px 22px 22px;
  cursor: pointer;
  position: relative;
  transition: all .35s ease;
  display: flex;
  flex-direction: column;
}

.card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 0.5px solid rgba(80, 60, 30, 0.12);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(252, 246, 228, 0.9) 0%, rgba(238, 222, 180, 0.7) 100%);
  box-shadow: 0 14px 40px rgba(60, 40, 15, 0.18);
}

.card-plate {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.plate-mount {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.plate-no {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--terracotta);
}

.card-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
}

.card-sci {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--olive-deep);
  margin: 4px 0 12px;
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(80, 60, 30, 0.08);
  color: var(--olive);
}

.tag-endemic {
  background: var(--terracotta);
  color: var(--bone);
}

.tag-muted {
  opacity: 0.7;
}

/* === DETAIL === */
.detail {
  padding: 100px 36px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.back {
  font-family: var(--mono);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  background: none;
  border: none;
  color: var(--olive);
  cursor: pointer;
  padding: 10px 0;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back::first-letter {
  font-size: 18px;
}

.back:hover {
  color: var(--terracotta-deep);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}

.detail-stage {
  position: relative;
  aspect-ratio: 1;
  min-height: 460px;
  perspective: 1400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-butterfly {
  position: relative;
  z-index: 5;
  animation: hero-rotate 8s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes hero-rotate {

  0%,
  100% {
    transform: rotateY(-12deg) rotateX(8deg);
  }

  50% {
    transform: rotateY(12deg) rotateX(-4deg);
  }
}

@keyframes bg-drift {
  0% {
    transform: translate(0, 0) rotate(-8deg);
  }

  50% {
    transform: translate(30px, -20px) rotate(6deg);
  }

  100% {
    transform: translate(0, 0) rotate(-8deg);
  }
}

.bg-flyer {
  position: absolute;
  opacity: 0.45;
  animation: bg-drift 16s ease-in-out infinite;
  z-index: 1;
}

.detail-meta {
  padding-right: 12px;
}

.dm-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.dm-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 76px;
  line-height: 0.95;
  color: var(--olive-deep);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(245, 232, 200, 0.5);
}

.dm-sci {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--olive);
  margin-bottom: 20px;
}

.endemic-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  padding: 6px 12px;
  background: var(--terracotta);
  color: var(--bone);
  border-radius: 999px;
  margin-bottom: 20px;
}

.dm-blurb {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink);
  font-style: italic;
  text-wrap: pretty;
}

.datasheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(80, 60, 30, 0.2);
  border-bottom: 1px solid rgba(80, 60, 30, 0.2);
  margin-bottom: 56px;
}

.ds-row {
  padding: 18px 0;
  border-bottom: 1px solid rgba(80, 60, 30, 0.12);
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: baseline;
  gap: 18px;
  padding-right: 24px;
}

.ds-row:nth-child(odd) {
  padding-left: 0;
}

.ds-row:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid rgba(80, 60, 30, 0.12);
}

.ds-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.ds-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--olive);
}

.ds-value {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--olive-deep);
  line-height: 1.4;
}

.palette-strip {
  margin-bottom: 56px;
}

.ps-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--olive);
  margin-bottom: 14px;
}

.ps-swatches {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swatch-chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(80, 60, 30, 0.2);
}

.swatch-name {
  font-family: var(--serif);
  font-size: 14px;
  font-style: italic;
  color: var(--olive-deep);
  text-transform: capitalize;
}

.swatch-hex {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--olive);
  letter-spacing: 0.1em;
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.dnav {
  background: transparent;
  border: 1px solid rgba(80, 60, 30, 0.25);
  padding: 22px 24px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all .25s;
}

.dnav.next {
  text-align: right;
  align-items: flex-end;
}

.dnav:hover {
  background: rgba(80, 60, 30, 0.06);
  border-color: var(--olive-deep);
}

.dn-label {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--olive);
}

.dn-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--olive-deep);
}

.more-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 34px;
  color: var(--olive-deep);
  margin: 0 0 20px;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.more-card {
  background: rgba(252, 246, 228, 0.5);
  border: 1px solid rgba(80, 60, 30, 0.15);
  padding: 16px 12px;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all .3s;
}

.more-card:hover {
  background: rgba(252, 246, 228, 0.85);
  transform: translateY(-2px);
}

.mc-plate {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

.mc-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--olive-deep);
  margin-top: 8px;
}

.mc-sci {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--olive);
}

/* === Newsletter — pinned bottom-right "field notes" card === */
.newsletter {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 50;
}

/* Closed state — pill button */
.news-fab {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--olive-deep, #3a3a1f);
  color: var(--bone, #f5e8c8);
  border: 1px solid rgba(245, 232, 200, 0.25);
  padding: 14px 22px 14px 18px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 14px 32px rgba(40, 30, 10, 0.32),
    0 2px 8px rgba(40, 30, 10, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.news-fab:hover {
  background: var(--terracotta-deep, #8a4a2a);
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(40, 30, 10, 0.4),
    0 4px 10px rgba(40, 30, 10, 0.22);
}

.nf-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245, 232, 200, 0.18);
  font-size: 12px;
  letter-spacing: 0;
}

.nf-text {
  display: inline-block;
}

/* Open state — postcard */
.news-card {
  width: 360px;
  position: relative;
  background:
    radial-gradient(ellipse 600px 200px at 100% 0%, rgba(216, 152, 104, 0.22), transparent 60%),
    radial-gradient(ellipse 400px 300px at 0% 100%, rgba(138, 138, 78, 0.18), transparent 70%),
    linear-gradient(178deg, #f8efd5 0%, #f0e2b8 60%, #e8d4a0 100%);
  border: 1px solid rgba(80, 60, 30, 0.32);
  padding: 0;
  box-shadow:
    0 32px 72px -12px rgba(40, 28, 10, 0.45),
    0 12px 24px -8px rgba(40, 28, 10, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  animation: news-in .42s cubic-bezier(.2, .8, .2, 1);
  transform-origin: bottom right;
}

@keyframes news-in {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(.94);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Inner deckle frame */
.news-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 0.5px solid rgba(80, 60, 30, 0.22);
  pointer-events: none;
}

/* Top postage strip */
.news-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background:
    repeating-linear-gradient(90deg,
      var(--terracotta-deep, #8a4a2a) 0 8px,
      transparent 8px 16px);
  opacity: 0.75;
}

.news-inner {
  position: relative;
  padding: 26px 28px 24px;
}

.news-stamp {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 56px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background:
    repeating-linear-gradient(0deg, transparent 0 6px, rgba(80, 60, 30, 0.04) 6px 7px),
    linear-gradient(160deg, #ead2a4, #d8b078);
  border: 1px dashed rgba(80, 60, 30, 0.45);
  outline: 3px solid rgba(245, 232, 200, 0.6);
  outline-offset: -1px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--olive-deep, #3a3a1f);
  transform: rotate(3deg);
  pointer-events: none;
}

.news-stamp-glyph {
  font-size: 22px;
  line-height: 1;
  color: var(--terracotta-deep, #8a4a2a);
  font-family: var(--serif, Georgia, serif);
  font-style: italic;
}

.news-stamp-cents {
  font-size: 6.5px;
  letter-spacing: 0.2em;
}

.news-x {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(80, 60, 30, 0.3);
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  color: var(--olive, #5a5a32);
  opacity: 0.7;
  transition: all .2s;
  z-index: 2;
}

.news-x:hover {
  opacity: 1;
  color: var(--bone, #f5e8c8);
  background: var(--terracotta-deep, #8a4a2a);
  border-color: var(--terracotta-deep, #8a4a2a);
}

.news-eyebrow {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--terracotta-deep, #8a4a2a);
  margin: 4px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-eyebrow::before,
.news-eyebrow::after {
  content: "";
  flex: 0 0 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.news-eyebrow::after {
  flex: 1;
}

.news-title {
  font-family: var(--serif, Georgia, serif);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.02;
  color: var(--olive-deep, #3a3a1f);
  margin: 0 0 12px;
  padding-right: 60px;
  /* leave room for stamp */
}

.news-lede {
  font-family: var(--serif, Georgia, serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(58, 58, 31, 0.82);
  margin: 0 0 18px;
}

.news-lede em {
  color: var(--terracotta-deep, #8a4a2a);
  font-style: italic;
}

.news-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.news-field {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 252, 240, 0.7);
  border: 1px solid rgba(80, 60, 30, 0.28);
  transition: all .25s;
}

.news-field:focus-within {
  background: rgba(255, 252, 240, 0.95);
  border-color: var(--olive-deep, #3a3a1f);
  box-shadow: 0 0 0 3px rgba(58, 58, 31, 0.08);
}

.news-field-icon {
  flex: 0 0 auto;
  padding: 0 10px 0 14px;
  color: var(--olive, #5a5a32);
  opacity: 0.55;
  font-size: 13px;
}

.news-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 12px 13px 0;
  font-family: var(--serif, Georgia, serif);
  font-style: italic;
  font-size: 15px;
  background: transparent;
  border: none;
  color: var(--olive-deep, #3a3a1f);
}

.news-form input::placeholder {
  color: rgba(58, 58, 31, 0.4);
}

.news-form input:focus {
  outline: none;
}

.news-form button {
  padding: 13px 18px;
  background: var(--olive-deep, #3a3a1f);
  color: var(--bone, #f5e8c8);
  border: 1px solid var(--olive-deep, #3a3a1f);
  cursor: pointer;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .25s;
}

.news-form button:hover {
  background: var(--terracotta-deep, #8a4a2a);
  border-color: var(--terracotta-deep, #8a4a2a);
  letter-spacing: 0.28em;
}

.news-form button .arrow {
  font-family: var(--serif, Georgia, serif);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0;
}

.news-fine {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive, #5a5a32);
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 0.5px solid rgba(80, 60, 30, 0.18);
  padding-top: 12px;
}

.news-fine .lock {
  font-size: 10px;
}

.news-error {
  font-family: var(--ui, "Inter", sans-serif);
  font-size: 12px;
  color: #a04020;
  margin: 4px 2px 6px;
  padding: 6px 10px;
  background: rgba(160, 64, 32, 0.08);
  border-left: 2px solid #a04020;
  border-radius: 2px;
}

/* Success state */
.news-card.is-done .news-inner {
  padding-bottom: 28px;
}

.news-success-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--terracotta-deep, #8a4a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 16px;
  color: var(--terracotta-deep, #8a4a2a);
  font-family: var(--serif, Georgia, serif);
  font-size: 26px;
  animation: stamp-in .5s cubic-bezier(.2, .9, .3, 1.4);
}

@keyframes stamp-in {
  0% {
    transform: scale(.4) rotate(-12deg);
    opacity: 0;
  }

  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .newsletter {
    right: 12px;
    bottom: 12px;
  }

  .news-card {
    width: calc(100vw - 24px);
    max-width: 320px;
  }

  .news-fab {
    padding: 10px 14px 10px 12px;
    font-size: 8.5px;
    letter-spacing: 0.16em;
    gap: 8px;
  }

  .nf-mark {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .ds-row:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }

  .ds-row {
    padding-right: 0;
  }

  .hero-title {
    font-size: 64px;
  }

  .ph-title {
    font-size: 56px;
  }

  .dm-title {
    font-size: 52px;
  }

  .topnav {
    padding: 14px 14px;
  }

  .brand-sub {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand-title {
    font-size: 18px;
  }

  .nav-links {
    gap: 2px;
  }

  .navlink {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .audio-toggle {
    min-width: 58px;
    margin-left: 4px;
  }

  .hero {
    padding: 18vh 20px 0;
  }

  .hero-cta {
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .cta {
    width: 100%;
    max-width: 320px;
    padding: 12px 18px;
    font-size: 10px;
  }

  .index {
    padding: 100px 18px 60px;
  }

  .detail {
    padding: 88px 16px 60px;
    overflow-x: hidden;
  }

  .detail-stage {
    min-height: 280px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    justify-self: center;
    overflow: hidden;
  }

  .detail-hero {
    justify-items: center;
    text-align: center;
  }

  .detail-meta {
    text-align: center;
  }

  .detail-meta {
    padding-right: 0;
    min-width: 0;
  }

  .dm-title {
    font-size: 44px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .dm-sci {
    font-size: 17px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .dm-blurb {
    font-size: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .ds-row {
    grid-template-columns: 110px 1fr;
    gap: 12px;
    padding: 14px 0;
  }

  .ds-value {
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .palette-strip .ps-swatches {
    gap: 14px;
  }

  .detail-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dnav {
    padding: 14px 16px;
  }

  .dnav.next {
    text-align: left;
    align-items: flex-start;
  }

  .dn-name {
    font-size: 17px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .more-title {
    font-size: 26px;
  }

  .more-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .more-card {
    padding: 12px 8px;
  }

  .mc-plate {
    height: 80px;
    overflow: hidden;
  }

  .mc-plate>div {
    transform: scale(0.7);
  }

  .mc-name {
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .mc-sci {
    font-size: 11px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .home-foot {
    font-size: 9px;
    gap: 8px;
    padding: 0 12px;
  }
}

@media (max-width: 420px) {
  .more-grid {
    grid-template-columns: 1fr;
  }

  .dm-title {
    font-size: 36px;
  }

}