/* About and contact (about.html). Page-specific styles only, on the site.css tokens.
   The one bold moment is the row of ring diameters drawn to scale; everything else stays quiet.
   Red appears only for what's active: the ring under the pointer or focus, today's hours, the
   chosen topic chip (site.css). */

main a[href^="tel:"] { white-space: nowrap; }   /* never break a phone number across lines */
main .status > span { text-wrap: balance; }      /* no lone "a.m." when the open status wraps */

/* ---------- hero ---------- */
/* The text, then a large photo (as on Delivery). On wide screens the columns match .split, so the
   photo's left edge lines up with the story text and the FAQ list further down. */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap) var(--gap-wide);
  align-items: center;
}
@media (min-width: 1241px) {
  .about-hero-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
}
.about-hero .lead { text-wrap: balance; }
.about-hero .status { margin-top: 22px; }
.about-hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 62%;
  background: var(--stone);
}
.about-hero-photo figcaption,
.yard-wide figcaption,
.m-cell figcaption {
  margin-top: 10px;
  font-size: var(--fs-fine);
  line-height: 1.4;
  color: var(--grey);
}

/* ---------- story ---------- */
.story-text { max-width: 36em; }
.story-text p + p { margin-top: 16px; }
.story-text .text-link { white-space: nowrap; }
.story-first { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; }

/* The five ring diameters, drawn to one scale (see about.js). */
.ring-figure {
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(28px, 4vw, 56px) clamp(12px, 4vw, 56px) clamp(22px, 3vw, 36px);
  background: var(--stone);
}
.ring-row {
  list-style: none;
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 2.2vw, 36px);
  max-width: 1080px;
  margin-inline: auto;
}
.ring-row li { flex: var(--w) 1 0; min-width: 0; }
.ring-link { display: block; color: inherit; text-decoration: none; }
.ring-link:focus-visible { outline-offset: 8px; }
.ring-art { display: block; }
.ring-art svg { width: 100%; height: 100%; }
.ring-link .ill { transition: transform 0.25s ease; }
.ring-link:hover .ill,
.ring-link:focus-visible .ill { transform: translateY(-5px); }
/* The pipe is each drawing's red detail: ink until that ring is pointed at or focused. */
.ring-row .ill .r,
.ring-row .ill .rt { stroke: var(--ink); }
.ring-link:hover .ill .r,
.ring-link:hover .ill .rt,
.ring-link:focus-visible .ill .r,
.ring-link:focus-visible .ill .rt { stroke: var(--red); }

/* A drawing-style dimension line under each ring, as wide as the ring is drawn. */
.ring-dim {
  position: relative;
  display: flex;
  justify-content: center;
  width: var(--dim);
  margin: 16px auto 0;
}
.ring-dim::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--rule-strong);
}
.ring-dim::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 6px);
  height: 12px;
  border-inline: 1px solid var(--rule-strong);
}
.ring-label {
  position: relative;
  padding: 0 10px;
  background: var(--stone);
  font: 500 clamp(16px, 1.7vw, 22px) / 1.2 var(--display);
  font-variant-numeric: tabular-nums;
}
.ring-link:hover .ring-label {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
.ring-figure figcaption {
  max-width: 1080px;
  margin: clamp(22px, 2.8vw, 36px) auto 0;
  font-size: var(--fs-small);
  color: var(--grey);
  text-wrap: pretty;
}

/* ---------- the yard ---------- */
.yard-wide img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: 50% 88%;
  background: var(--stone);
}
/* Justified rows: each photo grows by its aspect ratio, so every photo in a row is the same height. */
.mosaic {
  display: grid;
  gap: clamp(24px, 2.6vw, 36px);
  margin-top: clamp(28px, 3vw, 44px);
}
.m-row { display: flex; gap: clamp(12px, 1.4vw, 20px); }
.m-cell { flex: var(--a) 1 0; min-width: 0; }
.m-cell img { width: 100%; background: var(--stone); }

.yard-quotes { margin-top: clamp(64px, 8vw, 112px); }
.yard-quotes figure { padding-top: 22px; border-top: 1.5px solid var(--ink); }
.yard-quotes blockquote p { max-width: 22em; text-wrap: balance; }

