/* ==========================================================================
   pages.css — the desk pages, rebuilt 2 Sept 2026.

   About, Branded Homes, Membership, Contact, Account and Cart. Kept out of
   analogue.css, which is the design system, and out of home-additions.css,
   which is the front page. Everything here is built from the system's own
   inks and type; nothing new is invented, only composed.

   Three devices recur, so they are defined once:
     .ledger — rows of fact with hairlines (key | value)
     .strip  — a few things in a row under one rule (the practice, the rules)
     .desk   — a form beside an edge-to-edge photograph (contact, sign in)
   ========================================================================== */

/* ---- the ledger --------------------------------------------------------- */
.ledger { list-style: none; margin: 0; padding: 0; width: 100%; border-top: 1px solid var(--hair); }
.ledger__row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--hair);
}
.ledger__k {
  font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); padding-top: 4px; margin: 0;
}
.ledger__v { font-size: 15px; line-height: 1.5; margin: 0; }
.ledger__v a { border-bottom: 1px solid var(--hair); }
.ledger__v a:hover { border-bottom-color: var(--ink); }
.ledger--tight .ledger__row { grid-template-columns: 7rem minmax(0, 1fr); padding: 10px 0; }
.ledger--tight .ledger__v { font-size: 14px; }

/* ---- the strip ---------------------------------------------------------- */
.strip {
  display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 0 32px; width: 100%; border-top: 1px solid var(--ink);
}
.strip__cell { padding: 18px 0 24px; position: relative; }
.strip__cell + .strip__cell { border-left: 1px solid var(--hair); padding-left: 24px; }
.strip__n {
  font-family: var(--display); font-weight: 300; font-size: 13px; letter-spacing: .06em;
  color: var(--stone); display: block;
}
.strip__h { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.14; margin: 8px 0 0; }
.strip__p { color: var(--stone); font-size: 14px; line-height: 1.55; margin: 8px 0 0; max-width: 30ch; }
@media (max-width: 809.98px) {
  .strip { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .strip__cell + .strip__cell { border-left: 0; padding-left: 0; }
  .strip__cell:nth-child(n + 3) { border-top: 1px solid var(--hair); }
}
@media (max-width: 479.98px) { .strip { grid-template-columns: 1fr; } .strip__cell + .strip__cell { border-top: 1px solid var(--hair); } }

/* ---- the desk: a form beside a photograph ------------------------------- */
.desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
.desk__form { padding: clamp(28px, 5vh, 64px) var(--gap-side) clamp(56px, 8vh, 96px); }
.desk__inner { width: 100%; max-width: 36rem; }
.desk__art { position: relative; background: var(--wash); }
/* The photograph is the full height of the letter beside it, however long
   the letter runs: no gap under it, no picture pinned short of the fold. */
.desk__slides, .desk__slides.hero-slides { position: relative; height: 100%; min-height: 70svh; }
@media (max-width: 809.98px) {
  .desk { grid-template-columns: 1fr; }
  .desk__art { order: 2; }
  .desk__slides, .desk__slides.hero-slides { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; width: 100%; }
@media (max-width: 559.98px) { .field-row { grid-template-columns: 1fr; } }

/* A row of choices, each one a small plate. Native radios underneath, so the
   keyboard and the form both see them; the plate is what the eye sees. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 9px 14px; border: 1px solid var(--hair);
  font-size: 12px; letter-spacing: .03em; color: var(--ink); white-space: nowrap;
  transition: border-color .2s var(--ease-ui), background-color .2s var(--ease-ui), color .2s var(--ease-ui);
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ==========================================================================
   ABOUT. One proposition, one photograph, three chapters, one line, two doors.
   ========================================================================== */
.about-open { padding-top: clamp(24px, 4vh, 48px); }
.about-open__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(40px, 6vw, 96px); align-items: end; width: 100%;
}
.about-open__seal { height: 54px; width: auto; display: block; margin-bottom: 22px; }
.about-open__h {
  font-size: clamp(36px, 5vw, 70px); line-height: 1.02; letter-spacing: -.018em;
  margin: 0; max-width: 20ch; text-wrap: balance;
}
.about-open__side { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.about-open__picture {
  width: 100%; aspect-ratio: 21 / 9; overflow: hidden; background: var(--wash);
  margin-top: clamp(32px, 5vh, 60px);
}
.about-open__picture img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 809.98px) {
  .about-open__grid { grid-template-columns: 1fr; }
  .about-open__picture { aspect-ratio: 4 / 3; }
}

.about-ch { padding: clamp(48px, 7vh, 88px) var(--gap-side); }
.about-ch__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px clamp(40px, 6vw, 96px); align-items: start; width: 100%;
}
.about-ch--flip .about-ch__grid > .about-ch__figure { order: 2; }
.about-ch__figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--wash); }
.about-ch__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-ch__text { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.about-ch__n {
  font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4vw, 56px);
  line-height: 1; letter-spacing: -.02em; color: var(--stone); margin: 0 0 4px;
}
.about-ch__text .display-l { font-size: clamp(28px, 3.4vw, 44px); margin: 0; text-wrap: balance; }
.about-ch__text .ledger { margin-top: 12px; }
@media (max-width: 809.98px) {
  .about-ch__grid { grid-template-columns: 1fr; }
  .about-ch--flip .about-ch__grid > .about-ch__figure { order: 0; }
  .about-ch__text { position: static; }
  .about-ch__figure { aspect-ratio: 4 / 3; }
}

