/* The home page's own parts. Tokens come from site.css. */

/* ----- Hero ----- */
.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 5rem) clamp(3rem, 1.5rem + 4vw, 5rem); }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
}
.hero-text { display: grid; gap: 1.4rem; min-width: 0; }
.hero h1 { display: grid; gap: .55rem; }
.hero .word {
  font-family: var(--display);
  font-size: clamp(3.6rem, 1.6rem + 8.4vw, 7.6rem);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hero .word::first-letter { color: var(--orn); }
.hero .tag { font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); line-height: 1.15; color: var(--faded); }
.hero .lede { max-width: 31rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; }
.name-note { font-size: 1.02rem; }

/* ----- The specimen phone: the day page drawn in HTML from the app's own pieces ----- */
.specimen { margin: 0; display: flex; justify-content: center; min-width: 0; }
.phone {
  --pw: min(100%, 340px);
  width: var(--pw);
  aspect-ratio: 393 / 852;
  border-radius: 48px;
  padding: 11px;
  background: #1E1312;
  box-shadow:
    0 0 0 1px rgba(255,235,200,.12) inset,
    0 30px 60px -30px color-mix(in srgb, var(--ink) 55%, transparent),
    0 12px 24px -12px color-mix(in srgb, var(--ink) 35%, transparent);
  container-type: inline-size;
  transform: rotate(1.2deg);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--paper);
  background-image: url("/assets/paper-grain.png");
  background-size: 160px;
  display: flex; flex-direction: column;
  padding: 11cqw 4.4cqw 0;
  font-size: 4.3cqw;
  line-height: 1.4;
}
.screen::before { /* the island */
  content: ""; position: absolute; top: 3.2cqw; left: 50%; translate: -50% 0;
  width: 30cqw; height: 8.6cqw; border-radius: 99px; background: #0b0807;
}
.band.small { height: 9.4cqw; --band: 9.4cqw; }
.divider.small { height: 7.5cqw; max-width: none; margin-top: 1.5cqw; }
.foot.small { height: 5.4cqw; }
.s-tabs { display: flex; gap: 3.6cqw; margin-top: 2.4cqw; font-size: 3.9cqw; color: var(--faded); }
.s-tabs .on { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orn); text-underline-offset: .35em; }
.s-date { display: flex; align-items: baseline; gap: 2.6cqw; margin-top: 2.6cqw; }
.s-date .d { font-family: var(--display); font-size: 8.8cqw; line-height: 1.1; }
.s-date .chev { color: var(--faded); font-size: 6cqw; }
.s-feast { font-style: italic; color: var(--rubric); font-size: 3.9cqw; margin-left: 5.6cqw; }
.s-events { list-style: none; margin: 3.4cqw 0 0; padding: 0; display: grid; gap: .6cqw; }
.s-events li { color: var(--rubric); }
.s-events .t { display: inline-block; min-width: 10cqw; font-variant-numeric: tabular-nums; }
.s-events li + li { color: var(--ink); }
.s-events li + li .t { color: var(--faded); }
.s-dot { height: 1px; margin: 3.6cqw 8cqw 0; background: var(--rule); position: relative; }
.s-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1.4cqw; height: 1.4cqw; background: var(--orn); transform: translate(-50%, -50%) rotate(45deg); }
.s-points { list-style: none; margin: 3.4cqw 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); }
.s-points li { display: grid; justify-items: center; gap: .6cqw; font-size: 2.05cqw; color: var(--faded); }
.s-points .mark { width: 7.4cqw; height: 7.4cqw; background: var(--faded); opacity: .72; }
.s-points .tended { color: var(--ink); }
.s-points .tended .mark { background: var(--orn); opacity: 1; }
.s-hint { margin-top: 2.4cqw; font-size: 3.3cqw; color: var(--faded); }
.s-head { font-family: var(--display); font-size: 5.6cqw; margin-top: 2.8cqw; }
.s-prose { margin-top: 1cqw; }
.s-todos { list-style: none; margin: 2.4cqw 0 0; padding: 0; display: grid; gap: 1.2cqw; }
.s-todos li { display: flex; align-items: center; gap: 2.6cqw; }
.box { flex: none; width: 1em; height: 1em; border: 1.5px solid currentColor; border-radius: 1px; position: relative; display: inline-block; }
.s-todos .box { width: 4.4cqw; height: 4.4cqw; color: var(--faded); }
.s-todos .done { color: var(--faded); text-decoration: line-through; text-decoration-color: var(--faded); }
.s-todos .done .box::after {
  content: ""; position: absolute; left: 22%; top: -18%; width: 38%; height: 80%;
  border: solid var(--ink); border-width: 0 1.6px 1.6px 0; transform: rotate(40deg);
}
.s-note { margin-top: 1.6cqw; display: flex; gap: 2.6cqw; }
.s-note .bang { color: var(--orn); width: 4.4cqw; text-align: center; }
.s-fill { flex: 1; min-height: 2cqw; }
.s-bar { display: grid; grid-template-columns: repeat(4, 1fr); padding: 2.2cqw 0 7cqw; font-size: 3cqw; color: var(--faded); }
.s-bar span { display: grid; justify-items: center; gap: .8cqw; }
.s-bar .mark, .s-bar .star { width: 7cqw; height: 7cqw; background: var(--faded); }
.s-bar .star { background: none; fill: var(--faded); }
.s-bar .on { color: var(--ink); }
.s-bar .on .mark { background: var(--orn); }

