/* Hallmark · shape: one day, morning to night · genre: playful · theme: custom (the app's own brand) · job: try · idea: "the page is one day, 08:10 to 20:45, every picture a real frame the app made with its own time stamp" · vibe: "sticker diary, cream grid paper, bold time"
 * paper: oklch(97% 0.008 91) · accent: oklch(56.5% 0.239 272) · display: Mitr 600 · body: Mitr 300 · outlier: Unbounded 700, the app's Wide time face · hero: head left, the 08:10 and 10:35 frames stacked as tilted stickers right · nav: wordmark left, two text links and the store pill right, no rule · footer: wordmark over links, then photo credits · imagery: the product (simulator captures of the real app, library photographs as its sample clips) · signature: the 08:10 frame with the app's own big Wide time stamp
 * axes: light/rounded-sans/chromatic-blue · posture: sticker (ink outlines with hard offset shadows; one ink band, one butter band as surfaces, cobalt only on the store pill and links) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: P, a product page argues little; the argument is that a day only needs its times, so the times carry every section instead of feature copy */
/* Hallmark · waive 47c · the cream grid paper at 28px under every section · it is the app's own ground, the same grid its home screen sits on, so the page and the screenshots share one surface */
/* Hallmark · waive 79 · the 08:10 frame runs to y 825 at 1440x900 · the gap measured sits only under the text column, the tilted frames fill the hero foot beside it */
/* Hallmark · answered F19 · 700 is Unbounded, a second family set only on the time stamps; Mitr itself runs 300, 400 and 600 */
@import url("./tokens.css");
@import url("./base.css");

/* Ground: the app's grid paper */
body {
  background-color: var(--color-paper);
  background-image:
    linear-gradient(var(--color-rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-rule) 1px, transparent 1px);
  background-size: 28px 28px;
  font-weight: 300;
  font-size: 1.0625rem;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 2px solid var(--color-ink);
  box-shadow: 0 3px 0 var(--color-ink);
  transform: rotate(-6deg);
}
.wordmark b { font-weight: inherit; }
.wordmark span { color: var(--color-accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.nav-links a {
  color: var(--color-ink-2);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--color-ink); text-decoration: underline; }
.nav-links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 4px; }

/* The App Store pill: not a link yet, the app is not live */
.store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding-inline: var(--space-lg);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-on-ink);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--color-accent);
}
.store svg { width: 18px; height: 18px; }
.store-big { min-height: 56px; font-size: 1.125rem; padding-inline: var(--space-xl); }
.nav .store { min-height: 44px; font-size: 0.9375rem; padding-inline: var(--space-md); }

/* Sticker frames for screens and vlog frames */
.shot {
  margin: 0;
  border: var(--stroke) solid var(--color-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-paper-2);
  box-shadow: 0 var(--lift) 0 var(--color-ink);
}
.shot img { width: 100%; height: auto; }
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(5deg); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  align-items: center;
  min-height: min(760px, calc(100svh - 96px));
  padding-block: var(--space-xl) var(--space-3xl);
}
.hero-text { grid-column: 1 / span 6; display: grid; gap: var(--space-lg); justify-items: start; }
.hero h1 {
  font-size: clamp(3.25rem, 7vw + 0.5rem, 7.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-ink);
}
.lede { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 30ch; }
.hero-frames {
  grid-column: 7 / span 6;
  position: relative;
  height: min(700px, 76svh);
}
.hero-frames .shot { position: absolute; width: min(300px, 46%); }
.hero-frames .back { left: 2%; top: 0; }
.hero-frames .front { right: 4%; bottom: 0; width: min(340px, 52%); }

/* Sections */
.section { padding-block: var(--section-gap-s); }
.section-head { display: grid; gap: var(--space-md); }
.section h2 {
  font-size: var(--text-section);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
  max-width: 18ch;
}
.section p.copy { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 34ch; }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap-columns);
  align-items: center;
}

/* The day: home screen + the six times set large */
.day .shot { grid-column: 1 / span 4; }
.day .section-head { grid-column: 6 / span 7; }
.times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: var(--space-xs) var(--space-xl);
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-outlier);
  font-weight: 700;
  font-size: clamp(2rem, 3.2vw + 0.5rem, 3.5rem);
  line-height: 1.15;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}