.about-pull { text-align: center; padding: clamp(56px, 9vh, 120px) var(--gap-side); }
.about-pull p {
  font-family: var(--display); font-size: clamp(26px, 3.6vw, 52px); line-height: 1.12;
  letter-spacing: -.012em; margin: 0 auto; max-width: 22ch; text-wrap: balance;
}
.about-pull small { display: block; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-tile); width: 100%; }
.door { display: block; color: var(--ink); }
.door__frame { aspect-ratio: 3 / 2; overflow: hidden; background: var(--wash); }
.door__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.door:hover .door__frame img { transform: scale(1.03); }
.door__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.door__name { font-family: var(--display); font-size: clamp(20px, 2.2vw, 26px); margin: 0; }
.door__line { color: var(--stone); font-size: 14px; margin: 4px 0 0; }
.door__go { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
@media (max-width: 809.98px) { .doors { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .door__frame img, .door:hover .door__frame img { transition: none; transform: none; } }

/* ==========================================================================
   BRANDED HOMES. The film opens; the practice is said once; the hours are an
   index; then each hour is a spread — the time and the sentence on one side,
   the photograph on the other — and the pieces beneath.
   ========================================================================== */
.homes-lede .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.homes-lede__h {
  font-size: clamp(34px, 5vw, 68px); line-height: 1.04; letter-spacing: -.016em;
  max-width: 18ch; margin: 12px 0 0; text-wrap: balance;
}
.homes-lede__p { max-width: 58ch; margin: 18px 0 0; text-wrap: pretty; }
.homes-for { margin-top: clamp(44px, 6vh, 80px); text-align: left; }

.hours { width: 100%; margin-top: clamp(44px, 6vh, 80px); text-align: left; }
.hours__list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.hours__item a { display: block; padding: 14px 8px 0 0; color: var(--ink); position: relative; }
.hours__item a::before { content: ""; position: absolute; left: 0; top: -1px; width: 1px; height: 12px; background: var(--ink); }
.hours__t {
  font-family: var(--display); font-weight: 300; font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: block;
}
.hours__w {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); margin-top: 6px; transition: color .2s var(--ease-ui);
}
.hours__item a:hover .hours__w { color: var(--ink); }
@media (max-width: 809.98px) { .hours__list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; } }

/* The chapters, as spreads. day.css centres everything; here the text stands
   to one side and holds still while the photograph passes. */
