/* temp-mail.zone — premium clean white. System fonts only (no render-blocking webfonts). */
:root {
  --bg: #ffffff;
  --soft: #f6f7f9;
  --softer: #fafbfc;
  --line: #e5e7eb;
  --line-strong: #d4d8de;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --accent: #2155d6;
  --accent-hover: #1a46b5;
  --accent-soft: #eef3fe;
  --dark: #111827;
  --code-bg: #fff8e1;
  --code-line: #f2d77a;
  --code-ink: #6b4e00;
  --danger: #b42318;
  --ok: #067647;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
button { font: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.wrap.narrow { max-width: 560px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(33, 85, 214, 0.35); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.banner { background: var(--accent-soft); color: var(--ink-2); text-align: center; padding: 8px 16px; font-size: 0.925rem; }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.92); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand-name { font-size: 1.125rem; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--ink); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 56px 0 28px; background: linear-gradient(180deg, var(--softer) 0%, var(--bg) 100%); }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0 auto 14px; max-width: 820px; text-align: center; font-weight: 750; }
.lede { font-size: 1.125rem; color: var(--muted); margin: 0 auto 36px; max-width: 640px; text-align: center; }
.notice { text-align: center; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--radius-sm); padding: 10px 14px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 820px) { .cards { grid-template-columns: 1fr 1fr; gap: 24px; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; }
.card h2, .h-card { font-size: 1.3rem; margin: 0 0 6px; letter-spacing: -0.01em; }
.card-text { color: var(--muted); margin: 0 0 20px; }

/* Reserved height: populating the address never shifts the layout (CLS). */
.address-box { min-height: 104px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--softer); padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 10px; margin-bottom: 16px; }
.address-box[data-state="ready"] { border-style: solid; border-color: var(--accent); background: var(--accent-soft); }
.address-value { font-family: var(--mono); font-size: 1.05rem; color: var(--muted); word-break: break-all; line-height: 1.35; }
.address-box[data-state="ready"] .address-value { color: var(--ink); font-weight: 600; font-size: 1.15rem; }
.address-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.address-actions[hidden] { display: none; }
.save-note { margin: 12px 0 0; font-size: 0.925rem; color: var(--ink-2); background: var(--soft); border-radius: 8px; padding: 8px 12px; }
.open-form { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.input { width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); min-height: 50px; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(33, 85, 214, 0.12); }
.form-error { color: var(--danger); font-size: 0.925rem; margin: 10px 0 0; }
.last-used { margin: 12px 0 0; font-size: 0.9rem; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font-family: var(--mono); font-size: 0.9rem; text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 12px 20px; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; min-height: 48px; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-soft { background: #fff; color: var(--accent); border-color: rgba(33, 85, 214, 0.35); }
.btn-soft:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn-small { min-height: 36px; padding: 6px 14px; font-size: 0.9rem; border-radius: 8px; }
.btn-code { background: var(--code-ink); color: #fff; }
.btn-code:hover { background: #4f3900; color: #fff; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.icon-btn { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 10px; border-radius: 8px; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }

/* ----------------------------------------------------------------- inbox */
.inbox-section { padding: 12px 0 40px; scroll-margin-top: 80px; }
.inbox-section[hidden] { display: none; }
.inbox-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.inbox-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.inbox-address { font-family: var(--mono); font-size: 1.15rem; margin: 2px 0 0; word-break: break-all; font-weight: 600; }
.code-panel { margin: 16px 24px 0; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--radius-sm); padding: 14px 16px; }
.code-panel[hidden] { display: none; }
.code-meta { font-size: 0.875rem; color: var(--code-ink); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.code-value { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink); }
.status-line { display: flex; align-items: center; gap: 10px; padding: 18px 24px; color: var(--muted); }
.status-line[hidden] { display: none; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: none; }
.status-line.waiting .pulse { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .status-line.waiting .pulse { animation: none; } }
.message-list { list-style: none; margin: 8px 0 0; padding: 0; }
.message { border-top: 1px solid var(--line); }
.message:first-child { border-top: 0; }
.message-btn { display: block; width: 100%; text-align: left; background: #fff; border: 0; padding: 16px 24px; cursor: pointer; color: var(--ink); }
.message-btn:hover { background: var(--softer); }
.message-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.message-from { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message.unread .message-from::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
.message-time { color: var(--muted); font-size: 0.85rem; white-space: nowrap; flex: none; }
.message-subject { margin-top: 2px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message.unread .message-subject { color: var(--ink); font-weight: 600; }
.message-preview { color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--ink-2); margin-left: 8px; vertical-align: 1px; }
.tag-code { background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--code-line); }
.older-row { padding: 8px 24px 20px; text-align: center; }

/* ---------------------------------------------------------------- reader */
.reader { width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25); color: var(--ink); }
.reader::backdrop { background: rgba(15, 23, 42, 0.45); }
.reader-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.reader-title h3 { margin: 0; font-size: 1.2rem; line-height: 1.35; word-break: break-word; }
.reader-meta { color: var(--muted); font-size: 0.9rem; word-break: break-all; }
.reader-code { display: flex; align-items: center; gap: 12px; margin: 14px 24px 0; background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--code-ink); flex-wrap: wrap; }
.reader-code[hidden], .reader-bar[hidden], .reader-attachments[hidden] { display: none; }
.reader-code strong { font-family: var(--mono); font-size: 1.4rem; color: var(--ink); letter-spacing: 0.1em; }
.reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 24px 0; font-size: 0.9rem; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 8px 12px; flex-wrap: wrap; }
.reader-frame { display: block; width: calc(100% - 48px); margin: 16px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 260px; background: #fff; }
.reader-attachments { list-style: none; margin: 0 24px 20px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.attachment { font-weight: 600; }
.attachment.blocked { color: var(--muted); font-weight: 400; }

/* ------------------------------------------------------------- content */
.content-section { padding: 48px 0 64px; }
.page-top { padding-top: 32px; }
.prose { max-width: 740px; margin: 0 auto; color: var(--ink-2); }
.prose h1 { color: var(--ink); font-size: clamp(1.8rem, 3.6vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; margin: 8px 0 20px; }
.prose h2 { color: var(--ink); font-size: 1.45rem; line-height: 1.3; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose h3 { color: var(--ink); font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.crumbs { max-width: 740px; margin: 0 auto 8px; font-size: 0.875rem; color: var(--muted); display: flex; gap: 8px; }
.crumbs a { color: var(--muted); }
.faq-list { margin-top: 12px; }
.faq-item { border-top: 1px solid var(--line); padding: 4px 0 8px; }
.faq-item h2 { font-size: 1.15rem; margin: 20px 0 6px; }
.page-cta { margin-top: 40px; }
.video-slot { margin: 8px 0 28px; }
.video-poster { display: flex; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); background: linear-gradient(135deg, #1b2b55, var(--accent)); color: #fff; text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.video-poster:hover { color: #fff; filter: brightness(1.05); }
.video-poster .play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; padding-left: 4px; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.state-page { text-align: center; padding: 40px 20px; }
.url-box { font-family: var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; word-break: break-all; margin: 14px 0 8px; }
.stack-form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.stack-form label { font-weight: 600; font-size: 0.925rem; margin-top: 6px; }
.stack-form .btn { margin-top: 10px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); background: var(--softer); padding: 32px 0 28px; color: var(--muted); font-size: 0.925rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand .brand-name { color: var(--ink); font-weight: 700; }
.footer-brand p { margin: 4px 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-note { margin-top: 16px; }

/* ----------------------------------------------------------------- toast */
.toast-region { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }
.toast { background: var(--dark); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: 0.925rem; box-shadow: var(--shadow); transition: opacity 0.4s ease; }
.toast.out { opacity: 0; }

@media (max-width: 560px) {
  .hero { padding-top: 36px; }
  .card { padding: 22px; }
  .nav a { padding: 8px 8px; }
  .inbox-head, .message-btn, .status-line { padding-left: 18px; padding-right: 18px; }
  .code-panel { margin-left: 18px; margin-right: 18px; }
  .reader-frame { width: calc(100% - 24px); margin: 12px; }
}
.address-box[data-state="empty"] .address-value { font-family: var(--font); word-break: normal; font-size: 1rem; }