/* ----- Two-column sections ----- */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.two > * { min-width: 0; }
.flip { align-items: center; }

/* The four kinds of line, written on ruled paper. */
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.lines li { padding-block: 1.25rem 1.3rem; border-top: 1px solid var(--rule); display: grid; gap: .45rem; }
.lines li:last-child { border-bottom: 1px solid var(--rule); }
.line { font-size: 1.4rem; display: flex; align-items: baseline; gap: .7rem; }
.line .box { color: var(--faded); width: .78em; height: .78em; translate: 0 .08em; }
.line .bang { color: var(--orn); font-size: 1.1em; width: .78em; text-align: center; }
.line .t { font-variant-numeric: tabular-nums; }
.line.prose { font-style: italic; }
.what { color: var(--faded); font-size: 1.05rem; }
.what b { font-weight: 400; color: var(--ink); font-family: var(--caps); letter-spacing: .02em; }

/* ----- The rose ----- */
.rose { container-type: inline-size; position: relative; width: min(100%, 30rem); aspect-ratio: 1; margin-inline: auto; }
.rose-ring {
  position: absolute; inset: 20%;
  border-radius: 50%;
  border: 1px solid var(--rule);
  box-shadow: 0 0 0 10px var(--paper), 0 0 0 11px var(--rule);
}
.rose-ring::before, .rose-ring::after {
  content: ""; position: absolute; left: 50%; top: -8%; bottom: -8%; width: 1px; background: var(--rule);
}
.rose-ring::after { transform: rotate(90deg); }
.rose ul { list-style: none; margin: 0; padding: 0; }
.rose li {
  position: absolute; left: 50%; top: 50%;
  width: 22%;
  display: grid; justify-items: center; gap: .25rem;
  transform: translate(-50%, -50%) rotate(calc(var(--a) * 45deg)) translateY(-39cqw) rotate(calc(var(--a) * -45deg));
  font-family: var(--caps); font-size: clamp(.85rem, .7rem + .5vw, 1.05rem); letter-spacing: .03em;
}
.rose li .mark { width: 62%; aspect-ratio: 1; background: var(--ink); }
.rose li:nth-child(1) .mark, .rose li:nth-child(4) .mark { background: var(--orn); }
.star { display: block; fill: var(--orn); }
.rose-heart { position: absolute; left: 50%; top: 50%; width: 17%; transform: translate(-50%, -50%); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.6rem; margin: .6rem 0 .3rem; }
.points dt { font-family: var(--caps); font-size: 1.15rem; letter-spacing: .02em; }
.points dd { margin: 0; color: var(--faded); font-size: 1rem; line-height: 1.35; }

