@font-face { font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/kalam-700.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/space-grotesk-400.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/space-grotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/space-grotesk-700.woff2) format("woff2"); }

:root {
  --paper: #fffcf5;
  --ink: #17140f;
  --line: #17140f;
  --green: #1f8f4e;
  --red: #c23b2f;
  --hand: "Kalam", cursive;
  --body: "Space Grotesk", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); overflow-x: hidden; }
a { color: inherit; }

#nav {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  padding: 18px 16px; border-bottom: 2px solid var(--line);
  font-size: 14px; letter-spacing: .02em;
}
#nav a { text-decoration: underline; text-underline-offset: 3px; }
#nav span { opacity: .4; }

.hero { max-width: 620px; margin: 0 auto; padding: 64px 20px 40px; text-align: center; }
.hat { font-size: 34px; margin: 0 0 -6px; }
.hero h1 {
  font-family: var(--hand); font-weight: 700; font-size: clamp(56px, 14vw, 108px);
  margin: 0; line-height: 1;
}
.intro { margin: 22px 0 0; font-size: 17px; line-height: 1.6; }
.lines { margin: 20px 0 0; font-size: 15px; line-height: 1.8; opacity: .82; }
.tag { margin: 22px 0 0; font-size: 14px; font-style: italic; opacity: .65; }

#reveal {
  margin: 28px auto 0; display: block; padding: 12px 26px;
  background: var(--paper); border: 2px solid var(--line); border-radius: 10px;
  font-family: var(--body); font-weight: 500; font-size: 15px; cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .15s ease, box-shadow .15s ease;
}
#reveal:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
#reveal:active { transform: translate(0, 0); box-shadow: 1px 1px 0 var(--ink); }

#portrait { margin: 30px auto 0; max-width: 260px; }
#portrait img { width: 100%; height: auto; display: block; }
#portrait[hidden] { display: none; }

.note { max-width: 560px; margin: 20px auto 70px; padding: 0 20px; }
.note-card {
  border: 2px solid var(--line); border-radius: 4px; padding: 30px 26px 24px;
  background:
    repeating-linear-gradient(to bottom, transparent, transparent 27px, #17140f16 28px),
    var(--paper);
  box-shadow: 6px 6px 0 var(--ink);
}
.note-card h2 { font-family: var(--hand); font-weight: 700; font-size: 24px; margin: 0 0 12px; }
.note-card h2 + ul { margin-top: 0; }
.note-card ul + h2 { margin-top: 26px; }
.note-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note-card li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.note-card li::before { content: "\2715"; color: var(--red); font-weight: 700; flex: none; }
.note-card .yes li::before { content: "\2713"; color: var(--green); }

.triptych { max-width: 760px; margin: 0 auto 60px; padding: 0 20px; text-align: center; }
.triptych h2 { font-family: var(--hand); font-weight: 700; font-size: 30px; margin: 0 0 30px; }
.frames { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.frames figure { margin: 0; width: 190px; background: var(--paper); border: 2px solid var(--line); padding: 10px 10px 14px; box-shadow: 5px 5px 0 var(--ink); }
.frames img { width: 100%; height: 170px; object-fit: contain; display: block; background: #f3efe4; }
.frames figcaption { margin-top: 10px; font-family: var(--hand); font-weight: 700; font-size: 16px; }

#rail { border-top: 2px solid var(--line); padding: 30px 20px 40px; text-align: center; }
#rail .made { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 17px; }
#rail .sub { margin: 4px 0 0; font-size: 12px; opacity: .55; }
#rail .stars { margin: 12px 0 0; letter-spacing: 6px; color: #d8b13a; font-size: 15px; }
#rail .links { margin: 20px 0 0; display: flex; justify-content: center; gap: 18px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
#rail .links a, #rail .links button { border: 0; background: none; padding: 4px 2px; color: var(--ink); opacity: .55; font: inherit; letter-spacing: inherit; text-decoration: none; cursor: pointer; transition: opacity .2s ease; }
#rail .links a:hover, #rail .links button:hover { opacity: 1; }

@media (max-width: 480px) {
  .frames { gap: 16px; }
  .frames figure { width: calc(50% - 8px); min-width: 0; }
}
