/* Hallmark · shape: Bento Grid, draw 5c58e0 · genre: editorial · theme: brand (DESIGN.md locked)
 * paper: oklch(100% 0 0) · accent: oklch(96% 0.19 112) · display: Albert Sans · body: Albert Sans · hero: Poster · nav: kept (site bar) · footer: kept (site close) · signature: a points calculator you can try, on the first screen
 * axes: light/grotesk-sans/chromatic-yellow · posture: poster · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: P, the programme's argument is plain arithmetic; let the calculator make it instead of adjectives */
/* waive 47b, 42, F21: the site bar and close are kept so this page reads as part of the shopper site */
/* waive 7b: pure white and near-black are DESIGN.md's locked ground and ink (brand/tokens.css) */
/* waive 11: photographs zoom 1.025 on hover, the shared motion rule of the site (tasteskill house rule 5) */
@import url("./tokens.css");
@import url("./base.css");

/* scoped to the page's main so the shared bar and close keep the kit's rules */
.hm { --gutter: 80px; }
@media (max-width: 60rem) { .hm { --gutter: 24px; } }
.hm .container { max-width: 1440px; }

/* the poster: a Runway photograph full-bleed, the words low and left on its quietest part */
.hm-poster { position: relative; min-height: 94dvh; display: grid; align-items: end; color: var(--color-inverse-ink); background: var(--color-inverse); isolation: isolate; }
.hm-poster > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; z-index: -2; }
.hm-poster::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, var(--color-veil) 0%, color-mix(in oklab, var(--color-inverse) 30%, transparent) 55%, transparent 80%),
              linear-gradient(0deg, var(--color-veil), transparent 55%); }
.hm-poster .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--gap-columns); align-items: end; padding-block: var(--space-4xl) var(--space-2xl); }
.hm-poster h1 { font-size: var(--text-display); max-width: 11ch; color: var(--color-inverse-ink); }
.hm-poster .lead { margin-top: var(--space-lg); color: var(--color-inverse-ink); }
.hm-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
@media (max-width: 60rem) { .hm-poster .container { grid-template-columns: minmax(0, 1fr); padding-top: 40vh; } }

/* buttons: one primary style, eight states */
.hm-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--space-lg); border-radius: 8px; border: 1px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.hm-btn--primary { background: var(--color-accent); color: var(--color-accent-ink); }
.hm-btn--primary:hover { background: color-mix(in oklab, var(--color-accent) 86%, var(--color-inverse-ink)); }
.hm-btn--quiet { color: var(--color-inverse-ink); border-color: color-mix(in oklab, var(--color-inverse-ink) 45%, transparent); }
.hm-btn--quiet:hover { border-color: var(--color-inverse-ink); }
.hm-btn:active { transform: scale(.97); }
.hm-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; transition: none; }
.hm-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* the signature: the calculator */
.hm-calc { display: grid; gap: var(--space-md); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); }
.hm-calc label { font-size: var(--text-sm); color: var(--color-muted); }
.hm-calc .field { display: flex; align-items: baseline; gap: var(--space-xs); border-bottom: 2px solid var(--color-ink); padding-bottom: var(--space-2xs); }
.hm-calc .field span { font-size: var(--text-xl); }
.hm-calc input { width: 100%; border: 0; background: transparent; color: var(--color-ink); font-size: var(--text-display-s); letter-spacing: var(--tracking-display); font-variant-numeric: tabular-nums; padding: 0; }
.hm-calc input:focus-visible { outline: none; }
.hm-calc .field:focus-within { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.hm-calc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hm-calc th, .hm-calc td { text-align: left; padding: var(--space-xs) 0; border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 400; }
.hm-calc td { text-align: right; }
.hm-calc td + td { color: var(--color-muted); padding-left: var(--space-md); }
.hm-calc tr.is-you th::after { content: " (you)"; color: var(--color-muted); }

/* the bento: four tiers and a photograph */
.hm-section { padding-block: var(--section-gap-s); }
.hm-section > .container > h2 { margin-bottom: var(--space-2xl); }
.hm-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: var(--space-md); }
.hm-cell { display: grid; align-content: space-between; gap: var(--space-lg); padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); min-width: 0; }
.hm-cell h3 { font-size: var(--text-2xl); }
.hm-cell .figure { font-variant-numeric: tabular-nums; font-size: var(--text-display-s); letter-spacing: var(--tracking-display); line-height: 1; }
.hm-cell p { color: var(--color-muted); }
.hm-cell--wide { grid-column: span 2; }
.hm-cell--tall { grid-row: span 2; }
.hm-cell--accent { background: var(--color-accent); color: var(--color-accent-ink); }
.hm-cell--accent p { color: var(--color-accent-ink); }
.hm-cell--dark { background: var(--color-inverse); color: var(--color-inverse-ink); }
.hm-cell--dark p { color: var(--color-inverse-muted); }
.hm-cell--photo { position: relative; padding: 0; overflow: hidden; }
.hm-cell--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.hm-cell--photo:hover img { transform: scale(1.025); }
@media (max-width: 60rem) { .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .hm-bento { grid-template-columns: minmax(0, 1fr); } .hm-cell--wide { grid-column: auto; } .hm-cell--tall { grid-row: auto; min-height: 320px; } }

/* the rows: what earns, what spends, when points move */
.hm-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.hm-rows { display: grid; }
.hm-rows > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-md); padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); align-items: baseline; }
.hm-rows > div:first-child { border-top: var(--rule-hair) solid var(--color-rule); }
.hm-rows dt { font-size: var(--text-lg); }
.hm-rows dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; color: var(--color-muted); }
.hm-rows dd strong { color: var(--color-ink); font-weight: 500; font-size: var(--text-xl); }
@media (max-width: 60rem) { .hm-split { grid-template-columns: minmax(0, 1fr); } }

/* the close: your first order */
.hm-close { padding-block: var(--section-gap); background: var(--color-paper-2); }
.hm-close .container { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap-columns); align-items: end; }
.hm-close h2 { max-width: 16ch; }
.hm-close .hm-btn:focus-visible { outline-color: var(--color-focus); }
@media (max-width: 60rem) { .hm-close .container { grid-template-columns: minmax(0, 1fr); } }

/* one reveal: the tier cells rise as they enter; still under reduced motion and without scroll timelines */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hm-cell { animation: hm-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    @keyframes hm-rise { from { opacity: 0; transform: translateY(32px); } }
  }
}
.hm-gap { margin-top: var(--space-lg); }

/* the kit sizes every main > section to whole screens and makes containers flex; this page sets its own */
main.hm > section { height: auto; min-height: 0; padding: 0; display: block; }
main.hm > section.hm-poster { display: grid; min-height: 94dvh; }
main.hm > section.hm-section { padding-block: var(--section-gap-s); }
main.hm > section.hm-close { padding-block: var(--section-gap); }
main.hm .container { display: block; }
main.hm .hm-poster .container, main.hm .hm-close .container, main.hm .container.hm-split { display: grid; }
main.hm > section.hm-poster { position: relative; z-index: 0; isolation: isolate; overflow: clip; }
.hm-cell--full { grid-column: 1 / -1; min-height: 0; }
@media (max-width: 60rem) { .hm-poster::before { background: linear-gradient(0deg, var(--color-veil) 0%, var(--color-veil) 48%, transparent 78%); } }
