:root {
    --ink: #16211d;
    --paper: #f4f0e5;
    --cream: #fffaf0;
    --orange: #ff6534;
    --orange-dark: #d94117;
    --mint: #b9f3d1;
    --cyan: #85d9e8;
    --yellow: #ffd85a;
    --line: rgba(22, 33, 29, .2);
    --muted: #67706b;
    --shadow: 8px 8px 0 #16211d;
    --display: "Palatino Linotype", Palatino, Georgia, serif;
    --sans: "Trebuchet MS", "Gill Sans", sans-serif;
    --mono: "Lucida Console", Monaco, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 11% 12%, rgba(255, 101, 52, .17), transparent 22rem),
        radial-gradient(circle at 92% 32%, rgba(133, 217, 232, .25), transparent 25rem),
        var(--paper);
    font-family: var(--sans);
    min-height: 100vh;
}

button, input, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    z-index: 50;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

.topbar {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    border-bottom: 1px solid var(--line);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -.04em;
    font-size: 20px;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--paper);
    background: var(--ink);
    border-radius: 50% 50% 45% 55% / 58% 43% 57% 42%;
    font-family: var(--display);
    font-style: italic;
}
.live-pill {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    gap: 9px;
}
.live-pill span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #21a05a;
    box-shadow: 0 0 0 5px rgba(33, 160, 90, .13);
    animation: pulse 2s infinite;
}
.admin-link { color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; border-bottom: 1px solid; }
.admin-link span { color: var(--orange); }

