/* MakeAndUpdate booking pages: the guest page, the manage page and admin.
   Light only. The tokens are MakeAndUpdate's (Agency/MakeAndUpdate/DESIGN.md):
   warm paper, ink, hairline rules, Inter, no gradients, no glass. Two changes
   from DESIGN.md, both for contrast: ink-3 is #726f68 (its #8a8780 is 3.2:1 on
   paper; this is the value the emails use), and the persimmon button carries
   ink text (white on #e84e10 is 3.80:1, ink is 5.09:1).

   Persimmon is the fill of the one primary button on a page and nothing else.

   Type follows DESIGN.md (headings weight 500) with three app exceptions: body
   text is 16px/1.5, not 17px/1.65, because these are dense form and list
   pages, not editorial reading; the admin month-grid day labels are 10px
   (9px below 360px wide), under the 12px meta size, because "blocked" has to
   fit a phone-width cell whole; and the guest calendar's holiday name
   (.hol-name) is 9.5px, because "Thanksgiving" has to fit a cell whole at
   the 464px calendar width where names first show (61.2px of a 61.7px box;
   at 10px it is 64.4px and would be cut). The full name is in the cell's
   accessible name either way.

   Text contrast (WCAG 2), measured against the background each colour is
   drawn on:
     ink      #0e0e0c on paper #f4f3ef 17.40, on paper-2 #eae6dc 15.50
     ink-2    #52514c on paper 7.16, on paper-2 6.38
     ink-3    #726f68 on paper 4.51 (only ever on paper)
     paper    #f4f3ef on ink 17.40 (the picked day); on signal-ink #a83608 5.92 (primary hover)
     ink      on signal #e84e10 5.09 (the primary button)
     danger   #a1210c on paper 6.91, on paper-2 6.15 */

:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --paper-2: #eae6dc;
  --ink: #0e0e0c;
  --ink-2: #52514c;
  --ink-3: #726f68;
  --rule: #d9d6cc;
  --signal: #e84e10;
  --signal-ink: #a83608;
  --danger: #a1210c;
  --read: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: 16px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--read);
  -webkit-font-smoothing: antialiased;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-bottom: 32px;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
}

img,
svg {
  max-width: 100%;
}

/* --- Header --- */
.site-head {
  padding-top: 32px;
  margin-bottom: 20px;
}

.site-head h1 {
  margin: 0 0 6px;
  font: 500 clamp(1.75rem, 4vw, 2.25rem)/1.15 var(--read);
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* The guest page's heading is the MAKEANDUPDATE wordmark (7.24:1). */
.site-head h1.brand {
  margin-bottom: 12px;
  line-height: 0;
}
.brand a {
  display: inline-block;
}
.brand-logo {
  display: block;
  width: clamp(180px, 48vw, 260px);
  height: auto;
}

.sub-line {
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
}

/* --- Sections: hairlines, not cards --- */
.card {
  min-width: 0;
  border-top: 1px solid var(--rule);
  padding: 22px 0 6px;
}

.card + .card {
  margin-top: 18px;
}

.plate {
  margin: 0 0 14px;
  font: 500 18px/1.3 var(--read);
  color: var(--ink);
}

/* --- Two-column app layout --- */
.booking-app {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
.side-card {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
@media (min-width: 760px) {
  .booking-app {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 32px;
  }
  .side-card {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--rule);
    padding-left: 32px;
  }
}

/* --- Calendar --- */
.cal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}
.cal-month {
  flex: 1 1 auto;
  margin: 0;
  text-align: center;
  font: 500 18px/1.2 var(--read);
  color: var(--ink);
}
.cal-nav {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink-3);
  border-radius: 9999px;
  color: var(--ink);
  cursor: pointer;
}
.cal-nav svg {
  width: 20px;
  height: 20px;
}
.cal-nav:hover:not(:disabled):not([aria-disabled='true']) {
  border-color: var(--ink);
}
.cal-nav:disabled,
.cal-nav[aria-disabled='true'] {
  color: var(--ink-3);
  border-style: dashed;
  cursor: not-allowed;
}
.cal-today {
  min-height: 44px;
  padding: 8px 16px;
  font: 600 14px/1.2 var(--read);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink-3);
  border-radius: 9999px;
  cursor: pointer;
}
.cal-today:hover {
  border-color: var(--ink);
}