/* ---------- visit and contact ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--gap) var(--gap-wide);
  align-items: start;
}
.contact-list { margin: 0; border-top: 1px solid var(--ink); }
.c-row {
  display: grid;
  grid-template-columns: 6em minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;          /* each label sits on the first line of its value, even the big phone number */
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--rule);
}
.c-row dt { font-size: var(--fs-small); font-weight: 600; }
.c-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.c-row dd p + p { margin-top: 6px; }
.c-phone {
  font: 500 clamp(24px, 2.3vw, 30px) / 1.15 var(--display);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.c-phone:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.hours-table {
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
/* Every row is inset the same, so the days line up with the status text above (after its dot) and
   the times share one right edge; only the background and bar mark today. */
.hours-table th,
.hours-table td { padding: 7px 0 7px 16px; text-align: left; vertical-align: top; font-weight: 400; }
.hours-table td { padding-right: 12px; text-align: right; white-space: nowrap; }
/* Today's row: white on the stone band, a red bar, bold. "today" is also in the text for screen readers. */
.hours-table tr.is-today > * { background: var(--white); font-weight: 600; }
.hours-table tr.is-today th { box-shadow: inset 3px 0 0 var(--red); }

.msg-form { padding: clamp(22px, 3.4vw, 44px); background: var(--white); }
.msg-form h3 { font-size: 22px; line-height: 1.25; }
.msg-intro { margin-top: 6px; color: var(--grey); }
.msg-topic { margin-top: 22px; }
/* When the four topics can't share one row, a tidy two-by-two block instead of three and a stray one. */
.msg-fields { container-type: inline-size; }
@container (min-width: 290px) and (max-width: 499px) {
  .msg-topic .pick-list { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); }
  .msg-topic .pick span { display: flex; }
}
.field-error {
  margin-top: 6px;
  color: var(--red-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.msg-form input[aria-invalid="true"]:not([type="radio"]),
.msg-form textarea[aria-invalid="true"] { border-color: var(--red-ink); }
.topic-note .note { margin-top: 14px; }
.msg-send { margin-top: 26px; }

.sent:focus { outline: none; }
.msg-form .sent-title {
  font: 500 clamp(26px, 2.4vw, 32px) / 1.1 var(--display);
  letter-spacing: -0.015em;
}
.sent p { margin-top: 12px; max-width: 34em; }
.sent .note { margin-top: 20px; }
.sent-contact { font-weight: 600; overflow-wrap: anywhere; }
.sent .btn { margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq-intro .lead { text-wrap: balance; }
.faq-list .faq-a { padding: 0 44px 22px 0; }
.faq-list .faq-a p { padding: 0; max-width: 40em; }
.faq-list .faq-a .faq-more { margin-top: 10px; }

/* ---------- smaller screens ---------- */
/* Two columns, but a narrow left one: labels go above their values so the hours fit. */
@media (min-width: 1081px) and (max-width: 1240px) {
  .c-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-width: 1080px) {
  .about-hero-grid,
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .about-hero-photo { max-width: 600px; }
  .contact-list { max-width: 640px; }
}
@media (max-width: 720px) {
  .yard-wide img { aspect-ratio: 3 / 2; object-position: 50% 80%; }

  /* Rings: too small for dimension lines; the label stays. */
  .ring-dim { width: auto; margin-top: 8px; }
  .ring-dim::before,
  .ring-dim::after { display: none; }
  .ring-label { padding: 0; font-size: 15px; }

  /* Mosaic: two columns, the first photo full width, all cropped to one shape. */
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .m-row { display: contents; }
  .m-cell img { aspect-ratio: 4 / 3; object-fit: cover; }
  .m-row:first-child .m-cell:first-child { grid-column: 1 / -1; }
  .m-row:first-child .m-cell:first-child img { aspect-ratio: 16 / 9; }

  .c-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .faq-list .faq-a { padding-right: 0; }
}
/* Small phones: keep "Monday to Friday" and its hours on one line. */
@media (max-width: 400px) {
  .hours-table { font-size: 16px; }
  .hours-table td { padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ring-link:hover .ill,
  .ring-link:focus-visible .ill { transform: none; }
}
