/* Elf Mail website. The same "lantern glow" night as the app: deep blue, gold, paper. */

@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/fraunces-500.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: italic; font-display: swap; src: url("/fonts/fraunces-500i.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/nunito-800.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/caveat-500.woff2") format("woff2"); }

:root {
  --night: #0b1038;
  --indigo: #1c2466;
  --violet: #3a3f9a;
  --gold: #f4cd6f;
  --gold-ink: #3a2a05;
  --paper: #fbf2dc;
  --ink: #2b2a4a;
  --soft: #c9d2f5;
  --lav: #b9b4ff;
  --wax: #b3261e;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.16);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: #fff;
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The sky: a slow blend from night to indigo, with a scatter of small stars. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 27% 62%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 9%, rgba(244, 205, 111, 0.9), transparent 60%),
    radial-gradient(1px 1px at 58% 38%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 69% 78%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 83% 22%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(2px 2px at 91% 55%, rgba(244, 205, 111, 0.8), transparent 60%),
    radial-gradient(1px 1px at 6% 84%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 48% 91%, rgba(255, 255, 255, 0.6), transparent 60%),
    linear-gradient(180deg, #080c2e 0%, var(--night) 30%, #141a52 100%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffe29a; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.langs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 14, 56, 0.5); }
.langs a { color: var(--soft); text-decoration: none; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.08em; padding: 6px 12px; border-radius: 999px; }
.langs a[aria-current="true"] { background: var(--lav); color: #12154a; }
.langs a:hover:not([aria-current="true"]) { color: #fff; }

/* ---------- shared type ---------- */
.label { font-weight: 800; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lav); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.015em; }
h1 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 em { font-style: italic; color: var(--lav); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--soft); max-width: 34em; }
section { padding: clamp(56px, 9vw, 110px) 0; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 60px); padding-bottom: clamp(48px, 8vw, 96px); position: relative; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(86, 214, 170, 0.16), transparent 70%), radial-gradient(closest-side at 30% 60%, rgba(150, 110, 255, 0.2), transparent 70%);
  filter: blur(30px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.soon { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 22px; border-radius: 999px; background: linear-gradient(180deg, #ffe08a, #f0bb4d); color: var(--gold-ink); font-weight: 800; font-size: 1rem; box-shadow: 0 10px 30px rgba(244, 205, 111, 0.22); }
.soon-note { display: block; margin-top: 14px; color: var(--soft); font-size: 0.92rem; }
.art { position: relative; justify-self: center; width: min(100%, 400px); }
.frame { aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 140px rgba(244, 205, 111, 0.14); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* A sheet of paper with the elf's handwriting. */
.note { background: var(--paper); color: var(--ink); font-family: var(--hand); font-size: 1.5rem; line-height: 1.22; padding: 20px 22px 18px; border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.note p { margin: 0 0 0.45em; }
.note mark { background: linear-gradient(180deg, transparent 20%, rgba(244, 205, 111, 0.7) 20%, rgba(244, 205, 111, 0.7) 88%, transparent 88%); color: inherit; padding: 0 2px; }
.note .sign { text-align: right; margin: 0; }
.art .note { position: absolute; left: -17%; bottom: 6%; width: 84%; transform: rotate(-3deg); }

/* ---------- they can write anything ---------- */
.papers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin: 40px 0 34px; }
.sheet { background: #f6f0e1; border-radius: 6px; padding: 10px 10px 14px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4); margin: 0; }
.sheet:nth-child(1) { transform: rotate(-2.2deg); }
.sheet:nth-child(2) { transform: rotate(1.6deg) translateY(10px); }
.sheet:nth-child(3) { transform: rotate(-1.2deg); }
.sheet:nth-child(4) { transform: rotate(2.4deg) translateY(8px); }
.sheet img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.sheet figcaption { font-family: var(--hand); font-size: 1.42rem; line-height: 1.1; color: #2d3f9c; padding: 10px 4px 0; }
.answer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: center; margin-top: 54px; }
.answer .note { transform: rotate(1.4deg); font-size: 1.7rem; }
.quiet { color: var(--soft); }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: 40px; }
.step { background: var(--glass); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.step img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.step-body { padding: 22px 22px 24px; }
.when { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lav); margin: 0 0 10px; }
.num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); font-size: 0.85rem; letter-spacing: 0; }
.step p:last-child { margin: 0; color: var(--soft); font-size: 0.98rem; }
.trick { margin: 36px auto 0; text-align: center; font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; color: #fff; max-width: 24em; }

/* ---------- the grown-ups' desk ---------- */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.desk ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.desk li { padding-left: 30px; position: relative; color: var(--soft); }
.desk li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold); }
.desk li strong { color: #fff; font-weight: 800; }
.cards { display: grid; gap: 12px; padding: 22px; border-radius: 34px; background: linear-gradient(180deg, #1c2466, #151b55); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); max-width: 420px; justify-self: center; width: 100%; }
.cards-title { font-family: var(--hand); font-size: 1.9rem; line-height: 1.1; margin: 4px 4px 6px; }
.card { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 16px; padding: 13px 15px; font-size: 0.92rem; line-height: 1.4; }
.card .cap { font-weight: 800; font-size: 0.66rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--lav); margin: 0 0 5px; }
.card p { margin: 0; }
.card .typed { margin-top: 9px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 12px; padding: 9px 12px; background: rgba(255, 255, 255, 0.06); }
.card .mini { margin-top: 10px; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 9px 13px; font-family: var(--hand); font-size: 1.25rem; line-height: 1.15; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.pills span { border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 0.78rem; background: rgba(10, 14, 56, 0.5); }

/* ---------- careful by design ---------- */
.care { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.care div { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.care h3 { margin-bottom: 8px; }
.care p { margin: 0; color: var(--soft); font-size: 0.96rem; }

/* ---------- the offer ---------- */
.offer { text-align: center; }
.offer .box { border: 1px solid rgba(244, 205, 111, 0.5); border-radius: 30px; padding: clamp(28px, 5vw, 56px); background: radial-gradient(120% 140% at 50% 0%, rgba(244, 205, 111, 0.13), transparent 60%), var(--glass); }
.offer .lead { margin: 16px auto 0; }
.offer .hand { font-family: var(--hand); font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; color: var(--gold); margin: 0 0 10px; }

/* ---------- foot ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--soft); font-size: 0.9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: #fff; text-decoration: none; font-weight: 800; }
.foot a:hover { color: var(--gold); }
.small { font-size: 0.82rem; color: rgba(201, 210, 245, 0.75); margin: 18px 0 0; max-width: 60em; }

/* ---------- text pages: privacy, help ---------- */
.page { padding-top: clamp(28px, 5vw, 56px); }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.page h1 em { color: var(--lav); }
.page .dated { color: var(--soft); font-size: 0.92rem; margin-bottom: 34px; }
.page h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 46px 0 12px; }
.page p, .page li { color: #e5e9ff; }
.page ul { padding-left: 1.2em; margin: 0 0 1em; }
.page li { margin-bottom: 0.5em; }
.page li::marker { color: var(--gold); }
.page strong { color: #fff; font-weight: 800; }
.short { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 10px; }
.short div { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.short h3 { font-family: var(--body); font-weight: 800; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lav); margin-bottom: 8px; }
.short p { margin: 0; font-size: 0.96rem; }
.helpers { display: grid; gap: 12px; margin: 14px 0 6px; }
.helpers div { background: var(--glass); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; }
.helpers h3 { font-family: var(--body); font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.helpers p { margin: 0; font-size: 0.95rem; }
.helpers .where { color: var(--lav); font-size: 0.82rem; font-weight: 800; margin-top: 6px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-family: var(--display); font-size: 1.18rem; padding: 16px 30px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--gold); font-family: var(--body); font-weight: 800; font-size: 1.4rem; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 18px; }
.write { margin-top: 44px; background: var(--paper); color: var(--ink); border-radius: 8px; padding: 26px 28px; transform: rotate(-0.6deg); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.write p { color: var(--ink); margin: 0; }
.write .hand { font-family: var(--hand); font-size: 2rem; line-height: 1.1; margin-bottom: 6px; }
.write a { color: var(--wax); font-weight: 800; }
.lost { text-align: center; padding: clamp(60px, 14vw, 160px) 0; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .hero-grid, .desk, .answer { grid-template-columns: minmax(0, 1fr); }
  .art { width: min(78%, 340px); margin-top: 8px; }
  .art .note { left: -14%; width: 88%; font-size: 1.28rem; padding: 16px 18px 14px; }
  .papers { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .steps, .care { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 34% minmax(0, 1fr); }
  .step img { width: 100%; aspect-ratio: auto; height: 0; min-height: 100%; }
  .step-body { padding: 18px; }
  .answer { margin-top: 44px; }
  .answer .note { font-size: 1.45rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand span { font-size: 1.2rem; }
  .langs a { padding: 6px 9px; }
  .step { display: flex; flex-direction: column; }
  .step img { width: 100%; aspect-ratio: 16 / 10; height: auto; min-height: 0; }
  .short { grid-template-columns: minmax(0, 1fr); }
  .sheet figcaption { font-size: 1.2rem; }
  .cards { padding: 16px; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
