@charset "UTF-8";

@font-face {
  font-family: "Magilio";
  src: url("fonts/magilio-slant.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Futura Napele";
  src: url("fonts/futura-light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Futura Napele";
  src: url("fonts/futura-book.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Futura Napele";
  src: url("fonts/futura-book-oblique.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Futura Napele";
  src: url("fonts/futura-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Futura Napele";
  src: url("fonts/futura-heavy.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #e8e2df;
  --cocoa: #271e16;
  --blush: #e6ad9e;
  --butter: #f3ffa9;
  --acid: #e4ff33;
  --red: #fc0d0d;
  --paper: #fffdfa;
  --muted: #6e625a;
  --line: rgba(39, 30, 22, 0.22);
  --display: "Magilio", Georgia, serif;
  --body: "Futura Napele", Futura, "Century Gothic", Arial, sans-serif;
  font-family: var(--body);
  font-size: 16px;
  color: var(--cocoa);
  background: var(--cocoa);
}

* { box-sizing: border-box; }

html { background: var(--cocoa); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  background:
    linear-gradient(90deg, var(--cocoa) 0 8px, transparent 8px calc(100% - 8px), var(--cocoa) calc(100% - 8px)),
    var(--cream);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

h1, h2, p { margin: 0; }

main {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: auto;
  overflow: clip;
  background: var(--cream);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.25);
}

main:focus { outline: none; }

.screen {
  padding: 28px 22px 142px;
  animation: enter 180ms ease-out;
}

.home-screen { padding-bottom: 34px; }

.app-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 20px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  background: var(--cocoa);
  border-bottom: 5px solid var(--acid);
}

.wordmark {
  width: 48px;
  height: 48px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background: var(--blush);
}

.wordmark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bar-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark + .bar-label {
  text-align: right;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
}

.back {
  display: grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  margin-left: -8px;
  color: var(--cocoa);
  background: var(--acid);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 1.875rem;
  line-height: 1;
}

.back span { margin-top: -3px; }

.bar-counter {
  padding: 6px 9px;
  color: var(--cocoa);
  background: var(--blush);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  font-size: 0.875rem;
}

.week-heading { margin-bottom: 25px; }

.week-heading h1 {
  margin: 8px 0 14px;
  font: italic 3.25rem/0.92 var(--display);
  letter-spacing: -0.025em;
}

.week-heading h1 span {
  display: block;
  margin-top: 10px;
  font: 700 1.2rem/1.2 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.campaign {
  min-height: 178px;
  margin-bottom: 27px;
  padding: 18px 19px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  color: white;
  background: var(--cocoa);
  border-radius: 0 34px 0 34px;
  box-shadow: 8px 8px 0 var(--blush);
}

.campaign-logo {
  width: 84px;
  height: 132px;
  flex: none;
  object-fit: contain;
}

.campaign-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.campaign .eyebrow {
  margin-bottom: 8px;
  color: var(--acid);
}

.campaign strong {
  max-width: 190px;
  font: italic 2rem/0.98 var(--display);
  overflow-wrap: anywhere;
}

.campaign-count {
  margin-top: 14px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.day-menu { display: grid; gap: 15px; }

.day-item {
  position: relative;
  min-height: 124px;
  padding: 18px 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--cocoa);
  border-radius: 3px 20px 3px 20px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.day-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: var(--blush);
}

.day-item:nth-child(3n + 2)::before { background: var(--butter); }
.day-item:nth-child(3n)::before { background: var(--acid); }

.day-item:active,
.story-item:active { transform: translate(3px, 3px); }

.day-item.is-today {
  background: var(--blush);
  box-shadow: 6px 6px 0 var(--cocoa);
}

.day-item.is-today::before { background: var(--acid); }

.date-tile {
  width: 58px;
  min-width: 58px;
  height: 73px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--cocoa);
}

.date-tile strong {
  font: italic 2.65rem/0.9 var(--display);
  letter-spacing: -0.04em;
}

.date-tile > span {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.day-meta,
.item-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.is-today .day-meta,
.is-today .item-meta { color: rgba(39, 30, 22, 0.72); }

.today-tag {
  margin-left: 5px;
  padding: 3px 6px;
  color: var(--cocoa);
  background: var(--acid);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.day-info > strong {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.day-item > span:last-child,
.story-item > span:last-child,
.summary-link > span:last-child {
  color: var(--cocoa);
  font: italic 2rem/1 var(--display);
}

.week-end {
  margin-top: 32px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

.day-heading { margin: 0 0 27px; }

.day-heading h1 {
  margin: 8px 0 13px;
  font: italic 2.6rem/1.02 var(--display);
  letter-spacing: -0.02em;
}

.story-menu { display: grid; gap: 12px; }

.story-item {
  min-height: 96px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--cocoa);
  border-radius: 2px 16px 2px 16px;
  transition: transform 150ms ease;
}

.story-item:nth-child(even) { background: var(--butter); }

.story-tile {
  width: 47px;
  min-width: 47px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--cocoa);
  background: var(--blush);
  font: italic 1.8rem/1 var(--display);
}

.story-info {
  min-width: 0;
  flex: 1;
}

.story-info strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-info > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.summary-link {
  margin-top: 22px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--blush);
  border: 1px solid var(--cocoa);
  border-radius: 2px 18px 2px 18px;
}

.summary-link strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 800;
}

.summary-link > span > span {
  display: block;
  margin-top: 3px;
  font-size: 0.875rem;
}

.bottom-actions {
  position: fixed;
  z-index: 12;
  bottom: 0;
  left: 50%;
  width: 100%;
  max-width: 480px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  transform: translateX(-50%);
  background: var(--cocoa);
}

.bottom-actions.single { grid-template-columns: 1fr; }

.bottom-actions a {
  min-height: 54px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 2px 14px 2px 14px;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}

.primary {
  color: var(--cocoa);
  background: var(--acid);
}

.secondary {
  color: white;
  background: transparent;
  border: 1px solid var(--blush);
}

.sequence-progress {
  padding: 2px 18px 0;
  display: flex;
  gap: 5px;
  background: var(--cocoa);
}

.sequence-progress a {
  min-width: 0;
  height: 42px;
  flex: 1;
  display: flex;
  align-items: center;
}

.sequence-progress span {
  display: block;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.sequence-progress .before span { background: var(--blush); }

.sequence-progress .active span {
  height: 6px;
  background: var(--acid);
}

.reader-screen { padding-top: 18px; }

.reader-title { margin-bottom: 26px; }

.reader-title .eyebrow {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: none;
}

.reader-title h1 {
  margin-top: 8px;
  font: italic 2.65rem/1 var(--display);
}

.reader-title h1 span { color: var(--red); }

.story-content { display: grid; gap: 16px; }

.field {
  padding: 21px 20px;
  background: var(--paper);
  border: 1px solid var(--cocoa);
  border-radius: 2px 18px 2px 18px;
}

.field h2 {
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.field p {
  font-size: 1rem;
  line-height: 1.62;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.how-to { background: var(--butter); }
.speech { background: var(--blush); }
.screen-text { background: var(--paper); box-shadow: inset 7px 0 0 var(--red); }
.screen-text p { font-size: 1.125rem; font-weight: 700; }
.sticker { background: var(--acid); }

.summary-section {
  margin-bottom: 18px;
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--cocoa);
  border-radius: 2px 18px 2px 18px;
}

.summary-section:nth-of-type(2) { background: var(--butter); }

.summary-section h2 {
  margin-bottom: 15px;
  font: italic 1.75rem/1.05 var(--display);
}

.summary-section p {
  margin-top: 15px;
  font-size: 1rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.summary-section ul {
  margin: 0;
  padding-left: 21px;
  display: grid;
  gap: 10px;
  font-size: 1rem;
}

.summary-section .focus {
  color: var(--red);
  font-size: 0.875rem;
}

.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 30;
  padding: 12px;
  background: var(--acid);
}

.skip:focus { top: 15px; }

.noscript {
  max-width: 480px;
  margin: auto;
  padding: 30px;
  background: var(--paper);
}

@keyframes enter {
  from { opacity: 0.4; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 520px) {
  body { padding: 24px 0; }
  main { min-height: calc(100dvh - 48px); }
  .bottom-actions { bottom: 24px; }
}

@media (max-width: 350px) {
  .screen { padding-right: 15px; padding-left: 15px; }
  .week-heading h1 { font-size: 2.8rem; }
  .campaign { gap: 14px; padding-right: 14px; padding-left: 14px; }
  .campaign-logo { width: 70px; height: 112px; }
  .campaign strong { font-size: 1.65rem; }
  .day-item { gap: 10px; padding-right: 11px; padding-left: 11px; }
  .date-tile { width: 49px; min-width: 49px; }
  .day-info > strong { font-size: 0.875rem; }
  .bar-label { font-size: 0.75rem; }
  .bottom-actions { padding-right: 15px; padding-left: 15px; }
  .bottom-actions a { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .day-item, .story-item { transition: none; }
}