.cal-grid {
  width: calc(100% + 6px);
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 3px;
  margin: 0 -3px;
}
.cal-grid th {
  padding: 4px 0 6px;
  font: 500 12px/1 var(--read);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-align: center;
}
.cal-grid abbr {
  text-decoration: none;
  border: 0;
  cursor: default;
}
.cal-grid td {
  padding: 0;
  text-align: center;
}
/* A bookable day is a filled tile; a day that cannot be picked has no tile,
   muted text and a line through its number, so the difference is never the
   colour alone. The picked day is ink with paper text; today has an ink ring. */
.cal-d {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 44px;
  padding: 4px 0;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  font: 600 15px/1 var(--read);
  cursor: pointer;
}
.cal-d:hover:not(:disabled) {
  border-color: var(--ink);
}
.cal-d[aria-current='date'] {
  border: 2px solid var(--ink);
}
.cal-d[aria-pressed='true'] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cal-d:disabled {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
  font-weight: 400;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  cursor: not-allowed;
}
.cal-d[aria-current='date']:disabled {
  border-color: var(--ink-3);
}
@media (min-width: 760px) {
  .cal-d {
    min-height: 52px;
  }
}
/* A holiday (GET /api/days): a soft paper-2 tint and its line icon in ink,
   plus its short name once the calendar is wide enough for it (the container
   query: Inter 500 "Thanksgiving", the longest, is 61.2px at 9.5px and fits
   a cell from a 464px calendar up); the aria-label always names it. A closed holiday keeps the line
   through its number and gets a dashed edge, so the tint never reads as a
   bookable tile on its own. On the tint: ink-2 text 6.38, ink icon 15.50. */
.cal-card {
  container: cal / inline-size;
}
.cal-d.is-holiday:disabled {
  background: var(--paper-2);
  border: 1px dashed var(--ink-3);
  color: var(--ink-2);
  text-decoration: none;
}
.cal-d.is-holiday:disabled .cal-n {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal-d.is-holiday[aria-current='date'] {
  border-width: 2px;
  border-style: solid;
}
.hol-icon {
  flex: none;
  width: 12px;
  height: 12px;
}
.cal-d.is-holiday:disabled .hol-icon {
  color: var(--ink);
}
.hol-name {
  display: none;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 9.5px/1.1 var(--read);
  color: var(--ink-2);
}
.cal-d[aria-pressed='true'] .hol-name {
  color: inherit;
}
@container cal (min-width: 464px) {
  .cal-d {
    min-height: 52px;
  }
  .hol-name {
    display: block;
  }
}
.cal-keys {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.8;
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  text-align: center;
  font: 600 12px/1 var(--read);
  padding: 3px 6px;
  border: 1px solid var(--ink-3);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
}

/* --- Form fields --- */
.field {
  margin: 0 0 14px;
}
.field label {
  display: block;
  margin: 0 0 6px;
  font: 600 13px/1.3 var(--read);
  color: var(--ink-2);
}
.field .hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
input[type='text'],
input[type='search'],
input[type='email'],
input[type='date'],
input[type='password'],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font: 400 16px/1.4 var(--read);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-3);
  border-radius: 4px;
}
input:hover,
select:hover:not(:disabled),
textarea:hover {
  border-color: var(--ink);
}
textarea {
  min-height: 84px;
  resize: vertical;
}
select:disabled,
input:disabled {
  color: var(--ink-3);
  border-style: dashed;
  cursor: not-allowed;
}

/* Visually hidden but still reachable by a screen reader; the honeypot also
   sets tabindex="-1" and autocomplete="off" so sighted users and keyboard
   users never land on it, and browser autofill never fills it. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons: pills. Primary is persimmon with ink text; secondary is an
   ink outline that fills with ink on hover. --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font: 600 15px/1.1 var(--read);
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 9999px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out;
}
.btn-primary {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
}
.btn-primary:hover:not(:disabled) {
  background: var(--signal-ink);
  border-color: var(--signal-ink);
  color: var(--paper);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}
.btn:disabled {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed var(--ink-3);
  cursor: not-allowed;
}
.btn-block {
  display: flex;
  width: 100%;
}

/* --- Status line --- */
.status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.status.is-error {
  color: var(--danger);
  font-weight: 600;
}

.is-hidden {
  display: none;
}

/* --- Success state --- */
.success h2 {
  margin: 0 0 8px;
  font: 500 22px/1.25 var(--read);
  color: var(--ink);
}
.success p {
  margin: 0 0 10px;
  color: var(--ink-2);
  line-height: 1.5;
}
.success .manage-link {
  display: inline-block;
  margin-top: 6px;
}

