/* epistle.email landing (index.html only; site.css has the fonts and palette). The hero is a Blender render of
   scrolls on a lamplit table (brand/src/table), with the copy and a few glass notes floating over it in perspective. */
body.home { background: #FBF7EF; color: var(--ink); }
.home .wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.home h1, .home h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.012em; }
.home h2 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; color: #2B0A22; margin: 0 0 18px; }
.home .kicker { font: 600 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #8C6A2E; margin: 0 0 18px; }
.home .kicker.light { color: var(--gold); }
.home .lead { font-size: 19px; line-height: 1.6; color: #5F4B57; max-width: 640px; margin: 0; }

/* ---------- nav ---------- */
.nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px); }
.nav .brand img { height: 30px; width: auto; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.nav nav a { color: rgba(244,235,214,.82); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: #fff; }
.nav .pill { background: rgba(244,235,214,.96); color: #2B0A22; padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.nav .pill:hover { background: #fff; color: #2B0A22; }
@media (max-width: 720px) { .hide-sm { display: none; } }

/* ---------- hero: the table ---------- */
.stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; background: #140410; color: var(--papyrus);
  display: flex; align-items: center; perspective: 1400px; }
.stage-bg, .stage-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-bg img { object-fit: cover; object-position: 60% 62%; transform: scale(1.04); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.09) translate(-1%, -0.6%); } }
/* purple-black from the left and the top so the copy reads; the lamplit scrolls stay bright on the right */
.stage-shade { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,4,16,.92) 0%, rgba(20,4,16,.72) 34%, rgba(20,4,16,.18) 62%, rgba(20,4,16,0) 80%),
              linear-gradient(180deg, rgba(20,4,16,.65) 0%, rgba(20,4,16,0) 26%, rgba(20,4,16,0) 70%, rgba(20,4,16,.75) 100%); }
