@import url("https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Oswald:wght@400;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,600;1,6..72,400&display=swap");
:root { --bg:#0d0a10; --panel:#17111c; --ink:#efe7d6; --dim:#a99db3; --gold:#e3b766; --red:#e0473b; --moon:#c9c2ff; --rule:#2c2233; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Newsreader", Georgia, serif; font-size: 18px; line-height: 1.5; }
a { color: var(--gold); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 80px; }
header.mast { text-align: center; padding: 22px 16px 10px; border-bottom: 1px solid var(--rule); background: linear-gradient(#1b1320, var(--bg)); position: sticky; top: 0; z-index: 5; }
.mast .name { font-family: "UnifrakturMaguntia", serif; font-size: clamp(28px, 7vw, 46px); line-height: 1; color: var(--ink); }
.mast .ed { font-family: "Oswald", sans-serif; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin-top: 6px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.chime { color: var(--moon); }
.act { margin: 34px 0 10px; animation: rise .8s ease both; }
.kicker { font-family: "Oswald", sans-serif; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; color: var(--red); }
h1 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: clamp(30px, 8vw, 46px); line-height: 1.02; margin: 6px 0 14px; text-transform: uppercase; }
h2 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .03em; margin: 22px 0 6px; color: var(--gold); }
figure { margin: 16px 0 8px; }
figure img { width: 100%; display: block; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
figure.tall img { max-height: 92vh; object-fit: contain; background: #000; }
figcaption { font-family: "Oswald", sans-serif; font-size: 13px; color: var(--dim); margin-top: 6px; letter-spacing: .02em; }
.past { opacity: .78; border-top: 1px dashed var(--rule); padding-top: 10px; }
.past h1 { font-size: 26px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid figure { margin: 0; }
.polaroid { background: #f3efe4; padding: 8px 8px 30px; transform: rotate(-1deg); border-radius: 2px; }
.polaroid:nth-child(2n) { transform: rotate(1.2deg); }
.polaroid img { box-shadow: none; filter: sepia(.25) contrast(1.05); }
.polaroid figcaption { color: #3b3326; font-family: "Newsreader", serif; font-style: italic; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(13,10,16,.94); border-top: 1px solid var(--rule); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; justify-content: center; z-index: 6; }
button, .btn { font-family: "Oswald", sans-serif; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; border: 1px solid var(--gold); background: transparent; color: var(--gold); padding: 10px 16px; border-radius: 3px; cursor: pointer; }
button.solid { background: var(--gold); color: #1a1208; }
input, textarea, select { width: 100%; font: inherit; background: var(--panel); color: var(--ink); border: 1px solid var(--rule); border-radius: 3px; padding: 10px 12px; margin: 6px 0 12px; }
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: none; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet.on { display: flex; }
.sheet .in { background: var(--panel); width: 100%; max-width: 560px; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); border-radius: 10px 10px 0 0; }
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; background: radial-gradient(ellipse at 50% 30%, #2a1a33, var(--bg) 70%); }
.gate .name { font-family: "UnifrakturMaguntia", serif; font-size: clamp(34px, 9vw, 60px); line-height: 1; }
.gate p { color: var(--dim); max-width: 420px; }
.gate input { max-width: 260px; text-align: center; font-size: 22px; letter-spacing: .3em; }
.msg { color: var(--gold); min-height: 1.5em; font-family: "Oswald", sans-serif; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; margin: 12px 0; }
.moment { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.moment b { font-family: "Oswald", sans-serif; color: var(--red); min-width: 70px; }
.big { font-family: "Oswald", sans-serif; font-size: 52px; line-height: 1; color: var(--moon); }
ul { padding-left: 20px; } li { margin-bottom: 6px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.flicker { animation: flick 6s infinite; }
@keyframes flick { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .4; } 95% { opacity: .9; } 96% { opacity: .3; } }

.grid.one { grid-template-columns: 1fr; }
.grid.one .polaroid { padding: 10px 10px 40px; }