/* ----- Never ----- */
.never { padding-block: clamp(1rem, .5rem + 2vw, 2rem); }
.never-card {
  max-width: 46rem; margin-inline: auto; text-align: center;
  display: grid; gap: 1rem; justify-items: center;
  padding: clamp(2rem, 1rem + 4vw, 3.5rem) clamp(1.2rem, .5rem + 4vw, 3.5rem);
  background: var(--paper2);
  border: 1px solid var(--rule);
  outline: 1px solid var(--rule); outline-offset: 5px;
}
.never-line { font-family: var(--display); font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.3rem); line-height: 1.2; text-wrap: balance; }

/* ----- The hours ----- */
.hour-row { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.hour-row li { padding: .4rem clamp(1rem, .5rem + 2vw, 2.2rem) .6rem; display: grid; gap: .6rem; align-content: start; text-align: center; }
.hour-row li + li { border-left: 1px solid var(--rule); }
.hour-name { font-family: var(--caps); font-size: 1.35rem; letter-spacing: .02em; }
.hour-name em { font-family: var(--body); color: var(--rubric); }

/* ----- The books: the cover by night above, the page by day below ----- */
.books { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, .4rem + 1.4vw, 1.4rem); }
.books li { display: grid; grid-template-rows: auto auto; border-radius: 3px 7px 7px 3px; overflow: hidden; box-shadow: 0 16px 28px -20px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }
.books .cover {
  position: relative; aspect-ratio: 5 / 3.4; background: var(--c);
  display: grid; place-items: center;
  box-shadow: inset 7px 0 0 -3px rgba(0,0,0,.28);
}
.books .cover::before { content: ""; position: absolute; inset: 9px 9px 9px 13px; border: 1px solid color-mix(in srgb, var(--k) 40%, transparent); border-radius: 2px 4px 4px 2px; }
.books .cover .mark { width: 54%; aspect-ratio: 129 / 72; background: var(--k); }
.books .day { background: var(--p); padding: .8rem .6rem .85rem; text-align: center; border-top: 2px solid var(--o); }
.books .day span { font-family: var(--caps); font-size: clamp(.95rem, .8rem + .45vw, 1.15rem); letter-spacing: .05em; color: var(--o); }

/* ----- Close at hand ----- */
.hand-grid { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.hand-grid li { padding: 1.4rem 1.6rem 1.5rem 0; border-top: 1px solid var(--rule); display: grid; gap: .45rem; align-content: start; }
.hand-grid p { color: var(--faded); font-size: 1.05rem; }

/* ----- Kept ----- */
.kept-list { list-style: none; margin: 0; padding: 0; font-size: 1.25rem; }
.kept-list li { padding-block: .8rem; border-top: 1px solid var(--rule); display: flex; gap: .8rem; align-items: baseline; }
.kept-list li::before { content: ""; flex: none; width: .45em; height: .45em; background: var(--orn); transform: rotate(45deg) translateY(-.1em); }
.kept-list li:last-child { border-bottom: 1px solid var(--rule); }

/* ----- Narrow ----- */
@media (max-width: 860px) {
  .hero-grid, .two { grid-template-columns: minmax(0, 1fr); }
  .flip .rose { order: 2; }
  .phone { transform: none; --pw: min(100%, 320px); }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hour-row { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hour-row li + li { border-left: 0; border-top: 1px solid var(--rule); padding-top: 1.6rem; }
}
@media (max-width: 520px) {
  .nav ul { gap: 1rem; font-size: 1rem; }
  .hand-grid, .points { grid-template-columns: minmax(0, 1fr); }
  .rose li { font-size: .78rem; }
}