.stage-copy { position: relative; z-index: 2; width: 100%; max-width: 1160px; margin: 0 auto; padding: 120px 28px 90px; }
.stage-copy > * { max-width: 600px; }
.eyebrow { font: 600 12.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 0 0 22px; }
.stage h1 { font-size: clamp(54px, 8vw, 104px); line-height: .96; margin: 0 0 24px; color: #FBF4E4; }
.stage h1 em { font-style: italic; color: #E9CF8E; }
.stage .sub { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: rgba(244,235,214,.82); margin: 0 0 36px; }
.stage .sub b { color: #FBF4E4; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.cta { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 999px;
  font: 600 16.5px/1 var(--sans); text-decoration: none; background: #F4EBD6; color: #2B0A22;
  box-shadow: 0 12px 34px rgba(0,0,0,.35); transition: transform .15s ease, background .15s ease; }
.cta:hover { background: #fff; transform: translateY(-1px); }
.cta.ghost { background: rgba(244,235,214,.06); color: #F4EBD6; box-shadow: inset 0 0 0 1.5px rgba(244,235,214,.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cta.ghost:hover { box-shadow: inset 0 0 0 1.5px #F4EBD6; background: rgba(244,235,214,.12); }

/* phones: the table is seen from its end (hero-tall); copy at the top, then the notes in a column over the scroll */
@media (max-aspect-ratio: 4/5) {
  .stage { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .stage-bg img { object-position: 50% 75%; }
  .stage-shade { background: linear-gradient(180deg, rgba(20,4,16,.94) 0%, rgba(20,4,16,.84) 46%, rgba(20,4,16,.15) 74%, rgba(20,4,16,.35) 100%); }
  .stage-copy { padding: 104px 22px 8px; }
  .stage h1 { font-size: clamp(50px, 14vw, 72px); }
  .actions .cta { flex: 1 1 100%; }
}

/* ---------- manifesto ---------- */
.home section { position: relative; }
.manifesto { padding: clamp(80px, 11vw, 140px) 0 60px; }
.two { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 90px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.prose p { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.7; color: #4A3843; margin: 0 0 22px; }
.prose p:first-child { color: #2B0A22; }

/* ---------- features ---------- */
.home .features { max-width: none; padding: clamp(80px, 10vw, 130px) 0 40px; overflow: visible; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 54px; background: #E6D9C0; border: 1px solid #E6D9C0;
  border-radius: 22px; overflow: hidden; }
.fgrid article { background: #FFFDF8; padding: 34px 30px 32px; }
.fgrid img { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: #F3E9F0; margin-bottom: 22px; }
.fgrid h3 { font: 600 20px/1.2 var(--sans); letter-spacing: -.01em; color: #2B0A22; margin: 0 0 10px; }
.fgrid p { font-size: 16px; line-height: 1.6; color: #5F4B57; margin: 0; }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .fgrid { grid-template-columns: 1fr; } }

/* ---------- showcase ---------- */
.home .showcase { padding: clamp(80px, 10vw, 130px) 0 40px; }
.devices { position: relative; margin: 56px auto 0; max-width: 1060px; padding-right: 9%; }
.devices .desk { width: 100%; border-radius: 14px; box-shadow: 0 40px 90px rgba(43,10,34,.22), 0 0 0 1px rgba(43,10,34,.06); }
.devices .phone { position: absolute; right: 0; bottom: -40px; width: 24%; filter: drop-shadow(0 28px 40px rgba(43,10,34,.35)); }
@media (max-width: 640px) { .devices { padding-right: 0; margin-bottom: 40px; } .devices .desk { width: 86%; border-radius: 10px; }
  .devices .phone { width: 38%; right: 0; bottom: -70px; } }

/* ---------- open ---------- */
.open { padding: clamp(100px, 12vw, 160px) 0 50px; }
.arrow { font-weight: 600; color: #4A1238; text-decoration: none; border-bottom: 1.5px solid rgba(74,18,56,.3); padding-bottom: 2px; }
.arrow::after { content: "  →"; }
.arrow:hover { border-color: #4A1238; }

/* ---------- organisations ---------- */
.org { padding: 60px 0 clamp(80px, 10vw, 120px); }
.org-card { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: clamp(36px, 5vw, 64px) !important;
  border-radius: 28px; color: #F4EBD6; background: radial-gradient(120% 140% at 0% 0%, #5A1745 0%, #3A0D2C 45%, #1E0617 100%); }
.org-card h2 { color: #FBF4E4; }
.org-card p { font-size: 18px; line-height: 1.6; color: rgba(244,235,214,.78); max-width: 560px; margin: 0; }
@media (max-width: 760px) { .home .org-card { flex-direction: column; align-items: flex-start; margin: 0 16px; } }

/* ---------- final call ---------- */
.final { min-height: 560px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #140410; text-align: center; }
.final .stage-bg img { object-fit: cover; object-position: 50% 55%; }
.final .stage-shade { background: radial-gradient(70% 90% at 50% 50%, rgba(20,4,16,.55), rgba(20,4,16,.9)); }
.final-copy { position: relative; z-index: 2; padding: 90px 24px; color: #F4EBD6; }
.final h2 { color: #FBF4E4; }
.final p { font-size: 19px; color: rgba(244,235,214,.8); margin: 0 0 32px; }
.final .actions { justify-content: center; }

/* ---------- footer ---------- */
.foot { display: block; text-align: left; background: #140410; color: rgba(244,235,214,.7); padding: 64px 0 56px; border: 0; }
.foot .wrap { display: grid; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin: 14px 0 0; font-size: 15px; }
.foot h4 { font: 600 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 6px 0 16px; }
.foot a { display: block; text-align: left; margin-left: 0; color: rgba(244,235,214,.82); text-decoration: none; font-size: 15px; margin: 0 0 10px; }
.foot a:hover { color: #fff; }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- technology page ---------- */
.stage.short { min-height: 64vh; min-height: 64svh; }
.stage.short .stage-copy { padding-top: 140px; padding-bottom: 70px; }
.stage.short h1 { font-size: clamp(50px, 7vw, 88px); }
.nav nav a[aria-current="page"] { color: #fff; }
@media (max-aspect-ratio: 4/5) { .stage.short { min-height: 0; } .stage.short .stage-copy { padding: 110px 22px 60px; }
  .stage.short .stage-shade { background: linear-gradient(180deg, rgba(20,4,16,.92), rgba(20,4,16,.78)); } }

.stack-sec { padding: clamp(80px, 10vw, 130px) 0 30px; }
.stack { margin-top: 50px; max-width: 900px; }
.stack .layer { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stack .layer.base { grid-template-columns: 1fr; }
.stack .box { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 20px 22px;
  background: #FFFDF8; border: 1px solid #E6D9C0; border-radius: 16px; box-shadow: 0 10px 30px rgba(43,10,34,.05); }
.stack .box img { grid-row: span 2; width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: #F3E9F0; }
.stack .box b { font: 600 18px/1.2 var(--sans); color: #2B0A22; }
.stack .box span { font-size: 14.5px; color: #6E5A66; }
.stack .base .box { background: #2B0A22; border-color: #2B0A22; }
.stack .base .box b { color: #FBF4E4; } .stack .base .box span { color: rgba(244,235,214,.72); }
.stack .base .box img { background: rgba(244,235,214,.12); filter: brightness(0) invert(.9) sepia(.3); }
.stack .box.ghost { display: flex; justify-content: center; background: transparent; border-style: dashed; box-shadow: none; }
.stack .box.ghost span { font-size: 14px; font-style: italic; }
.stack .link { display: grid; grid-template-columns: 1fr 1fr; height: 30px; }
.stack .link i { justify-self: center; width: 2px; background: repeating-linear-gradient(#C9A24A 0 5px, transparent 5px 9px); }
.stack .one-link { grid-template-columns: 1fr; }
@media (max-width: 640px) {
  .stack .layer { grid-template-columns: 1fr; gap: 12px; }
  .stack .link { grid-template-columns: 1fr; height: 24px; } .stack .two-links i + i { display: none; }
  .stack .box { padding: 15px 16px; } .stack .box b { font-size: 16.5px; } .stack .box span { font-size: 13.5px; }
  .stack .box.ghost { border: 0; padding: 0 4px; justify-content: flex-start; } }

.part { padding: clamp(60px, 8vw, 100px) 0 0; }
.part + .part > .wrap:first-child { border-top: 1px solid #E6D9C0; padding-top: clamp(60px, 8vw, 100px); }
.part .prose a { color: #4A1238; text-decoration-color: rgba(74,18,56,.35); text-underline-offset: 3px; }
.shot { width: 100%; margin-top: 50px; border-radius: 14px; box-shadow: 0 40px 90px rgba(43,10,34,.18), 0 0 0 1px rgba(43,10,34,.06); }
.app-row { align-items: center; }
.app-row h2 { margin-bottom: 28px; }
.phone-shot { width: min(300px, 70%); justify-self: center; filter: drop-shadow(0 30px 44px rgba(43,10,34,.3)); }
.thanks-sec { padding: clamp(70px, 9vw, 110px) 0 clamp(70px, 9vw, 110px); text-align: center; }
.thanks-sec p { font: 600 clamp(22px, 2.4vw, 28px)/1.4 var(--serif); color: #6E5A66; max-width: 640px; margin: 0 auto; }

/* ---------- contact (for organisations) ---------- */
.org-contact { padding: clamp(70px, 9vw, 120px) 0 clamp(80px, 10vw, 130px); }
.oc-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .oc-grid { grid-template-columns: 1fr; } }
.oc-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.oc-points li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.oc-points img { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #F3E9F0; }
.oc-points b { display: block; font: 600 17.5px/1.3 var(--sans); color: #2B0A22; margin: 2px 0 4px; }
.oc-points span { font-size: 15.5px; line-height: 1.55; color: #5F4B57; }
.oc-how { margin-top: 52px !important; }
.oc-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 16px; }
.oc-steps li { counter-increment: s; position: relative; padding-left: 46px; font-size: 15.5px; line-height: 1.55; color: #5F4B57; }
.oc-steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font: 600 15px/1 var(--sans); color: #FBF4E4; background: #4A1238; }
.oc-steps b { color: #2B0A22; font-weight: 600; }
/* the form: a clean card (site.css has the fields) */
.oc-form .panel { background: #FFFDF8; border: 1px solid #E6D9C0; border-radius: 22px; padding: clamp(24px, 3.4vw, 40px);
  box-shadow: 0 30px 70px rgba(43,10,34,.10); max-width: none; margin: 0; color: var(--ink); }
.oc-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .oc-form .row2 { grid-template-columns: 1fr; } }
.oc-form .btn-purple { height: 54px; font-size: 16.5px; margin-top: 6px; }
.oc-form .fine { color: #6E5A66; }
@media (min-width: 901px) { .oc-form { position: sticky; top: 24px; } }
.part.first { padding-top: clamp(80px, 10vw, 130px); }
.gospel .prose b { color: #2B0A22; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.tools a { display: block; padding: 20px 20px 18px; border: 1px solid #E6D9C0; border-radius: 16px; background: #FFFDF8; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease; }
.tools a:hover { border-color: #C9A24A; transform: translateY(-2px); }
.tools b { display: block; font: 600 17px/1.2 var(--sans); color: #2B0A22; margin-bottom: 6px; }
.tools span { font-size: 14.5px; line-height: 1.5; color: #6E5A66; }
@media (max-width: 960px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tools { grid-template-columns: 1fr; } }
.stage h1 { text-wrap: balance; }
.tools-sec { padding-bottom: clamp(80px, 10vw, 120px); }
/* donations, top of the technology page */
.support { padding: clamp(60px, 8vw, 100px) 0 0; }
.support-card { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: clamp(32px, 4.5vw, 56px) !important;
  border-radius: 28px; color: #F4EBD6; background: radial-gradient(120% 140% at 100% 0%, #5A1745 0%, #3A0D2C 45%, #1E0617 100%); }
.support-card h2 { color: #FBF4E4; }
.support-card p { font-size: 18px; line-height: 1.65; color: rgba(244,235,214,.8); max-width: 640px; margin: 0; }
.support-card .kicker { margin-bottom: 18px; }
.support-card .cta { flex: none; }
@media (max-width: 760px) { .home .support-card { flex-direction: column; align-items: flex-start; margin: 0 16px; } }
.support + .part.first { padding-top: clamp(70px, 9vw, 110px); }
.cta.inert { cursor: default; pointer-events: none; }   /* the donate button, until the donation link exists */
/* the closing section ends the page the way Paul ends his letters */
.final p.verse { font: 600 clamp(20px, 2.2vw, 24px)/1.5 var(--serif); font-style: italic; color: rgba(244,235,214,.86); max-width: 560px; margin: 0 auto 32px; }
.final p.verse span { display: block; margin-top: 10px; font: 600 12px/1 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
/* technology: what the headers look like in Gmail's Show original */
.raw-headers { margin: 6px 0 30px; border: 1px solid #E6DCCB; border-radius: 14px; background: #fff; overflow: hidden;
  box-shadow: 0 1px 2px rgba(42,26,36,.04), 0 14px 34px rgba(42,26,36,.08); }
.rh-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F4EEE3; border-bottom: 1px solid #E6DCCB;
  font: 600 12px/1 var(--sans); letter-spacing: .04em; color: #6E5A66; }
.rh-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D9CDBA; }
.rh-bar span { margin-left: 8px; }
.rh-summary { display: grid; grid-template-columns: 74px 1fr; gap: 6px 14px; margin: 0; padding: 14px 18px 12px; font: 13.5px/1.45 var(--sans);
  border-bottom: 1px dashed #E6DCCB; }
.rh-summary dt { color: #8A7682; } .rh-summary dd { margin: 0; color: #2A1A24; overflow-wrap: anywhere; }
.prose .raw-headers .rh-summary b { color: #2f7d4f; font-weight: 700; }
.rh-raw { margin: 0; padding: 14px 18px; font: 12.5px/1.75 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #5b4a54;
  white-space: pre-wrap; overflow-wrap: anywhere; background: #FDFBF7; }
.rh-raw mark { display: inline-block; padding: 0 6px; margin: 0 -6px; border-radius: 4px; background: rgba(201,162,74,.22); color: #2A1A24; font-weight: 600; }
.raw-headers figcaption { padding: 10px 18px 12px; font: 13px/1.5 var(--sans); color: #8A7682; border-top: 1px solid #F0E8DA; }
/* a purple button on the light page (landing "Why Epistle") */
.cta.dark { background: #4A1238; color: #FBF4E4; box-shadow: 0 12px 30px rgba(43,10,34,.22); }
.cta.dark:hover { background: #5C1A47; color: #fff; }
.manifesto + .sec-band { padding-top: 20px; }