/* --- Rows: bookings, requests, outbox, history --- */
.row-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--rule);
}
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.row .row-main {
  flex: 1 1 220px;
  min-width: 0;
}
.row .row-time {
  font: 600 15px/1.4 var(--read);
  color: var(--ink);
}
.row .row-detail {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.row form {
  flex: none;
}
.inline-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
/* Approve and Decline side by side on the more-time review page. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

/* --- Admin Days card and day view ---
   Each state has a colour and a word, never the colour alone, and persimmon
   is never a state. Text contrast on each tint (and on paper):
     closed   #4a4944 on #e4e2dc 6.96 (on paper 8.13); ink on it 14.92
     blocked  #7a4a00 on #f8e5bd 6.03 (on paper 6.74); ink 15.58, ink-2 6.41
     booked   #0b5d66 on #d5ecee 6.16 (on paper 6.82, on the blocked tint
              6.11, on the closed tint 5.85); ink 15.70, ink-2 6.46
   Borders against paper: closed #726f68 4.51 (dashed), blocked #b0781a 3.41,
   booked #2a8a95 3.66. */
:root {
  --state-closed: #4a4944;
  --state-closed-bg: #e4e2dc;
  --state-blocked: #7a4a00;
  --state-blocked-bg: #f8e5bd;
  --state-blocked-line: #b0781a;
  --state-booked: #0b5d66;
  --state-booked-bg: #d5ecee;
  --state-booked-line: #2a8a95;
}
.days-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--ink-2);
}
.days-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.days-key {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
}
.days-key--closed {
  background: var(--state-closed-bg);
  border: 1px dashed var(--ink-3);
}
.days-key--blocked {
  background: var(--state-blocked-bg);
  border-color: var(--state-blocked-line);
}
.days-key--booked {
  background: var(--state-booked-bg);
  border-color: var(--state-booked-line);
}
.days-key--today {
  border-color: transparent;
  background: transparent;
  font: 600 14px/1 var(--read);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.days-w--open {
  color: var(--ink);
}
.days-w--closed {
  color: var(--state-closed);
}
.days-w--blocked {
  color: var(--state-blocked);
}
.days-w--booked {
  color: var(--state-booked);
}
.days-range-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
}