/* The ink band: watch before you join */
.band-ink {
  background: var(--color-ink);
  color: var(--color-on-ink);
  border-block: var(--stroke) solid var(--color-ink);
}
.band-ink .section { padding-block: var(--section-gap); }
.band-ink h2 { color: var(--color-on-ink); }
.band-ink p.copy { color: var(--color-on-ink-2); }
.band-ink .shot { box-shadow: 0 var(--lift) 0 var(--color-accent); border-color: var(--color-on-ink); }
.watch .section-head { grid-column: 1 / span 6; }
.watch .shot { grid-column: 8 / span 4; }

/* Time styles: the editor and what it made */
.styles .section-head { grid-column: 1 / span 12; margin-bottom: var(--space-2xl); }
.styles .pair { grid-column: 1 / span 12; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: end; }
.styles .editor { grid-column: 2 / span 4; }
.styles .made { grid-column: 7 / span 4; transform: rotate(3deg); }
.styles figcaption {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  color: var(--color-ink-2);
  border-top: var(--stroke) solid var(--color-ink);
}

/* Share and reminders, set against each other */
.share .shot { grid-column: 1 / span 4; }
.share .section-head { grid-column: 6 / span 6; }
.remind .section-head { grid-column: 1 / span 6; }
.remind .shot { grid-column: 8 / span 4; transform: rotate(-3deg); }

/* Plus: the butter band */
.band-butter {
  background: var(--color-butter);
  border-block: var(--stroke) solid var(--color-ink);
}
.band-butter .section { padding-block: var(--section-gap); }
.plus { align-items: start; }
.plus .price { grid-column: 1 / span 5; display: grid; gap: var(--space-md); }
.plus h2 { max-width: none; }
.price-figure {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(5rem, 10vw, 9rem);
  line-height: 1;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.price-figure small { font-size: 0.28em; font-weight: 400; }
.perks {
  grid-column: 7 / span 6;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-sm);
}
.perks li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-paper-2);
  border: var(--stroke) solid var(--color-ink);
  border-radius: var(--radius-chip);
  box-shadow: 0 4px 0 var(--color-ink);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-ink);
}
.perks svg { width: 22px; height: 22px; flex: none; color: var(--color-accent); }
.plus .fine { font-size: var(--text-md); color: var(--color-ink); max-width: 34ch; }

/* Close: the last frame of the day and the store again */
.close { padding-block: var(--section-gap) var(--section-gap-s); }
.close .shot { grid-column: 2 / span 4; transform: rotate(-3deg); }
.close .section-head { grid-column: 7 / span 6; gap: var(--space-lg); justify-items: start; }
.close a.text-link {
  color: var(--color-accent);
  font-weight: 400;
  text-decoration: underline;
}
.close a.text-link:hover { color: var(--color-focus); }
.close a.text-link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }

/* Footer */
.footer {
  border-top: var(--stroke) solid var(--color-ink);
  background: var(--color-paper-2);
}
.footer-inner {
  display: grid;
  gap: var(--space-lg);
  padding-block: var(--space-2xl);
}
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); }
.footer-links a { color: var(--color-ink); font-weight: 400; text-decoration: none; white-space: nowrap; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a:focus-visible, .credits a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.credits, .copyright { font-size: var(--text-sm); color: var(--color-ink-2); max-width: 75ch; }
.credits a { color: var(--color-ink-2); }

/* Pressed links dim for the moment they are held */
.nav-links a:active, .footer-links a:active, .credits a:active, .close a.text-link:active, .wordmark:active { opacity: 0.7; }

/* Tablet and phone: everything stacks, frames shrink and stay tilted */
@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-lg) var(--space-2xl); }
  .hero-text, .hero-frames,
  .day .shot, .day .section-head,
  .watch .section-head, .watch .shot,
  .styles .editor, .styles .made,
  .share .shot, .share .section-head,
  .remind .section-head, .remind .shot,
  .plus .price, .perks,
  .close .shot, .close .section-head { grid-column: 1 / -1; }
  .hero-frames { height: 520px; }
  .day .shot, .watch .shot, .share .shot, .remind .shot, .close .shot,
  .styles .editor, .styles .made { width: min(320px, 80%); justify-self: center; }
  .split { row-gap: var(--space-2xl); }
  .share .section-head, .day .section-head { order: -1; }
  .styles .pair { row-gap: var(--space-2xl); }
  .nav-links a { display: none; }
}
@media (max-width: 40rem) {
  .hero-frames { height: 440px; }
  .hero-frames .shot { width: 52%; }
  .hero-frames .front { right: 2%; width: 56%; }
  .times { grid-template-columns: repeat(2, minmax(0, max-content)); }
  .nav .store { display: none; }
}
