/* Purdy: a night-sky page, the paper scenes do the talking. DM Serif Display for names, the system face for reading. */
@font-face {
  font-family: "DM Serif Display";
  src: url("/fonts/dm_serif_display.ttf") format("truetype");
  font-display: swap;
}
:root {
  --night: #0e1020;
  --night-2: #171a31;
  --ink: #eceaf6;
  --muted: #a9a9c6;
  --lantern: #f2b8c6;
  --rule: #2a2d4a;
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--lantern); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; border-radius: 3px; }
.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; }

/* hero: the snowy village at night */
.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: flex-end;
  background: var(--night) url("/img/hero.webp") center 35% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,16,32,0.55) 0%, rgba(14,16,32,0) 30%, rgba(14,16,32,0.35) 60%, var(--night) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-block: 3rem 4rem; display: flex; flex-direction: column; gap: 1rem; }
.wordmark { font-size: clamp(4.5rem, 16vw, 9rem); text-shadow: 0 4px 30px rgba(0,0,0,0.45); }
.tagline { font-family: var(--display); font-size: clamp(1.5rem, 4.2vw, 2.4rem); line-height: 1.15; margin: 0; max-width: 22ch; text-shadow: 0 2px 16px rgba(0,0,0,0.5); }
.lede { margin: 0; max-width: 36rem; color: var(--ink); opacity: 0.92; }
.store {
  display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start;
  margin-top: 0.5rem; padding: 0.8rem 1.3rem; border-radius: 999px;
  background: var(--ink); color: var(--night); font-weight: 600; text-decoration: none;
}
.store small { font-weight: 400; opacity: 0.75; }

section { padding-block: 4.5rem; }
.section-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 5vw, 3rem); }
.section-head p { margin: 0; color: var(--muted); }

/* the scenes, as phones show them */
.scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}
@media (min-width: 40rem) { .scenes { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 1.5rem 1.25rem; } }
.scene { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.scene img { aspect-ratio: 540 / 1084; width: 100%; object-fit: cover; border-radius: 1.4rem; background: var(--night-2); box-shadow: 0 18px 40px rgba(0,0,0,0.45); }
.scene figcaption { font-family: var(--display); font-size: 1.15rem; line-height: 1.2; }
.scene figcaption span { display: block; font-family: var(--body); font-size: 0.85rem; color: var(--muted); }
.more { margin: 1.5rem 0 0; color: var(--muted); }

/* how it behaves */
.band { background: var(--night-2); border-block: 1px solid var(--rule); }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 2.5rem; }
.point { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.point h3 { font-size: 1.5rem; }
.point p { margin: 0; color: var(--muted); }
.clock { font-variant-numeric: tabular-nums; color: var(--lantern); letter-spacing: 0.04em; font-size: 0.8rem; text-transform: uppercase; }

/* price */
.price { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: baseline; }
.price .free, .price .unlock { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; flex: 1 1 16rem; }
.price h3 { font-size: 1.9rem; }
.price p { margin: 0; color: var(--muted); }

footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; color: var(--muted); font-size: 0.95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; justify-content: space-between; align-items: baseline; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; }
.mail { user-select: all; }

/* privacy page */
.doc { max-width: 40rem; padding-block: 3.5rem 4rem; display: flex; flex-direction: column; gap: 2rem; }
.doc header { display: flex; flex-direction: column; gap: 0.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
.doc .home { font-family: var(--display); font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.doc h1 { font-size: clamp(2.3rem, 7vw, 3.2rem); }
.doc h2 { font-size: 1.55rem; }
.doc section { padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.doc p, .doc ul { margin: 0; }
.doc ul { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.doc .date { color: var(--muted); font-size: 0.95rem; }
.doc .summary { background: var(--night-2); border: 1px solid var(--rule); border-radius: 12px; padding: 1.1rem 1.3rem; font-size: 1.1rem; }

@media (prefers-reduced-motion: no-preference) {
  .scene img { transition: transform 0.4s ease; }
  .scene:hover img { transform: translateY(-4px); }
}