/* A td of height 1px lets the link inside fill the row's full height. */
.days-grid td {
  height: 1px;
}
.days-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  min-height: 44px;
  padding: 6px 2px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.days-d-num {
  font: 600 15px/1 var(--read);
}
.days-w {
  max-width: 100%;
  font: 600 10px/1.15 var(--read);
  overflow-wrap: anywhere;
}
a.days-d:hover {
  border-color: var(--ink);
}
/* Today: the number is underlined (the legend says so). */
.days-d[aria-current='date'] .days-d-num {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.days-d--closed {
  background: var(--state-closed-bg);
  border: 1px dashed var(--ink-3);
  color: var(--state-closed);
}
.days-d--blocked {
  background: var(--state-blocked-bg);
  border-color: var(--state-blocked-line);
}
.days-d--booked {
  background: var(--state-booked-bg);
  border-color: var(--state-booked-line);
}
.days-d.is-past {
  background: transparent;
  border-color: transparent;
  color: var(--ink-3);
}
.days-d.is-past .days-d-num {
  font-weight: 400;
}
@media (min-width: 760px) {
  .days-d {
    min-height: 60px;
  }
  .days-w {
    font-size: 11px;
  }
}
/* Phone widths: the cells drop their side padding, so the longest label word
   ("blocked", "booked") fits a cell whole, never split mid-word. Inter 600
   "blocked" is 38.4px at 10px and 34.6px at 9px; below 360px the words drop
   to 9px and the spacing to 2px. */
@media (max-width: 480px) {
  .days-d {
    padding: 6px 0;
  }
}
/* A holiday in the month grid: its icon and short name, in the cell's own
   text colour (closed #4a4944 on its tint 6.96, ink elsewhere 15.5 or more).
   The name shows once the card is wide enough for it (icon, gap and Inter 500
   "Thanksgiving", the longest, are 79.4px at 10px, which a cell holds from a
   620px card up); the aria sentence always names the holiday. */
.days-card {
  container: days / inline-size;
}
.days-hol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  font: 500 10px/1.15 var(--read);
}
.days-hol-icon {
  flex: none;
  width: 12px;
  height: 12px;
}
.days-hol-name {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@container days (min-width: 620px) {
  .days-hol-name {
    display: inline;
  }
}
.days-key--holiday {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
}
.days-key--holiday .days-hol-icon {
  width: 16px;
  height: 16px;
}
/* The day view's heading: ", [icon] Thanksgiving" after the date. The icon
   and the first word share .nobr, so the icon never ends a line alone. */
.nobr {
  white-space: nowrap;
}
.day-hol .days-hol-icon {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-right: 0.2em;
  vertical-align: -0.05em;
}
@media (max-width: 359px) {
  .cal-grid.days-grid {
    border-spacing: 2px;
    width: calc(100% + 4px);
    margin: 0 -2px;
  }
  .days-w {
    font-size: 9px;
  }
}

.day-whole {
  display: inline-block;
  margin: 14px 10px 0 0;
}
.day-plate {
  margin-top: 28px;
}
.slot-note-field {
  margin: 14px 0 0;
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.slots li {
  display: flex;
}
.slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 56px;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  font: 400 13px/1.3 var(--read);
  text-align: left;
  cursor: pointer;
}
.slot-time {
  font: 600 15px/1.2 var(--read);
}
.slot-word {
  max-width: 100%;
  font-weight: 600;
  color: var(--ink-2);
  /* A guest name or email with no spaces wraps inside its tile. */
  overflow-wrap: anywhere;
}
.slot-note {
  max-width: 100%;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.slot:hover:not(:disabled) {
  border-color: var(--ink);
}
.slot:disabled {
  cursor: not-allowed;
}
/* A half hour that cannot be clicked and is not blocked or booked (past, or
   on a closed day) has a dashed border as well as its word. */
.slot:disabled:not(.slot--blocked):not(.slot--booked) {
  border-style: dashed;
  border-color: var(--ink-3);
}
.slot--closed {
  background: var(--state-closed-bg);
  color: var(--state-closed);
}
.slot--closed .slot-word {
  color: var(--state-closed);
}
.slot--blocked {
  background: var(--state-blocked-bg);
  border-color: var(--state-blocked-line);
}
.slot--blocked .slot-word {
  color: var(--state-blocked);
}
.slot--booked {
  background: var(--state-booked-bg);
  border-color: var(--state-booked-line);
}
.slot--booked .slot-word {
  color: var(--state-booked);
}
.slot.is-past {
  background: transparent;
  border-color: var(--ink-3);
  color: var(--ink-3);
}
.slot.is-past .slot-word,
.slot.is-past .slot-note {
  color: var(--ink-3);
}

.feed-url {
  display: block;
  margin: 6px 0 0;
  padding: 10px 12px;
  background: var(--paper-2);
  border-radius: 4px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* --- Outbox iframe --- */
.outbox-frame {
  width: 100%;
  height: 70vh;
  min-height: 420px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
}

/* --- Footer --- */
.site-foot {
  margin-top: 32px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
}
.site-foot a {
  color: var(--ink-2);
}

/* --- Admin history ---
   On paper: text ink 17.40, ink-2 7.16; held and sent #0b5d66 6.82;
   cancelled #7a4a00 6.74; failed #a1210c 6.91 (bold, beside the word
   "Failed"). Every state is a word first: an outcome is its own words in a
   pill, a failed email the bold word "Failed". */
.hist-line {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}
.hist-search .field {
  max-width: 420px;
}
.hist-row {
  display: block;
}
.hist-row .row-time {
  overflow-wrap: anywhere;
}
.hist-len {
  margin-left: 8px;
  font-weight: 400;
  color: var(--ink-2);
}
.hist-guest,
.hist-outcome,
.hist-note,
.hist-topic,
.hist-none {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.hist-guest {
  margin-top: 2px;
}
.hist-tag {
  display: inline-block;
  padding: 1px 9px;
  border: 1px solid var(--ink-3);
  border-radius: 9999px;
  font: 600 12px/1.6 var(--read);
  color: var(--ink);
}
.hist-tag--held {
  color: var(--state-booked);
  border-color: var(--state-booked-line);
}
.hist-tag--cancelled,
.hist-tag--cancelled-guest,
.hist-tag--cancelled-host {
  color: var(--state-blocked);
  border-color: var(--state-blocked-line);
}
.hist-mails {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.hist-mail-name {
  font-weight: 600;
  color: var(--ink);
}
.hist-mail-status {
  font-weight: 600;
}
.hist-mail-status.is-sent {
  color: var(--state-booked);
}
.hist-mail-status.is-failed {
  font-weight: 700;
  color: var(--danger);
}
.hist-err {
  display: block;
  margin-top: 2px;
}
.hist-err-plain {
  color: var(--ink);
}
.hist-err-raw {
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-2);
}
.hist-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 16px;
}
.hist-page {
  font-size: 14px;
  color: var(--ink-2);
}

/* --- Focus: an ink ring, clear of the element --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.cal-d:focus-visible,
.days-d:focus-visible {
  outline-offset: 1px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
