:root {
  --blue: #78a8c5;
  --blue-deep: #2d5b76;
  --blue-ink: #15384c;
  --cream: #fff2df;
  --cream-hi: #fffaf1;
  --cocoa: #4b2e25;
  --blush: #f5b8b0;
  --line: rgba(21, 56, 76, .18);
  --shadow: 0 18px 38px rgba(30, 67, 88, .22), inset 0 3px 2px rgba(255,255,255,.72), inset 0 -4px 7px rgba(80,45,28,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--blue-ink);
  background: #dcebf3;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); padding: 10px 16px; background: white; border-radius: 20px; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 74px);
  color: var(--cream-hi);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.04em; font-size: 1.12rem; }
.brand-mark {
  display: grid; place-items: center; width: 35px; height: 35px;
  background: var(--cream); color: var(--cocoa); border-radius: 13px 13px 14px 12px;
  box-shadow: inset 0 2px 2px #fff, 0 5px 13px rgba(29,62,80,.2);
  font-family: Georgia, serif; font-style: italic;
}
.top-nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 36px); font-size: .88rem; font-weight: 800; }
.top-nav a { text-decoration: none; }
.top-nav a:not(.mini-plush) { border-bottom: 1px solid transparent; }
.top-nav a:not(.mini-plush):hover { border-color: currentColor; }
.mini-plush { padding: 9px 14px; color: var(--cocoa); background: var(--cream); border-radius: 16px; box-shadow: var(--shadow); }

