:root {
  --ink: #1b2430;
  --mute: #5c6778;
  --paper: #fff7ef;
  --card: #ffffff;
  --coral: #ff6b4a;
  --coral-deep: #e24e2c;
  --navy: #243447;
  --mint: #b8f0d4;
  --sun: #ffe08a;
  --line: #ead9c8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ld {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--coral-deep); }
a:hover { color: var(--ink); }
.fun { font-family: Fredoka, Nunito, sans-serif; }

.ld-wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }

.ld-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 2px solid var(--line);
}
.ld-nav nav {
  background: transparent !important;
  height: auto !important;
  line-height: inherit !important;
  box-shadow: none !important;
  width: auto !important;
  color: inherit !important;
}
.ld-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 12px;
}
.ld-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 22px;
  font-weight: 600;
}
.ld-brand .ld-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
  border-radius: 7px;
  box-shadow: 2px 2px 0 var(--navy);
}
.ld-subnav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ld-subnav a:not(.ld-btn) {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
}
.ld-links { display: flex; align-items: center; gap: 16px; }
.ld-links a { text-decoration: none; color: var(--navy); font-weight: 700; font-size: 14px; line-height: 1.2; height: auto; }
.ld-nav .ld-btn,
.ld-nav a.ld-btn {
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  height: auto;
  min-height: 0;
  box-shadow: 2px 2px 0 var(--navy);
}
.ld-burger {
  display: none;
  border: 2px solid var(--navy);
  background: var(--sun);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
}
.ld-drawer { display: none; padding: 0 0 14px; }
.ld-drawer.open { display: block; }
.ld-drawer a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }

.ld-btn, a.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--coral);
  color: #fff !important;
  text-decoration: none;
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--navy);
  cursor: pointer;
  font-family: Nunito, sans-serif;
}
.ld-btn:hover, a.ld-btn:hover { background: var(--coral-deep); }
.ld-btn.ghost {
  background: #fff;
  color: var(--navy) !important;
}

.hero { padding: 28px 0 20px; }
.hero .inbox { margin: 0 0 28px; }
.hero h1 {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  margin: 8px 0 12px;
}
.kicker {
  display: inline-block;
  background: var(--mint);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inbox {
  background: var(--card);
  border: 2px solid var(--navy);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--navy);
  padding: 18px;
}
.addr-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.addr {
  flex: 1 1 220px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: clamp(14px, 2.4vw, 18px);
  background: var(--sun);
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 12px 14px;
  word-break: break-all;
}
.mail-list { margin-top: 14px; min-height: 180px; }
.mail-item {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  gap: 10px 12px;
  align-items: start;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}
.mail-item:hover { border-color: var(--coral); }
.mail-item.fresh {
  border-color: var(--coral);
  background: #fff3ed;
}
.mail-item.unread .mail-from { font-weight: 800; }
.mail-item.read {
  background: #fbf7f2;
}
.mail-item.read .mail-from { font-weight: 700; color: var(--mute); }
.mail-num {
  font-family: Fredoka, Nunito, sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.mail-from { font-weight: 800; }
.mail-sub { color: var(--ink); font-size: 15px; }
.mail-when { color: var(--mute); font-size: 13px; white-space: nowrap; }
.mail-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}
.empty { color: var(--mute); padding: 28px 8px; text-align: center; }

.ld-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(27, 36, 48, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ld-dialog[hidden] { display: none !important; }
.ld-dialog-card {
  width: min(920px, 100%);
  height: min(86vh, 820px);
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--navy);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ld-dialog-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-bottom: 2px solid var(--line);
  background: var(--paper);
}
.ld-dialog-meta h3 {
  margin: 0 0 4px;
  font-family: Fredoka, Nunito, sans-serif;
  font-size: 20px;
  line-height: 1.25;
}
.ld-dialog-meta .from { font-weight: 800; font-size: 14px; }
.ld-dialog-meta .when { color: var(--mute); font-size: 13px; }
.ld-dialog-card iframe {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
  referrer-policy: no-referrer;
}

.section { padding: 56px 0; }
.section h2 {
  font-family: Fredoka, Nunito, sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  margin: 8px 0 14px;
}
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 4px 4px 0 var(--navy);
  transition: transform 0.25s ease;
}
.card:hover { transform: translate(-2px, -2px); }
.card h3 { margin: 0 0 8px; font-family: Fredoka, Nunito, sans-serif; }
.mint { background: var(--mint); }
.sun { background: var(--sun); }
.coral { background: var(--coral); color: #fff; }
.coral h3, .coral p { color: #fff; }
.navy { background: var(--navy); color: #fff; }
.navy h3, .navy p, .navy a { color: #fff; }

.reveal { opacity: 0; transform: translateY(16px); transition: 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

.ld-footer {
  border-top: 2px solid var(--navy);
  padding: 28px 0;
  background: #fff;
}
.faq details {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 800; }
.page { padding: 40px 0 64px; }
.page h1 { font-family: Fredoka, Nunito, sans-serif; font-size: 42px; margin: 8px 0 12px; }
.prose { max-width: 720px; }
.field { margin: 0 0 12px; }
.field label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.field input, .field textarea {
  width: 100%;
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .ld-links { display: none; }
  .ld-burger { display: inline-flex; align-items: center; justify-content: center; }
  .mail-item {
    grid-template-columns: 2rem 1fr;
  }
  .mail-when { grid-column: 2; }
  .ld-dialog { padding: 8px; }
  .ld-dialog-card { height: min(94vh, 900px); border-radius: 14px; }
}
