/* Only the home and year indexes use this stylesheet. Experiments own their CSS. */
@font-face {
  font-family: "GT Maru";
  src: url("fonts/GT-Maru-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "PP Mori";
  src: url("fonts/PPMori-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PP Mori";
  src: url("fonts/PPMori-Semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

@font-face {
  font-family: "GT Maru Emoji";
  src: url("fonts/GT-Maru-Emoji-Color.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #080808;
  --pink: #f3c2d5;
  --yellow: #fff5bd;
  --accent: #e93691;
  --paper: #f8f9fa;
  --muted: #51434a;
  font-family: "PP Mori", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: var(--ink); background: #b6f7e7; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
p { font-size: 1.15rem; line-height: 1.65; margin: 0 0 1.1rem; max-width: 65ch; }
h1, h2, p { overflow-wrap: break-word; }
h1, h2 { margin: 0; text-wrap: balance; }
h1, h2, .brand, .year-number { font-family: "GT Maru", sans-serif; font-weight: 900; }
.wrap { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }

.skip-link { position: absolute; z-index: 10; top: 12px; left: 12px; padding: 12px 18px; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { font-size: 1.75rem; text-decoration: none; letter-spacing: -0.03em; }
.brand span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 32px; }
nav a { font-size: 1rem; font-weight: 600; padding-block: 12px; text-decoration: none; }
nav a:hover, nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); }

.hero { background: var(--pink); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding-block: 70px 76px; }
h1 { font-size: clamp(3rem, 6.9vw, 6rem); line-height: 1.06; letter-spacing: -0.04em; }
.pink-dot { color: var(--accent); }
.hero-copy h1 { margin-bottom: 28px; }
.intro { font-size: 1.3rem; }
.hero-copy p { color: var(--muted); max-width: 46ch; }
.hero-copy p a { color: var(--ink); font-weight: 600; }
.text-link { display: inline-block; font-size: 1.1rem; font-weight: 600; padding-block: 8px; }
.sticker-sheet { position: relative; min-height: 390px; }
.sticker { position: absolute; font-family: "GT Maru Emoji", emoji; font-size: 4.5rem; line-height: 1.2; filter: drop-shadow(2px 4px 1px #0003); user-select: none; }
.sticker-star { top: 0; left: 14%; transform: rotate(-15deg); }
.sticker-eye { top: 9%; right: 8%; transform: rotate(12deg); }
.sticker-flower { top: 36%; left: 4%; transform: rotate(-10deg); font-size: 5.5rem; }
.sticker-web { top: 25%; left: 43%; transform: rotate(12deg); font-size: 6rem; }
.sticker-rainbow { top: 49%; right: 1%; transform: rotate(14deg); font-size: 5.5rem; }
.sticker-snail { bottom: 0; left: 12%; transform: rotate(-8deg); }
.sticker-sparkle { bottom: 23%; left: 37%; transform: rotate(10deg); font-size: 3.5rem; }
.sticker-hand { bottom: 0; right: 13%; transform: rotate(-16deg); font-size: 5.5rem; }

.archive, .prompts-section { background: var(--yellow); padding-block: 52px 64px; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.15; letter-spacing: -0.03em; }
.archive h2 { margin-bottom: 30px; }
.year-link { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 5px solid var(--ink); padding: 40px; text-decoration: none; background: #fbf1a3; }
.year-number { font-size: clamp(5rem, 11vw, 9.5rem); line-height: 1; letter-spacing: -0.04em; }
.year-description { display: grid; gap: 14px; font-size: 1.15rem; line-height: 1.5; }
.year-description strong { font-size: 1.65rem; line-height: 1.2; }
.year-action { margin-top: 8px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.year-action span { display: inline-block; transition: transform 180ms ease-out; }
.year-link:hover .year-action span { transform: translateX(6px); }
.year-link:hover { background: #ffed88; }
.site-footer { border-top: 3px solid var(--ink); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 28px; }
.footer-inner p { margin: 0; font-size: 1rem; }
.footer-inner a { font-weight: 600; }

.year-hero-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-block: 44px 52px; }
.back-link { margin-bottom: 30px; font-size: 1rem; }
.year-heading-label { display: block; font-family: "PP Mori", sans-serif; font-size: 1.7rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.year-hero h1 { font-size: clamp(5rem, 10vw, 9rem); }
.year-intro { padding-top: 35px; }
.year-intro h2 { font-size: 2rem; margin-bottom: 20px; }
.year-intro p { color: var(--muted); }
.year-intro p:last-child { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.section-heading a { font-weight: 600; }
.prompt-note { margin-block: 18px 28px; }
.prompts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 3px solid var(--ink); gap: 2px; background: var(--ink); }
.prompts li { min-width: 0; background: var(--yellow); }
.prompts li:last-child { grid-column: 1 / -1; }
.prompt { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding: 24px; height: 100%; align-content: center; text-decoration: none; }
.day { grid-row: span 2; font-size: 1.8rem; line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.prompt-name { font-size: 1.25rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.status { font-size: .875rem; color: var(--muted); margin-top: 4px; line-height: 1.4; }
a.prompt { background: #b6f7e7; }
a.prompt .status { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a.prompt:hover { background: #cdfabf; }
a.prompt:focus-visible { position: relative; z-index: 1; outline-offset: -6px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1.35fr 1fr; }
  .sticker { font-size: 3.5rem; }
  .sticker-web, .sticker-flower, .sticker-rainbow, .sticker-hand { font-size: 4rem; }
  .prompts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-hero-inner { gap: 32px; }
  .year-link { gap: 24px; padding: 30px; }
}

@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { flex-wrap: wrap; gap: 0; padding-block: 14px 8px; }
  .brand { font-size: 1.4rem; }
  nav { width: 100%; justify-content: space-between; gap: 20px; }
  nav a { font-size: .9rem; }
  .hero-inner { display: block; padding-block: 38px 32px; }
  .hero-copy h1 { margin-bottom: 24px; }
  .intro { font-size: 1.15rem; }
  p { font-size: 1.05rem; }
  .sticker-sheet { min-height: 190px; margin-top: 28px; }
  .sticker-eye { right: 4%; top: 3%; }
  .sticker-star { left: 3%; }
  .sticker-web { left: 38%; top: 2%; }
  .sticker-flower { left: 24%; top: 45%; }
  .sticker-rainbow { right: 0; top: 53%; }
  .sticker-snail { left: 0; bottom: 0; }
  .sticker-sparkle { left: 61%; bottom: 45%; font-size: 2.5rem; }
  .sticker-hand { right: 24%; bottom: 0; }
  .archive, .prompts-section { padding-block: 34px 40px; }
  .archive h2 { margin-bottom: 24px; }
  .year-link { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .year-number { font-size: clamp(4.5rem, 20vw, 7rem); }
  .year-description { font-size: 1.05rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; padding-block: 24px; }
  .year-hero-inner { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 36px; }
  .back-link { margin-bottom: 24px; }
  .year-hero h1 { font-size: 5.5rem; }
  .year-heading-label { font-size: 1.4rem; }
  .year-intro { padding-top: 0; }
  .year-intro h2 { font-size: 1.65rem; margin-bottom: 14px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .prompts { grid-template-columns: 1fr; }
  .prompt { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 20px 16px; align-items: center; gap: 10px; }
  .day { grid-row: auto; font-size: 1.5rem; }
  .prompt-name { font-size: 1.1rem; }
  .status { margin: 0; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .year-link:hover .year-action span { transform: none; }
}