.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; align-items: center; }
.hero-image, .lore-bg { position: absolute; inset: 0; background: #7daac4 center/cover no-repeat; }
.hero-image { background-image: url("assets/hero-bg.png"); }
.hero-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,72,97,.88) 0%, rgba(42,87,111,.56) 38%, rgba(48,91,114,.08) 67%); }
.hero-copy { position: relative; z-index: 2; width: min(600px, 89vw); margin-left: clamp(22px, 8vw, 118px); padding: 120px 0 70px; color: var(--cream-hi); }
.eyebrow { margin: 0 0 22px; font-size: .77rem; font-weight: 900; letter-spacing: .23em; }
.eyebrow.dark { color: #4d7184; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.065em; line-height: .92; }
h1 { margin-bottom: 26px; font-size: clamp(4rem, 8.8vw, 8.5rem); font-weight: 500; }
h1 em { font-weight: 400; color: var(--cream); }
.lede { max-width: 490px; font-size: clamp(1.08rem, 1.6vw, 1.35rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 34px; }
.plush-button {
  position: relative; display: inline-flex; min-width: 170px; justify-content: center; align-items: center;
  padding: 17px 26px; border: 0; border-radius: 23px 20px 24px 21px;
  font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow);
}
.plush-button::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(75,46,37,.19); border-radius: 18px; pointer-events: none; }
.plush-button:hover { transform: translateY(-3px) rotate(-.5deg); box-shadow: 0 22px 38px rgba(30,67,88,.29), inset 0 3px 2px #fff; }
.plush-button:active { transform: translateY(1px) scale(.98); }
.plush-button.primary, .plush-button.cream { background: var(--cream); color: var(--cocoa); }
.plush-button.secondary { background: rgba(223,238,246,.91); color: var(--blue-deep); }
.plush-button.blue { background: #92bdd3; color: #173b4f; }
.copy-status { min-height: 24px; margin: 11px 0 0 11px; font-size: .86rem; font-weight: 800; }
.scroll-cue { position: absolute; z-index: 3; right: 38px; bottom: 31px; display: flex; align-items: center; gap: 11px; color: white; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue span { width: 1px; height: 58px; background: rgba(255,255,255,.72); }

.signal-section { position: relative; min-height: 850px; padding: clamp(90px, 12vw, 165px) clamp(22px, 8vw, 118px); background: var(--cream-hi); display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; overflow: hidden; }
.signal-intro { position: relative; z-index: 2; }
.signal-section h2, .touch-section h2, .chapter h2 { font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 500; }
.soft-note { position: relative; z-index: 2; max-width: 470px; padding-top: 58px; font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.52; }
.soft-note p:first-child { font-style: italic; color: #4e778b; }
.text-link { display: inline-block; margin-top: 20px; font-family: "Trebuchet MS", Arial, sans-serif; font-size: .88rem; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 6px; }
.wave-card { position: absolute; left: 6%; right: 6%; bottom: -105px; height: 270px; display: flex; gap: 18px; align-items: flex-end; transform: rotate(-4deg); opacity: .94; }
.wave-card i { flex: 1; display: block; height: 38%; background: #b8d4e3; border-radius: 999px 999px 32px 32px; box-shadow: inset 0 6px 10px rgba(255,255,255,.64), 0 -8px 20px rgba(48,91,114,.08); }
.wave-card i:nth-child(2), .wave-card i:nth-child(6) { height: 63%; }
.wave-card i:nth-child(3), .wave-card i:nth-child(5) { height: 87%; }
.wave-card i:nth-child(4) { height: 100%; background: var(--blush); }

.touch-section { padding: clamp(85px, 11vw, 150px) clamp(22px, 8vw, 118px); background: #79a8c3; display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: end; }
.touch-section h2 { margin-bottom: 0; color: #163b50; }
.touch-actions { display: grid; justify-items: start; gap: 25px; }
.ca-pill { width: min(100%, 420px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(21,56,76,.18); border-radius: 18px; background: rgba(240,249,253,.34); color: var(--blue-ink); cursor: pointer; }
.ca-pill span { font-weight: 900; }
.ca-pill code { overflow: hidden; text-overflow: ellipsis; font-size: .79rem; white-space: nowrap; }
.ca-pill b { padding: 6px 9px; border-radius: 10px; background: rgba(255,255,255,.52); font-size: .72rem; text-transform: uppercase; }
footer { min-height: 90px; padding: 28px clamp(22px, 5vw, 74px); background: var(--blue-ink); color: #d8e8f0; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .78rem; letter-spacing: .05em; }

.lore-page { background: var(--cream-hi); }
.lore-hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.lore-bg { background-image: url("assets/lore-bg.png"); }
.lore-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(24,56,73,.76), rgba(33,72,93,.12) 72%); }
.lore-panel { position: relative; z-index: 2; width: min(600px, 88vw); margin-left: auto; margin-right: clamp(22px, 8vw, 118px); padding: 125px 0 65px; color: var(--cream-hi); }
.lore-panel h1 { font-size: clamp(4rem, 8vw, 8rem); }
.lore-panel > p:not(.eyebrow) { width: min(470px, 100%); font-family: Georgia, serif; font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.55; }
.chapter { min-height: 760px; padding: clamp(100px, 14vw, 180px) clamp(22px, 8vw, 118px); display: grid; grid-template-columns: .25fr 1.15fr .8fr; gap: 40px; align-items: start; background: var(--cream-hi); }
.chapter-number { font-family: Georgia, serif; font-size: 1.8rem; color: #6c93a7; }
.chapter-copy { padding-top: 47px; font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.55; }
.lore-end { min-height: 620px; padding: 100px clamp(22px, 8vw, 118px); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: #699bb8; }
.lore-end > p { margin: 0; font-family: Georgia, serif; font-size: clamp(4rem, 9vw, 9rem); line-height: .91; letter-spacing: -.07em; color: var(--cream-hi); }

:focus-visible { outline: 3px solid #ffd1cb; outline-offset: 4px; }
@media (max-width: 760px) {
  .site-header { padding: 18px 18px; }
  .top-nav a:first-child { display: none; }
  .hero-wash { background: linear-gradient(90deg, rgba(27,64,85,.87), rgba(39,83,106,.38)); }
  .hero-copy { margin-left: 22px; }
  .lore-panel { margin-left: 22px; margin-right: 22px; }
  .signal-section, .touch-section, .chapter { grid-template-columns: 1fr; gap: 34px; }
  .signal-section { min-height: 900px; }
  .soft-note, .chapter-copy { padding-top: 0; }
  .touch-section { align-items: start; }
  .chapter { min-height: auto; }
  .scroll-cue { display: none; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