main { overflow: hidden; }
.hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 88px 28px 92px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    gap: clamp(50px, 8vw, 120px);
    min-height: 650px;
}
.eyebrow {
    margin: 0 0 18px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--orange-dark);
}
.hero h1, .section-title h2 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: -.065em;
    line-height: .92;
    margin: 0;
}
.hero h1 { font-size: clamp(60px, 8vw, 108px); }
.hero h1 em { color: var(--orange); font-weight: 400; }
.lede { max-width: 600px; font-size: 18px; line-height: 1.65; margin: 32px 0; color: #47514c; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.trust-row span::before { content: "✓"; color: var(--orange); margin-right: 7px; }

.creator-card {
    position: relative;
    background: var(--cream);
    border: 2px solid var(--ink);
    box-shadow: var(--shadow);
    padding: 34px;
    transform: rotate(1.2deg);
}
.creator-card::before {
    content: "";
    position: absolute;
    width: 92px;
    height: 28px;
    top: -19px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(255, 216, 90, .74);
    border-left: 1px solid rgba(22,33,29,.15);
    border-right: 1px solid rgba(22,33,29,.15);
}
.card-number { font-family: var(--mono); font-size: 10px; letter-spacing: .15em; margin-bottom: 46px; }
.creator-card label { display: block; font-family: var(--display); font-size: 27px; letter-spacing: -.03em; margin-bottom: 13px; }
.address-builder { display: flex; align-items: stretch; border: 2px solid var(--ink); background: white; }
.address-builder input { min-width: 0; flex: 1; padding: 17px 15px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.address-builder input:focus { box-shadow: inset 0 0 0 2px var(--orange); }
.at-domain { display: flex; align-items: center; background: var(--mint); border-left: 2px solid var(--ink); padding: 0 13px; font-family: var(--mono); font-size: 11px; font-weight: 700; white-space: nowrap; }
.field-hint { min-height: 18px; font-size: 12px; color: var(--muted); margin: 10px 0 24px; }
.field-hint.error { color: #c92a16; }
.primary-button {
    width: 100%;
    border: 2px solid var(--ink);
    background: var(--orange);
    color: white;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.primary-button:hover { background: #ff774c; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.primary-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.primary-button:disabled { cursor: wait; opacity: .65; }
.primary-button strong { font-size: 23px; }
.terms { font-size: 10px; line-height: 1.5; color: #777; margin: 20px 0 0; }

.mail-workspace { max-width: 1240px; margin: 0 auto 110px; padding: 0 28px; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.active-address { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.active-address > span { font-family: var(--display); font-size: clamp(28px, 5vw, 55px); letter-spacing: -.05em; overflow-wrap: anywhere; }
.icon-button, .refresh-button, .back-button, .delete-button, .clear-button, .secondary-button, .otp-box button {
    border: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
    font-weight: 900;
}
.icon-button { padding: 7px 9px; font-family: var(--mono); font-size: 9px; background: var(--yellow); }
.workspace-actions { display: flex; align-items: center; gap: 14px; }
.expires { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); font-size: 10px; }
.expires strong { font-size: 15px; }
.secondary-button { background: var(--ink); color: white; padding: 12px 15px; }

.mail-grid { display: grid; grid-template-columns: minmax(320px, .78fr) 1.22fr; border: 2px solid var(--ink); box-shadow: 7px 7px 0 rgba(22,33,29,.9); background: var(--cream); min-height: 610px; }
.inbox-panel { border-right: 2px solid var(--ink); display: flex; min-width: 0; flex-direction: column; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--line); }
.panel-head > div { display: flex; align-items: center; gap: 13px; }
.section-index { display: grid; place-items: center; width: 31px; height: 31px; background: var(--ink); color: white; font: 10px var(--mono); border-radius: 50%; }
.panel-head h2 { font: 25px var(--display); margin: 0; }
.panel-head h2 b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 50%; background: var(--orange); color: white; font: 10px var(--sans); }
.refresh-button { display: flex; gap: 7px; align-items: center; border: 0; font-size: 11px; text-transform: uppercase; }
.refresh-icon { display: inline-block; font-size: 20px; }
.refreshing .refresh-icon { animation: spin .7s linear infinite; }
.message-list { flex: 1; max-height: 550px; overflow-y: auto; }
.message-card { padding: 20px 22px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.message-card:hover, .message-card.active { background: var(--mint); }
.message-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.message-card-from { font-weight: 900; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-card-time { flex: 0 0 auto; color: var(--muted); font: 9px var(--mono); }
.message-card h3 { margin: 9px 0 7px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.message-card p { color: var(--muted); margin: 0; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.message-card-code { display: inline-block; margin-top: 10px; padding: 5px 7px; background: var(--yellow); border: 1px solid var(--ink); font: 10px var(--mono); }
.empty-state { text-align: center; padding: 70px 28px 50px; }
.empty-state h3 { font: 27px var(--display); margin: 20px 0 8px; }
.empty-state p { margin: 0 auto; max-width: 280px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.radar { width: 94px; height: 94px; border: 1px solid var(--ink); border-radius: 50%; margin: 0 auto; display: grid; place-items: center; position: relative; background: var(--cyan); overflow: hidden; }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(22,33,29,.35); }
.radar::before { width: 1px; height: 100%; }
.radar::after { height: 1px; width: 100%; }
.radar i { position: absolute; border: 1px solid rgba(22,33,29,.35); border-radius: 50%; width: 55%; height: 55%; }
.radar i:nth-child(2) { width: 20%; height: 20%; }
.radar span { z-index: 1; animation: float 2s ease-in-out infinite; }
.clear-button { margin: 15px; padding: 10px; color: #a32c18; border-color: rgba(163,44,24,.4); }

.reader-panel { min-width: 0; background: white; position: relative; }
.reader-placeholder { min-height: 610px; padding: 38px; background: radial-gradient(circle at 70% 20%, rgba(255,216,90,.4), transparent 17rem); }
.reader-placeholder .big-arrow { font: 90px var(--display); color: var(--orange); margin: 65px 0 10px 15%; transform: rotate(-8deg); }
.reader-placeholder h2 { font: 44px/1.04 var(--display); letter-spacing: -.045em; margin: 0 0 20px 23%; }
.reader-placeholder p { max-width: 300px; margin-left: 23%; color: var(--muted); line-height: 1.6; font-size: 13px; }
.reader-toolbar { display: flex; justify-content: space-between; padding: 17px 24px; border-bottom: 1px solid var(--line); }
.back-button, .delete-button { border: 0; font-size: 11px; text-transform: uppercase; }
.delete-button { color: #b02c16; }
.reader-header { padding: 30px 34px; border-bottom: 1px solid var(--line); }
.reader-from { color: var(--orange-dark); font-weight: 900; margin: 0 0 10px; }
.reader-header h2 { font: 37px/1.05 var(--display); letter-spacing: -.04em; margin: 0 0 13px; overflow-wrap: anywhere; }
.reader-meta { display: flex; gap: 18px; color: var(--muted); font: 10px var(--mono); }
.otp-box { margin-top: 24px; background: var(--yellow); border: 2px solid var(--ink); padding: 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; box-shadow: 4px 4px 0 var(--ink); }
.otp-box span { font: 9px var(--mono); letter-spacing: .08em; }
.otp-box strong { font: 26px var(--mono); letter-spacing: .15em; text-align: center; }
.otp-box button { background: white; padding: 8px; font-size: 10px; }
.reader-body { padding: 30px 34px; overflow: auto; }
.reader-body pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.75 var(--sans); color: #303a35; }
.reader-body iframe { width: 100%; min-height: 470px; border: 0; background: white; }

.how-it-works { max-width: 1240px; margin: 0 auto; padding: 100px 28px 120px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.section-title h2 { font-size: clamp(48px, 6vw, 78px); }
.steps { border-top: 2px solid var(--ink); }
.steps article { display: grid; grid-template-columns: 52px 180px 1fr; gap: 12px; align-items: baseline; padding: 27px 0; border-bottom: 1px solid var(--ink); }
.steps span { font: 11px var(--mono); color: var(--orange-dark); }
.steps h3 { font: 22px var(--display); margin: 0; }
.steps p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }

footer { border-top: 2px solid var(--ink); background: var(--ink); color: white; padding: 24px max(28px, calc((100vw - 1184px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; }
footer span { font-weight: 900; letter-spacing: .1em; }
footer p { margin: 0; color: rgba(255,255,255,.65); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; background: var(--ink); color: white; border: 2px solid white; box-shadow: 4px 4px 0 var(--orange); padding: 13px 18px; max-width: 330px; font-size: 12px; transform: translateY(140%); transition: transform .25s ease; }
.toast.show { transform: translateY(0); }
.reveal { animation: reveal .65s ease both; }
.delay-1 { animation-delay: .13s; }

@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .45; transform: scale(.82); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-5px) rotate(8deg); } }

@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; padding-top: 60px; gap: 65px; }
    .hero-copy { text-align: center; }
    .lede { margin-left: auto; margin-right: auto; }
    .trust-row { justify-content: center; }
    .creator-card { max-width: 590px; margin: 0 auto; width: 100%; }
    .workspace-head { align-items: flex-start; flex-direction: column; }
    .workspace-actions { width: 100%; justify-content: space-between; }
    .expires { align-items: flex-start; }
    .mail-grid { grid-template-columns: 1fr; }
    .inbox-panel { border-right: 0; border-bottom: 2px solid var(--ink); }
    .message-list { max-height: 390px; }
    .reader-placeholder { min-height: 420px; }
    .how-it-works { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
    .topbar { padding: 13px 16px; min-height: 66px; }
    .live-pill { display: none; }
    .admin-link { font-size: 11px; }
    .hero { padding: 55px 18px 72px; min-height: auto; }
    .hero h1 { font-size: 54px; }
    .lede { font-size: 15px; }
    .trust-row { gap: 10px; font-size: 9px; }
    .creator-card { padding: 26px 20px; box-shadow: 5px 5px 0 var(--ink); transform: none; }
    .card-number { margin-bottom: 30px; }
    .address-builder { display: block; }
    .address-builder input { width: 100%; }
    .at-domain { min-height: 42px; border-left: 0; border-top: 2px solid var(--ink); }
    .mail-workspace { padding: 0 14px; margin-bottom: 70px; }
    .active-address > span { font-size: 28px; }
    .workspace-actions { align-items: flex-end; }
    .mail-grid { min-height: 520px; box-shadow: 4px 4px 0 var(--ink); }
    .panel-head { padding: 17px; }
    .message-card { padding: 17px; }
    .reader-placeholder { padding: 25px; min-height: 390px; }
    .reader-placeholder .big-arrow { margin: 45px 0 5px 0; }
    .reader-placeholder h2, .reader-placeholder p { margin-left: 0; }
    .reader-header { padding: 24px 20px; }
    .reader-header h2 { font-size: 30px; }
    .reader-body { padding: 24px 20px; }
    .otp-box { grid-template-columns: 1fr auto; }
    .otp-box span { grid-column: 1 / -1; }
    .otp-box strong { text-align: left; }
    .how-it-works { padding: 72px 18px; gap: 40px; }
    .steps article { grid-template-columns: 35px 1fr; }
    .steps p { grid-column: 2; }
    footer { flex-direction: column; align-items: flex-start; padding: 24px 18px; }
    .toast { right: 14px; left: 14px; bottom: 14px; max-width: none; }
}

