/* The redesign's page parts, after island.css: the gallery that plays on its own, the home
   page's two doors and reviews, the historic page's sections, its own quote form on the
   green band, the About John page (ISL-41), and the footer. Built from Paper "ISL-70 · Final redesign" for ISL-66:
   "Final · Home", "Final · Historic", "Final · Gallery · States" and "Final · Interaction". */

:root {
  --spot: #E4DED2;    /* a photo spot waiting for John's photo */
  --spot-edge: #6F685E99;
  --rule: #23272B33;
}

.page main { display: block; background: var(--paper); }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }

/* ---- Photo spots: dashed boxes for John's photos (ISL-3) ---- */

.spot {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 28px;
  background: var(--spot);
  border: 1px dashed var(--spot-edge);
}
.spot__label {
  font: 700 12px/16px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spot__what { font: italic 400 17px/25px var(--serif); color: var(--muted); }

/* A line still to come from John, set in the text it belongs to. */
.to-come { font: italic 400 18px/28px var(--serif); color: var(--muted); }
.to-come b {
  font: 700 11px/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ---- Small type shared by both pages ---- */

.eyebrow {
  font: 600 13px/20px var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.text-link {
  font: 700 15px/20px var(--sans);
  text-decoration: underline 2px var(--green);
  text-underline-offset: 6px;
  transition: text-decoration-thickness 150ms;
}
@media (hover: hover) { .text-link:hover { text-decoration-thickness: 3px; } }
.button {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 2px;
  background: var(--green);
  color: #000000;
  font: 700 16px/20px var(--sans);
  text-decoration: none;
  transition: background-color 150ms;
}
@media (hover: hover) { .button:hover { background: var(--green-dark); } }
.button--outline {
  padding: 14px 22px;
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
@media (hover: hover) { .button--outline:hover { background: #23272B0D; } }

/* ---- The gallery that plays on its own (home's historic door, top of the historic page) ---- */

.gallery { position: relative; overflow: hidden; background: var(--spot); border: 1px dashed var(--spot-edge); }
/* Sideways drags change the photo (pages.js), so the browser keeps only up-and-down scrolling. */
.gallery, .door--historic .door__link { touch-action: pan-y pinch-zoom; }
.gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.gallery__slide.is-current { opacity: 1; }
/* A photo the visitor moved to fades faster (pages.js). */
.gallery.is-quick .gallery__slide { transition-duration: 350ms; }
.gallery__slide .spot { position: absolute; inset: 0; border: 0; justify-content: flex-start; background: transparent; }
.gallery__drawing {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 66%;
  aspect-ratio: 520 / 257;
  translate: -50% -46%;
  background: url(/ui/house-drawing.webp) center / 100% 100% no-repeat;
  opacity: 0.22;
}
.gallery__controls {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}
.gallery__steps { display: flex; align-items: center; gap: 16px; }
.gallery__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #23272B66;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: 600 14px/18px var(--sans);
  cursor: pointer;
  transition: border-color 150ms, background-color 150ms;
}
@media (hover: hover) { .gallery__button:hover { border-color: var(--ink); background: #FFFFFF59; } }
.gallery__toggle { padding-inline: 12px; }
.gallery__toggle .icon-play { display: none; }
.gallery.is-stopped .gallery__toggle .icon-play { display: block; }
.gallery.is-stopped .gallery__toggle .icon-pause { display: none; }
.gallery__count { font: 600 14px/18px var(--sans); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .gallery__slide { transition: none; }
  .gallery__toggle { display: none; }
}

/* ---- Home: the two doors ---- */

.doors {
  display: grid;
  grid-template-columns: minmax(0, 920fr) minmax(0, 520fr);
  border-bottom: 1px solid var(--line);
}
.door { position: relative; display: flex; flex-direction: column; }
/* Each door is one link, stretched over its photo and words from its button. The
   gallery's own buttons sit above it, so pressing one never opens the page. */
.door__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.door__link:focus-visible { outline: none; box-shadow: var(--ring); }
.door__photo { position: relative; }
.door__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #23272B;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms;
}
/* Hover only where there's a mouse, so a tapped door doesn't stay dark on phones. */
@media (hover: hover) {
  .door:has(.door__link:hover) .door__photo::after { opacity: 0.06; }
  .door:has(.door__link:hover) .button { background: var(--green-dark); }
  .door:has(.door__link:hover) .button--outline { background: #23272B0D; }
}
.door:active .door__photo::after { opacity: 0.08; }

.door--historic { padding: 48px 48px 0 80px; border-right: 1px solid var(--rule); }
.door--historic .gallery { height: 408px; }
.door--historic .door__words { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px 16px 28px 0; }
.home-title { display: flex; flex-direction: column; gap: 14px; }
.home-title__lead { font: 400 48px/54px var(--display); max-width: 540px; }

.door--commercial { gap: 22px; padding: 48px 80px 64px 56px; background: #FFFFFF; }
/* One of Island's commercial photos, the first in the commercial page's gallery. */
.door__img { display: block; width: 100%; height: 408px; object-fit: cover; object-position: 50% 30%; }
.door--commercial .spot { height: 408px; justify-content: flex-start; gap: 3px; background: #E9E9E4; }
.door--commercial .spot__label { font-size: 11px; line-height: 15px; }
.door--commercial .spot__what { font-size: 15px; line-height: 21px; }
.door--commercial .door__words { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.door--commercial .eyebrow { padding-top: 22px; margin-bottom: 0; }
.door__text { font: 400 26px/34px var(--serif); }
.door--commercial .button { align-self: flex-start; }

/* ---- Home: reviews ---- */

.reviews { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; gap: 40px 80px; padding: 72px 80px 80px; }
.review { display: flex; flex-direction: column; gap: 16px; max-width: 792px; margin: 0; }
.reviews__ask { grid-column: 2; }
.review blockquote { margin: 0; font: 400 20px/32px var(--serif); }
.review figcaption { font: 400 14px/20px var(--sans); color: var(--muted); }
.review figcaption b { font-weight: 700; }
/* Desktop: the short review is set large beside the long one, as a pull quote. */
.review:first-of-type blockquote { font: 400 34px/42px var(--display); }

/* ---- Historic: the gallery, the opening and the section heads ---- */

.lead-gallery { padding: 40px 80px 0; }
.lead-gallery .gallery { height: 536px; }
.lead-gallery .gallery__drawing { width: 59.4%; aspect-ratio: 760 / 374; translate: -50% -52%; }
.lead-gallery .spot { padding: 32px; }
.lead-gallery .spot__what { font-size: 18px; line-height: 26px; }
.lead-gallery .gallery__controls { right: 32px; bottom: 28px; }
.lead-caption { padding-top: 14px; font: 700 17px/24px var(--sans); color: var(--muted); }
.lead-caption b { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 8px; }
.lead-caption i { font: italic 400 17px/24px var(--serif); }

.opening { display: flex; gap: 80px; align-items: flex-start; padding: 88px 80px 96px; }
.opening__head { display: flex; flex-direction: column; gap: 24px; flex: 0 1 660px; }
.opening h1 { font: 400 56px/62px var(--display); letter-spacing: -0.005em; }
.opening__quote { margin: 0; max-width: 600px; font: italic 400 21px/30px var(--serif); }
.opening__side { flex: 0 1 540px; padding-top: 148px; font: 400 21px/32px var(--serif); }

.section-head {
  margin: 0 80px;
  padding: 28px 0 64px;
  border-top: 1px solid var(--rule);
  font: 400 44px/52px var(--display);
}

/* ---- Historic: selected work ---- */

.work-first { display: flex; gap: 80px; align-items: flex-start; padding: 0 80px 112px; }
.work-first .spot { flex: 0 0 auto; width: min(660px, 52%); height: 440px; padding: 32px; }
.work-first .spot__what { max-width: 460px; }
.work-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 0 80px 128px; }
.work-pair .spot { height: 440px; }
.job { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.work-first .job { flex: 0 1 540px; gap: 18px; }
.job .eyebrow { padding-top: 12px; }
.work-first .job .eyebrow { padding-top: 0; }
.job h3 { font: italic 400 26px/32px var(--serif); }
.work-first .job h3 { font-size: 30px; line-height: 36px; }
.job > p:not(.eyebrow) { font: 400 18px/28px var(--serif); }
.job > .spot { align-self: stretch; }

/* ---- Historic: about and the questions ---- */

.about { padding: 96px 80px 120px; background: #FFFFFF; border-top: 1px solid var(--line); }
.about .section-head { margin: 0; padding-bottom: 72px; }
.about-row { display: flex; gap: 80px; align-items: center; padding-bottom: 80px; }
/* Photos on the left in every row, words beside them. */
.about-row--flip { flex-direction: row-reverse; justify-content: flex-end; }
.about-row:nth-of-type(2) { padding-bottom: 80px; }
/* The words are short until John's arrive, so the photo spots are shorter and the words sit
   at their middle. */
.about-row > .spot, .about-row__pair { flex: 0 0 auto; width: min(520px, 44%); height: 220px; }
.about-row__pair { display: flex; gap: 20px; }
.about-row__pair .spot { flex: 1 1 0; padding: 24px; }
.about-row__pair .spot__what { font-size: 16px; line-height: 23px; }
.about-row__words { display: flex; flex-direction: column; gap: 18px; flex: 0 1 540px; }
.about-row__words > p:not(.eyebrow):not(.to-come) { font: 400 19px/30px var(--serif); }

.questions {
  display: flex;
  justify-content: space-between;
  gap: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.questions h2 { flex: 0 1 660px; font: 400 44px/52px var(--display); }
.questions__list { flex: 0 1 540px; }
.question { border-bottom: 1px solid var(--rule); }
.question summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  font: 400 21px/30px var(--serif);
  list-style: none;
  cursor: pointer;
  transition: background-color 150ms;
}
.question summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .question summary:hover { background: #23272B08; } }
.question summary:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.question summary svg { flex-shrink: 0; }
.question .icon-minus { display: none; }
.question[open] .icon-minus { display: block; }
.question[open] .icon-plus { display: none; }
/* An answer eases open in 200ms (instant with reduce motion), where the browser can animate
   to its height; others open at once. */
.question { interpolate-size: allow-keywords; }
.question::details-content { height: 0; overflow: clip; transition: height 200ms ease, content-visibility 200ms allow-discrete; }
.question[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) { .question::details-content { transition: none; } }
.question__answer { padding-bottom: 24px; font: 400 18px/28px var(--serif); }
.question__answer a { text-decoration: underline 1px; text-underline-offset: 4px; }
@media (hover: hover) { .question__answer a:hover { text-decoration: underline 2px var(--green); } }

/* ---- Historic: the page's own quote form on the green band ---- */

.quote-band { display: flex; gap: 80px; padding: 96px 80px; background: var(--green); color: #000000; }
.quote-band__intro { display: flex; flex-direction: column; gap: 28px; flex: 0 1 660px; }
.quote-band h2 { font: 400 52px/58px var(--display); }
.quote-band__intro > p { max-width: 500px; font: 400 20px/30px var(--serif); }
/* The number above the form is underlined, like every number to tap. */
.quote-band__phone {
  align-self: flex-start;
  margin-top: 8px;
  font: 700 28px/34px var(--sans);
  color: #000000;
  text-decoration: underline 2px #000000;
  text-underline-offset: 7px;
  white-space: nowrap;
}
@media (hover: hover) { .quote-band__phone:hover { text-decoration-thickness: 3px; } }
.quote-band__facts { margin: 0; padding: 0; max-width: 500px; list-style: none; border-top: 1px solid #00000040; }
.quote-band__facts li { padding: 10px 0; border-bottom: 1px solid #00000040; font: 400 18px/26px var(--serif); }
.quote-band [data-quote] { flex: 1 1 440px; min-width: 0; max-width: 620px; }
/* Once sent, the thank-you sits at the middle of the band, beside its heading and words. */
.quote-band [data-quote][data-sent] { align-self: center; }

.quote-band .quote-form fieldset { gap: 18px; }
.quote-band .quote-row { gap: 16px; }
.quote-band .quote-field label { color: #000000; }
.quote-band .quote-input input,
.quote-band .quote-input select { height: 50px; border-color: var(--ink); }
.quote-band .quote-input select { padding-left: 16px; }
.quote-band .quote-input textarea { height: 132px; border-color: var(--ink); }
.quote-band .quote-input select.is-empty { color: var(--muted); }
/* On the green band the focus ring is white, outside the field's black edge. */
.quote-band .quote-input input:focus,
.quote-band .quote-input select:focus,
.quote-band .quote-input textarea:focus { border-color: #000000; box-shadow: 0 0 0 3px #FFFFFF; }
.quote-band :focus-visible { outline-color: #FFFFFF; }
.quote-band .quote-submit { width: auto; align-self: flex-start; padding: 16px 28px; }
.quote-band .quote-submit:focus-visible { box-shadow: 0 0 0 3px #FFFFFF; }
.quote-band .quote-actions { align-items: flex-start; padding-top: 6px; }
.quote-band .quote-note { color: #000000; }
.quote-band .quote-failed a { text-decoration-color: #000000; }
.quote-band .quote-done h3 { font-size: 40px; line-height: 46px; }
.quote-band .quote-done p { font-size: 20px; line-height: 30px; }
.quote-band .quote-hint { color: #000000; }

/* ---- About John (ISL-41): John's photo and intro, the press strip, his process, the press ---- */

.john { display: flex; gap: 80px; align-items: flex-start; padding: 40px 80px 88px; }
.john__photo { flex: 0 0 auto; width: min(520px, 42%); height: 620px; }
.john__words { display: flex; flex-direction: column; gap: 24px; flex: 0 1 600px; padding-top: 64px; }
.john h1 { font: 400 56px/62px var(--display); letter-spacing: -0.005em; }
.john__words > p:not(.eyebrow) { font: 400 21px/32px var(--serif); }

/* "As seen in": a thin band naming the papers that wrote about John, each a link to its story below. */
.press-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 48px;
  margin: 0 80px 112px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.press-strip .eyebrow { color: var(--muted); }
.press-strip__name { font: 400 30px/36px var(--display); text-decoration: none; }
@media (hover: hover) { .press-strip__name:hover { text-decoration: underline 2px var(--green); text-underline-offset: 6px; } }

.process { display: flex; flex-direction: column; gap: 56px; padding: 0 80px 112px; }
.pull, .step { margin: 0; }
.pull blockquote { margin: 0; max-width: 1000px; font: italic 400 40px/50px var(--serif); }
.process__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--rule); }
.step blockquote { margin: 0; font: 400 22px/33px var(--serif); }
.process__source { margin-top: -24px; font: 400 14px/20px var(--sans); color: var(--muted); }

.press { padding: 96px 80px 120px; background: #FFFFFF; border-top: 1px solid var(--line); }
.press .section-head { margin: 0; padding-bottom: 72px; }
.press-story { display: flex; gap: 80px; align-items: flex-start; }
.press-story > .spot { flex: 0 0 auto; width: min(660px, 52%); height: 440px; padding: 32px; }
.press-story__words { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; flex: 0 1 540px; }
.press-story h3 { font: italic 400 30px/36px var(--serif); }
.press-story__byline { margin-top: -8px; font: 400 15px/20px var(--sans); color: var(--muted); }
.press-story__words > p:not(.eyebrow):not(.press-story__byline) { font: 400 18px/28px var(--serif); }
.press-story__words > .press-quote { padding-left: 18px; border-left: 2px solid var(--green); font-style: italic; }

/* ---- Text carried from the old site (ISL-68) ----
   Each old section keeps its wording: its heading over its words, in one centered reading
   column, ruled off from the section above by a rule as wide as the column. Used on every
   page that took old text, and for most of the contact and remodeling pages. */

.copy { padding-bottom: 72px; }
.copy--band { padding-top: 96px; background: #FFFFFF; border-top: 1px solid var(--line); }
.copy__block, .copy__pair, .copy > .section-head, .copy__spot, .copy__back { width: min(800px, 100% - 160px); margin-inline: auto; }
.copy__block {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 0 56px;
  border-top: 1px solid var(--rule);
}
/* A big carried heading sits closer to its words than to the rule above it. */
.copy > .section-head { padding-bottom: 24px; }
.section-head + .copy__block { padding-top: 0; border-top: 0; }
.copy__head { font: italic 400 26px/32px var(--serif); }
.copy__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.copy__body > p { font: 400 18px/28px var(--serif); }
.copy__body > p a { text-decoration: underline 1px; text-underline-offset: 4px; }
@media (hover: hover) { .copy__body > p a:hover { text-decoration: underline 2px var(--green); } }
.copy__body .text-link { margin-top: 8px; }
.copy__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  align-self: stretch;
  margin: 4px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.copy__list li { padding: 9px 0; border-bottom: 1px solid var(--rule); font: 400 17px/24px var(--serif); }
/* Inside the historic page's white "About Island" band, which has its own side padding. */
.about .copy { padding-bottom: 48px; }
/* Two short lists side by side, each with its heading (the historic page's Services and
   Specialties). The longer list runs in two columns, so both end together. */
.copy__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 32px; border-top: 1px solid var(--rule); }
.copy__pair > .copy__block { width: auto; margin: 0; border-top: 0; }
.copy__pair > .copy__block:first-child .copy__list { grid-template-columns: 1fr; }
/* The remodeling page's opening section: its carried heading sits as a quiet label, so the
   page title is the one loud line. */

/* The opening of the contact and remodeling pages: the heading, with a small line over it. */
.page-title { padding: 72px 80px 88px; }
.page-title h1 { display: flex; flex-direction: column; gap: 14px; max-width: 920px; }
/* A page made of carried text opens in the same centered column as its text. */
.page-title--column { width: min(800px, 100% - 160px); margin-inline: auto; padding-inline: 0; }
.page-title__lead { font: 400 56px/62px var(--display); letter-spacing: -0.005em; }
/* The contact page: its form comes first, then the facts. */
.quote-band + .facts { padding-top: 72px; }
/* The remodeling page's links to its four sections, under its title. */
.jump { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; font: 600 16px/24px var(--sans); }
/* Each section's photo spot, under its heading, and its link back up to the four links. */
.copy__spot { height: 280px; margin-bottom: 40px; }
.copy__back { margin-top: -8px; margin-bottom: 20px; font: 600 15px/22px var(--sans); }
#services { scroll-margin-top: 104px; }
.copy__back a { text-decoration: underline 1px; text-underline-offset: 5px; }
.jump a { text-decoration: underline 2px var(--green); text-underline-offset: 6px; }
@media (hover: hover) { .jump a:hover { text-decoration-color: var(--ink); } }
.copy > .section-head { scroll-margin-top: 104px; }

/* The contact page's facts: address, towns, hours and the rest, in ruled columns. */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0 80px;
  padding-bottom: 96px;
}
.fact { display: flex; flex-direction: column; gap: 8px; padding: 20px 0 32px; border-top: 1px solid var(--rule); }
.fact h2 { font: 600 13px/20px var(--sans); letter-spacing: 0.09em; text-transform: uppercase; }
/* Set in the sans, whose figures line up: Fanwood's old-style ones made "#110" read as "#I I o". */
.fact p, .fact address, .fact li { font: 400 17px/27px var(--sans); font-style: normal; }
.fact ul { margin: 0; padding: 0; list-style: none; }
.fact .phone-link { font: 700 20px/28px var(--sans); }
.fact .fact__note { margin-top: 8px; font: 400 15px/22px var(--sans); color: var(--muted); }

/* Home: the line under the reviews that asks for one. */
.reviews__ask { max-width: 792px; font: 400 17px/27px var(--serif); color: var(--muted); }
.reviews__ask a { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 4px; }
@media (hover: hover) { .reviews__ask a:hover { text-decoration: underline 2px var(--green); } }

/* ---- Footer ---- */

.site-footer {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 232px));
  justify-content: space-between;
  gap: 30px;
  padding: 56px 80px 64px;
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  font: 400 15px/23px var(--sans);
}
.site-footer__logo img { display: block; width: 150px; height: 44px; object-fit: contain; object-position: left; }
.site-footer h2 {
  margin-bottom: 8px;
  font: 600 12px/18px var(--sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.site-footer address { font-style: normal; }
.site-footer .phone-link { font-size: 20px; }
.site-footer__call p { margin-top: 8px; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 26px; }
.site-footer nav a { text-decoration: underline 1px; text-underline-offset: 5px; white-space: nowrap; }
@media (hover: hover) { .site-footer nav a:hover { text-decoration: underline 2px var(--green); } }

/* ---- In between: narrower laptops and tablets ---- */

@media (max-width: 1199px) and (min-width: 800px) {
  .door--historic { padding-left: 48px; }
  .door--commercial { padding-right: 48px; padding-left: 40px; }
  .home-title__lead { font-size: 40px; line-height: 46px; }
  .door__text { font-size: 22px; line-height: 30px; }
  .reviews, .opening, .work-first, .work-pair, .about, .quote-band, .site-footer { padding-inline: 48px; }
  .lead-gallery { padding-inline: 48px; }
  .section-head { margin-inline: 48px; }
  .opening, .work-first, .work-pair, .about-row, .questions, .quote-band { gap: 48px; }
  .opening h1 { font-size: 46px; line-height: 52px; }
  .opening__side { padding-top: 120px; }
  .site-footer { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .john, .process, .press { padding-inline: 48px; }
  .press-strip { margin-inline: 48px; }
  .john, .process__steps, .press-story { gap: 48px; }
  .john h1 { font-size: 46px; line-height: 52px; }
  .john__photo { height: 520px; }
  .john__words { padding-top: 24px; }
  .pull blockquote { font-size: 34px; line-height: 44px; }
  .copy__block, .copy__pair, .copy > .section-head, .copy__spot, .copy__back { width: min(800px, 100% - 96px); }
  .facts { margin-inline: 48px; }
  .page-title { padding-inline: 48px; }
  .page-title--column { width: min(800px, 100% - 96px); padding-inline: 0; }
  .page-title__lead { font-size: 46px; line-height: 52px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Below 1100 px the form can't sit beside its intro, so it goes under it. */
@media (max-width: 1099px) and (min-width: 800px) {
  .quote-band { flex-direction: column; }
  .quote-band__intro, .quote-band [data-quote] { flex-basis: auto; }
}

/* ---- Phones ---- */

@media (max-width: 799px) {
  .spot { padding: 18px; gap: 2px; }
  .spot__label { font-size: 11px; line-height: 15px; }
  .spot__what { font-size: 15px; line-height: 21px; }
  .to-come { font-size: 17px; line-height: 26px; }
  .eyebrow { font-size: 12px; line-height: 18px; }

  .gallery__controls { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; }
  .gallery__steps { gap: 12px; }
  .gallery__button { min-width: 44px; height: 44px; }
  .gallery__toggle { padding-inline: 12px; }
  .gallery .spot { padding: 18px 16px; }

  .doors { display: block; border-bottom: 0; }
  .door--historic { padding: 16px 16px 0; border-right: 0; }
  .door--historic .gallery { height: 256px; }
  .door--historic .gallery__drawing { width: 68%; translate: -50% -38%; }
  .door--historic .door__words { gap: 12px; padding: 22px 0 28px; align-items: stretch; }
  .home-title { gap: 12px; }
  .home-title__lead { font-size: 31px; line-height: 36px; }
  .door--historic .button { text-align: center; padding-block: 15px; }

  .door--commercial {
    flex-direction: row;
    gap: 14px;
    padding: 24px 16px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
  }
  .door--commercial .door__photo { flex: 0 0 132px; }
  .door--commercial .spot, .door__img { height: 132px; }
  .door--commercial .spot { padding: 8px; gap: 4px; }
  .door--commercial .spot__label { font-size: 10px; line-height: 12px; letter-spacing: 0.06em; }
  .door--commercial .spot__what { font-size: 13px; line-height: 17px; }
  .door--commercial .door__words { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .door--commercial .eyebrow { padding-top: 0; }
  .door__text { font-size: 18px; line-height: 24px; }
  /* On phones the commercial door's button is an underlined link. */
  .door--commercial .button--outline {
    padding: 0;
    border: 0;
    font-size: 15px;
    text-decoration: underline 2px var(--green);
    text-underline-offset: 5px;
  }

  .reviews { display: flex; flex-direction: column; gap: 32px; padding: 40px 16px 44px; border-top: 1px solid var(--line); }
  .review { gap: 10px; }
  .review blockquote { font-size: 18px; line-height: 28px; }
  .review:first-of-type blockquote { font-size: 26px; line-height: 32px; }

  .lead-gallery { padding: 16px 16px 0; }
  .lead-gallery .gallery { height: 336px; }
  .lead-gallery .gallery__drawing { width: 94%; translate: -50% -42%; }
  .lead-gallery .spot { padding: 20px 16px; }
  .lead-gallery .spot__label { font-size: 12px; line-height: 16px; }
  .lead-gallery .spot__what { font-size: 16px; line-height: 22px; }
  .lead-gallery .gallery__controls { left: 16px; right: 16px; bottom: 16px; }
  .lead-caption { padding: 12px 16px 0; font-size: 15px; line-height: 21px; }
  .lead-caption b { font-size: 10px; margin-right: 4px; }
  .lead-caption i { font-size: 15px; line-height: 21px; }

  .opening { flex-direction: column; gap: 18px; padding: 20px 16px 56px; }
  .opening__head { gap: 14px; flex-basis: auto; }
  .opening h1 { font-size: 36px; line-height: 40px; letter-spacing: 0; }
  .opening__quote { font-size: 19px; line-height: 27px; }
  .opening__side { flex-basis: auto; padding-top: 0; font-size: 18px; line-height: 27px; }

  .section-head { margin: 0 16px; padding: 20px 0 22px; font-size: 32px; line-height: 38px; }

  .work-first, .work-pair { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
  .work-pair { padding-bottom: 56px; }
  .work-pair .job { gap: 14px; }
  .work-first { padding-bottom: 28px; }
  .work-pair .job + .job { padding-top: 28px; }
  .work-first .spot { width: auto; height: 260px; padding: 18px; }
  .work-pair .job:first-child .spot { height: 270px; }
  .work-pair .job:last-child .spot { height: 220px; }
  .job, .work-first .job { gap: 14px; align-items: stretch; flex-basis: auto; }
  .job .eyebrow, .work-first .job .eyebrow { padding-top: 8px; }
  .job h3, .work-first .job h3 { font-size: 25px; line-height: 30px; }
  .job > p:not(.eyebrow) { font-size: 17px; line-height: 26px; }
  .job .text-link { align-self: flex-start; }

  .about { padding: 56px 16px 64px; }
  .about .section-head { margin: 0; padding: 20px 0 40px; }
  .about-row, .about-row--flip { flex-direction: column; align-items: stretch; gap: 14px; padding-bottom: 56px; }
  .about-row:nth-of-type(2) { padding-bottom: 56px; }
  .about-row > .spot { width: auto; height: 300px; padding: 16px; }
  .about-row:nth-of-type(3) > .spot { height: 240px; }
  .about-row__pair { width: auto; height: 220px; gap: 12px; }
  .about-row__pair .spot { padding: 12px; }
  .about-row__pair .spot__label { font-size: 10px; line-height: 14px; }
  .about-row__pair .spot__what { font-size: 14px; line-height: 19px; }
  .about-row__words { flex-basis: auto; gap: 14px; padding-top: 12px; }
  .about-row__words > p:not(.eyebrow):not(.to-come) { font-size: 18px; line-height: 28px; }
  /* On phones each block reads photo first, then its words. */
  .about-row--flip { flex-direction: column-reverse; }
  .about-row:nth-of-type(2) .about-row__words .eyebrow { padding-top: 12px; }

  .questions { flex-direction: column; gap: 16px; }
  .questions h2 { flex-basis: auto; font-size: 32px; line-height: 38px; }
  .questions__list { flex-basis: auto; }
  .question summary { gap: 16px; padding: 14px 0; font-size: 19px; line-height: 26px; }
  .question__answer { padding-bottom: 20px; font-size: 17px; line-height: 26px; }

  .quote-band { flex-direction: column; gap: 16px; padding: 48px 16px; }
  .quote-band__intro { display: contents; }
  .quote-band h2 { font-size: 36px; line-height: 40px; }
  .quote-band__intro > p { font-size: 18px; line-height: 27px; }
  .quote-band__phone { margin-top: 0; font-size: 24px; line-height: 30px; }
  .quote-band [data-quote] { padding-top: 8px; }
  .quote-band .quote-form fieldset { gap: 16px; }
  .quote-band .quote-row { gap: 16px; }
  .quote-band .quote-input input:not([type='hidden']),
  .quote-band .quote-input select { height: 50px; }
  .quote-band .quote-input select { padding-left: 14px; }
  .quote-band .quote-input textarea { height: 120px; }
  .quote-band .quote-submit { width: 100%; }
  .quote-band .quote-actions { align-items: stretch; padding-top: 4px; }
  .quote-band__facts { order: 1; margin-top: 12px; }
  .quote-band__facts li { font-size: 17px; line-height: 24px; }

  .john { flex-direction: column; align-items: stretch; gap: 20px; padding: 16px 16px 48px; }
  .john__photo { width: auto; height: 380px; }
  .john__words { flex-basis: auto; gap: 14px; padding-top: 0; }
  /* About John: his name and headline come first, then his photo, then the rest of his words. */
  .page--about .john { gap: 14px; }
  .page--about .john__words { display: contents; }
  .page--about .john__words .eyebrow { order: 1; }
  .page--about .john h1 { order: 2; }
  .page--about .john__photo { order: 3; height: 300px; margin: 6px 0; }
  .page--about .john__words > p:not(.eyebrow) { order: 4; }
  .john h1 { font-size: 36px; line-height: 40px; letter-spacing: 0; }
  .john__words > p:not(.eyebrow) { font-size: 18px; line-height: 27px; }
  .press-strip { gap: 4px 24px; margin: 0 16px 56px; padding: 16px 0; }
  .press-strip__name { font-size: 24px; line-height: 30px; }
  .process { gap: 28px; padding: 0 16px 48px; }
  .pull blockquote { font-size: 26px; line-height: 34px; }
  .process__steps { grid-template-columns: 1fr; gap: 28px; }
  .step blockquote { font-size: 19px; line-height: 28px; }
  .process__source { margin-top: -12px; }
  .page--about .work-first { padding-bottom: 56px; }
  .press { padding: 56px 16px 64px; }
  .press .section-head { margin: 0; padding: 20px 0 32px; }
  .press-story { flex-direction: column; align-items: stretch; gap: 14px; }
  .press-story > .spot { width: auto; height: 260px; padding: 18px; }
  .press-story__words { gap: 14px; flex-basis: auto; }
  .press-story h3 { font-size: 25px; line-height: 30px; }
  .press-story__words > p:not(.eyebrow):not(.press-story__byline) { font-size: 17px; line-height: 26px; }

  .copy { padding-bottom: 40px; }
  .copy--band { padding-top: 56px; }
  .copy__block, .copy__pair, .copy > .section-head, .copy__spot, .copy__back { width: auto; margin-inline: 16px; }
  .copy__spot { height: 200px; margin-bottom: 24px; padding: 16px; }
  .jump { display: grid; grid-template-columns: 1fr 1fr; justify-items: start; gap: 14px 24px; margin-top: 24px; }
  .copy__block { gap: 12px; padding: 20px 0 36px; }
  .about .copy__block, .about .copy__pair { margin-inline: 0; }
  .copy__pair { grid-template-columns: 1fr; }
  /* Services and Specialties: short items, so two compact columns with no rules. */
  .copy__pair > .copy__block:nth-child(n) .copy__list { grid-template-columns: 1fr 1fr; column-gap: 16px; border-top: 0; }
  .copy__pair .copy__list li { padding: 3px 0; border-bottom: 0; font-size: 15px; line-height: 21px; }
  .copy__pair > .copy__block + .copy__block { border-top: 1px solid var(--rule); }
  .copy__head { flex-basis: auto; font-size: 23px; line-height: 29px; }
  .copy__body { flex-basis: auto; gap: 14px; margin-left: 0; }
  .copy__body > p { font-size: 17px; line-height: 26px; }
  .copy__list { grid-template-columns: 1fr; }
  .copy__list li { font-size: 16px; line-height: 23px; }
  .about .copy { padding-bottom: 24px; }
  .page-title { padding: 24px 16px 40px; }
  .page-title--column { width: auto; margin-inline: 0; }
  .page-title h1 { gap: 12px; }
  .page-title__lead { font-size: 36px; line-height: 40px; letter-spacing: 0; }
  .facts { grid-template-columns: 1fr; margin: 0 16px; padding-bottom: 48px; }
  .quote-band + .facts { padding-top: 40px; }
  .fact { padding: 16px 0 24px; }
  .fact p, .fact address, .fact li { font-size: 17px; line-height: 26px; }
  .reviews__ask { font-size: 16px; line-height: 25px; }

  /* The footer runs under the bottom bar's space, so no strip of page shows below it. */
  .site-footer { display: flex; flex-direction: column; gap: 28px; margin-bottom: calc(-1 * var(--bar-h)); padding: 40px 16px calc(40px + var(--bar-h)); }
  .site-footer h2 { margin-bottom: 6px; }
  .site-footer address br.wide { display: none; }
  .site-footer .phone-link { font-size: 19px; }
  .site-footer__call p { margin-top: 0; }
  .site-footer nav { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; padding-top: 0; }
}
@media (min-width: 800px) {
  .site-footer address .narrow { display: none; }
}

/* The narrowest phones (320px): shorter top photos on home and historic, so the first screen
   holds the heading and, on home, its button above the bottom bar. */
@media (max-width: 359px) {
  .door--historic .gallery { height: 156px; margin-bottom: 52px; overflow: visible; }
  /* Its controls sit in a row under the picture, so they don't cross the drawing. */
  .door--historic .gallery__controls { top: calc(100% + 8px); bottom: auto; left: 0; right: 0; }
  .lead-gallery .gallery { height: 180px; margin-bottom: 52px; overflow: visible; }
  /* Its controls sit in a row under the picture, so they don't cover the drawing. */
  .lead-gallery .gallery__controls { top: calc(100% + 8px); bottom: auto; left: 0; right: 0; }
}