.homes .day-ch { text-align: left; }
.homes .day-ch .wrap { display: block; }
.homes-ch__grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px clamp(40px, 6vw, 96px); align-items: start;
}
.homes-ch--flip .homes-ch__grid > .homes-ch__text { order: 2; }
.homes-ch__text { position: sticky; top: 88px; }
.homes-ch__hour {
  font-family: var(--display); font-weight: 300; font-size: clamp(56px, 8vw, 128px);
  line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 0; color: var(--ink);
}
.homes-ch__word {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--stone); margin-top: 12px;
}
.homes .homes-ch__text .display-l {
  font-size: clamp(24px, 2.8vw, 36px); line-height: 1.14; margin: 22px 0 0; max-width: 20ch; text-wrap: balance;
}
.homes .homes-ch__text .day-ch__text { margin-top: 14px; max-width: 46ch; }
.homes-ch__pic { margin: 0; aspect-ratio: 5 / 4; overflow: hidden; background: var(--wash); }
.homes-ch__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.homes .day-row { margin-left: 0; }
.homes .day-ch--dawn { text-align: center; }
.homes .day-ch--dawn .wrap { display: flex; flex-direction: column; align-items: center; }
.homes .day-ch--dawn .day-ch__text { max-width: 44ch; }
.homes-ch__doors { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
@media (max-width: 809.98px) {
  .homes-ch__grid { grid-template-columns: 1fr; }
  .homes-ch--flip .homes-ch__grid > .homes-ch__text { order: 0; }
  .homes-ch__text { position: static; }
  .homes-ch__pic { aspect-ratio: 4 / 3; }
  .homes-ch__hour { font-size: clamp(48px, 16vw, 72px); }
}

/* ==========================================================================
   MEMBERSHIP. The rules in a strip, the rooms on a rail and then as rows,
   the count explained in four numbered notes.
   ========================================================================== */
.mem-rail {
  --n: 5;
  list-style: none; margin: clamp(28px, 4vh, 44px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  position: relative; width: 100%;
}
.mem-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: var(--hair); }
.mem-rail__stop { position: relative; padding: 24px 12px 0 0; }
.mem-rail__stop::before {
  content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--c, var(--ink)); box-shadow: 0 0 0 1px rgba(22, 21, 15, .18);
}
.mem-rail__name { font-family: var(--display); font-size: clamp(16px, 1.7vw, 22px); margin: 0; line-height: 1.1; }
.mem-rail__pts {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone); margin-top: 6px; font-variant-numeric: tabular-nums;
}
.mem-rail__stop.is-yours::after {
  content: "You are here"; display: block; margin-top: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
@media (max-width: 809.98px) {
  .mem-rail__name { font-size: 13px; }
  .mem-rail__pts { font-size: 9px; letter-spacing: .06em; }
  .mem-rail__stop.is-yours::after { content: "You"; }
}

/* The rooms as rows. analogue.css draws them as five columns; the rows are
   the same elements, laid across the page, so the script that flags the
   reader's own room still finds it. */
.mem-ladder, .mem-ladder.mt-m {
  display: block; gap: 0; background: none; border-block: 0;
  border-top: 1px solid var(--ink); margin-top: clamp(32px, 5vh, 56px);
}
.mem-ladder .mem-tier {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px clamp(32px, 5vw, 80px); padding: clamp(24px, 3.5vh, 40px) 0;
  border-bottom: 1px solid var(--hair); background: none;
}
.mem-ladder .mem-tier.is-yours { background: none; }
.mem-ladder .mem-tier__you { grid-column: 1 / -1; margin: 0 0 -6px; }
.mem-ladder .mem-tier__name { font-size: clamp(24px, 3vw, 36px); }
.mem-ladder .mem-tier__unlock { margin: 10px 0 0; }
.mem-ladder .mem-tier__step { margin: 2px 0 0; }
.mem-ladder .mem-tier__blurb { margin: 14px 0 0; max-width: 32ch; }
.mem-ladder .mem-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.mem-ladder .mem-perk { border-top: 1px solid var(--hair); padding: 10px 0; }
.mem-ladder .mem-perk:nth-child(-n + 2) { border-top: 0; }
@media (max-width: 809.98px) {
  .mem-ladder .mem-tier { grid-template-columns: 1fr; gap: 12px; }
  .mem-ladder .mem-perks { grid-template-columns: 1fr; }
  .mem-ladder .mem-perk:nth-child(2) { border-top: 1px solid var(--hair); }
}

.mem-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; width: 100%; }
.mem-note { border-top: 1px solid var(--hair); padding-top: 14px; }
.mem-note__n { font-family: var(--display); font-weight: 300; font-size: 22px; line-height: 1; color: var(--stone); margin: 0 0 10px; }
.mem-notes p { max-width: 46ch; margin: 0; }
@media (max-width: 719.98px) { .mem-notes { grid-template-columns: 1fr; } }

/* The reader's own standing, once known: a panel on the wash. */
#mem-you .mem-bar { max-width: 36rem; }

/* ==========================================================================
   CART. The lines on the left, the reckoning on the right, held still.
   ========================================================================== */
.cart {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 28px clamp(40px, 6vw, 96px); width: 100%; align-items: start;
}
.cart__lines { border-top: 1px solid var(--ink); }
.cart__aside { position: sticky; top: 88px; border-top: 1px solid var(--ink); padding-top: 18px; }
.cart__sum { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; width: 100%; }
.cart__sum .btn { width: 100%; text-align: center; }
.cart__aside .ledger { margin-top: 18px; }
.cart__picks { margin-top: clamp(48px, 7vh, 88px); }
@media (max-width: 809.98px) {
  .cart { grid-template-columns: 1fr; }
  .cart__aside { position: static; }
}

/* ==========================================================================
   SIGN IN. The same split as before, given a spine: the form sits on its own
   rule, the account's three promises under it, and the photograph is named.
   ========================================================================== */
.signin__inner { max-width: 28rem; }
/* The password box was narrower than the email box above it: the stack lets
   its children shrink, and the reveal button's wrapper never asked for the
   full width. Now it does. */
.signin__secret, .signin #acct-names { width: 100%; }
.signin__ledger { margin-top: 36px; }
.signin__art figure { margin: 0; position: absolute; inset: 0; }
.signin__art figcaption {
  position: absolute; left: 24px; bottom: 22px; right: 24px; z-index: 1;
  color: rgba(243, 241, 237, .85); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
}

/* ==========================================================================
   CHECKOUT. The gate for a guest — sign in and the house keeps count, or go
   on as a guest — then the same desk as the cart.
   ========================================================================== */
.co-gate { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; border-top: 1px solid var(--ink); }
.co-gate__card { padding: 28px 0 32px; }
.co-gate__card + .co-gate__card { border-left: 1px solid var(--hair); padding-left: clamp(24px, 3vw, 40px); }
.co-gate__card .display-m { margin-top: 8px; }
.co-gate__row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.co-who { padding: 12px 0 18px; border-top: 1px solid var(--hair); }
#analogue-checkout[hidden], .co-gate[hidden], .co-who[hidden] { display: none; }
#analogue-checkout .chips { margin-top: 10px; margin-bottom: 8px; }
@media (max-width: 809.98px) {
  .co-gate { grid-template-columns: 1fr; }
  .co-gate__card + .co-gate__card { border-left: 0; border-top: 1px solid var(--hair); padding-left: 0; }
}
