/* The Cake Boutique by Chef Ellah: the site's only stylesheet. */

@font-face {
  font-family: 'Della Respira';
  src: url('../fonts/DellaRespira-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-latin.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  src: url('../fonts/Jost-latinext.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #FFFFFF;
  --rose: #D8A9A9;
  --rose-hover: #CF9B9B;
  --blush: #F6E4E6;
  --blush-rule: #E3C9CD;
  --rose-deep: #B98585;
  --rose-text: #986868;
  --ink: #2D2D2D;
  --ink-hover: #4A3C3C;
  --body: #5F5F5F;
  --mist: #757575;
  --rule: #E6DEDE;
  --field: #CFC4C4;

  --font-display: 'Della Respira', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --gutter: 40px;
  --measure: 1200px;
  --section: 96px;

  --t-hero: clamp(2.375rem, 1.55rem + 2.6vw, 3.625rem);
  --t-title: clamp(2.125rem, 1.6rem + 1.7vw, 3.0625rem);
  --t-h2: clamp(2rem, 1.55rem + 1.45vw, 2.625rem);
  --t-h3: clamp(1.5rem, 1.3rem + 0.6vw, 1.6875rem);
  --t-band: clamp(2rem, 1.45rem + 1.75vw, 2.6875rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
strong, b { font-weight: 400; color: var(--ink); }

a { color: var(--rose-text); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-hover); }

::selection { background: var(--blush); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 400;
  font-size: 15px;
}
.skip:focus { top: 12px; }
.skip:hover, .skip:focus { color: var(--paper); }

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Buttons and text links */

.btn {
  display: inline-block;
  padding: 17px 30px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out);
}
.btn:hover { background: var(--ink-hover); color: var(--paper); }
.btn--rose { padding: 13px 22px; background: var(--rose); color: var(--ink); }
.btn--rose:hover { background: var(--rose-hover); color: var(--ink); }
.btn--compact { padding: 16px 28px; }

.link {
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
  padding: 4px 0;
}
.link:hover { color: var(--rose-text); }
button.link { background: none; border: 0; font-family: inherit; line-height: inherit; cursor: pointer; }

/* Header and navigation */

.site-head { border-bottom: 1px solid var(--rule); }

.site-head__bar {
  min-height: 88px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.1;
}
.brand:hover { color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
}
.brand__by { display: block; margin-top: 2px; font-size: 13px; color: var(--mist); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 36px;
  font-size: 15px;
  font-weight: 400;
}
.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 0;
}
.site-nav a:not(.btn):hover { color: var(--rose-text); }
.site-nav a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.menu-toggle {
  display: none;
  padding: 12px 0 12px 16px;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
}

/* Sections */

.section { padding: var(--section) 0; }
.section--ruled { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 88px 0; }
.section--flush-top { padding-top: 0; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: var(--t-h2); }
.section-head--narrow { max-width: 620px; margin-bottom: 48px; }

/* Hero and page heads */

.hero { padding: 72px 0 80px; }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: var(--t-hero); line-height: 1.04; letter-spacing: -0.01em; }
.page-title { font-size: var(--t-title); line-height: 1.04; }
.lede { font-size: 19px; color: var(--body); max-width: 480px; }
.page-head .lede { max-width: 520px; }
.lede + .lede { margin-top: -12px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--mist);
}

.photo {
  width: 100%;
  object-fit: cover;
  background: var(--blush);
}
.photo--tall { aspect-ratio: 4 / 5; }
.photo--square { aspect-ratio: 1 / 1; }
/* A portrait keeps the face in frame when the photo crops to 5:4 on phones. */
.hero__photo--portrait > .photo { object-position: 50% 0; }

.photo-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: 24px;
  background: var(--blush);
  color: var(--body);
  font-size: 15px;
  text-align: center;
}

/* The three doors */

.doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.door {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
}
.door:hover { color: var(--ink); }
.door__body { display: flex; flex-direction: column; gap: 8px; }
.door__title { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.1; }
.door:hover .door__title { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.door__text { font-size: 16px; color: var(--body); }
.door__price { margin-top: 4px; font-size: 15px; font-weight: 400; color: var(--rose-text); }

/* Recent work and the portfolio wall */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.work { display: flex; flex-direction: column; gap: 10px; }
.work figcaption, .wall figcaption { font-size: 14px; color: var(--mist); }
.work__title { color: var(--ink); font-weight: 400; }

html:not(.js) .filters { display: none; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-bottom: 40px;
  font-size: 15px;
  font-weight: 400;
}
.filters button {
  padding: 8px 0;
  background: none;
  border: 0;
  color: var(--mist);
  font: inherit;
  cursor: pointer;
}
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
}
.wall__item { grid-column: span 5; }
.wall__item--wide { grid-column: span 7; }
.wall__item[hidden] { display: none; }
.wall__item figure { display: flex; flex-direction: column; gap: 10px; height: 100%; }
/* A row pairs a wide photo with a narrow one; the frames' ratios give both
   the same height, and alternate rows sit lower. */
.wall__frame { position: relative; flex: 1 0 auto; aspect-ratio: 5 / 6; background: var(--blush); }
.wall__item--wide .wall__frame { aspect-ratio: 7 / 6; }
.wall__item--low .wall__frame { aspect-ratio: 1 / 1; }
.wall__item--wide.wall__item--low .wall__frame { aspect-ratio: 7 / 5; }
.wall__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall-empty { font-size: 17px; color: var(--body); }
.wall-empty button {
  padding: 0;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}

@media (hover: hover) {
  .wall figcaption { opacity: 0; transition: opacity 0.25s var(--ease-out); }
  .wall__item:hover figcaption,
  html:has(:focus-visible) .wall figcaption { opacity: 1; }
}

/* Numbered steps (the booking sequence) */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.step__n { font-family: var(--font-display); font-size: 36px; line-height: 1; color: var(--rose-deep); }
.step__title { font-size: 18px; font-weight: 400; }
.step p { font-size: 15px; color: var(--body); }

/* Starting prices panel */

.prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
  padding: 64px;
  background: var(--blush);
}
.prices__text { display: flex; flex-direction: column; gap: 18px; }
.prices__text h2 { font-size: clamp(2rem, 1.5rem + 1.35vw, 2.5rem); }
.prices__text p { font-size: 16px; color: var(--body); max-width: 440px; }
.price-list { display: flex; flex-direction: column; }
.price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--blush-rule);
}
.price-row:last-of-type { border-bottom: 0; }
.price-row dt { font-size: 17px; }
.price-row dd { font-family: var(--font-display); font-size: 27px; line-height: 1.2; color: var(--rose-text); }
.prices .btn { align-self: flex-start; margin-top: 20px; }

/* About: the things that do not change, set in the price list's lines */

.pledges { display: flex; flex-direction: column; }
.pledges li {
  padding: 18px 0;
  border-bottom: 1px solid var(--blush-rule);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.25;
  color: var(--ink);
}
.pledges li:first-child { padding-top: 0; }
.pledges li:last-child { border-bottom: 0; padding-bottom: 0; }

/* Portfolio */

.portfolio { padding-top: 72px; }
.portfolio__title { margin-bottom: 28px; }

/* Split: a photo beside text (Meet Chef Ellah, page sections) */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  align-items: center;
}
.split__text { display: flex; flex-direction: column; gap: 22px; }
.split__text h2 { font-size: var(--t-h2); }
.split__text p { font-size: 17px; color: var(--body); }
.split__text .link { align-self: flex-start; }

/* Questions and answers */

.qa {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}
.qa h2 { font-size: var(--t-h2); }
.qa__list { border-top: 1px solid var(--rule); }
.qa__item { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.qa__item dt { font-size: 18px; font-weight: 400; }
.qa__item dd { margin-top: 8px; font-size: 16px; color: var(--body); max-width: 60ch; }

/* Running text on About */

.prose { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.prose h2 { font-size: var(--t-h2); }
.prose p { font-size: 17px; color: var(--body); }
.prose-pair > h2 { font-size: var(--t-h2); }
.prose-pair {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

/* Testimonials */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.quote { display: flex; flex-direction: column; gap: 18px; }
.quote__mark { font-family: var(--font-display); font-size: 51px; line-height: 0.6; color: var(--rose-deep); }
.quote blockquote p { font-family: var(--font-display); font-size: 22px; line-height: 1.35; }
.quote figcaption { font-size: 14px; color: var(--mist); }

/* The rose band */

.band { padding: var(--section) 0; background: var(--rose); color: var(--ink); }
.band__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
}
.band__text { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.band h2 { font-size: var(--t-band); }
.band p { font-size: 17px; }
.band__action { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.band__note { font-size: 14px; }
.band a:not(.btn) { color: var(--ink); }

/* Footer */

.site-foot { padding: 48px 0; font-size: 14px; color: var(--mist); }
main + .site-foot { border-top: 1px solid var(--rule); }
.site-foot__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
}
.site-foot__id { display: flex; flex-direction: column; gap: 6px; }
.site-foot__name { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.site-foot a { color: var(--mist); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
/* Links inside the contact sentence keep their underline: touch has no hover. */
.site-foot__id a { text-decoration: underline; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; }
.site-foot__links a { padding: 6px 0; }
/* The Texas cottage food notice: the law writes the disclosure in capitals. */
.site-foot__law { max-width: 640px; margin-top: 32px; }

/* Request a quote */

.quote-page { padding: 72px 0 96px; }
.quote-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: start;
}
.quote-page__main { display: flex; flex-direction: column; gap: 36px; }
.quote-page__intro { display: flex; flex-direction: column; gap: 14px; }
.quote-page__intro p { font-size: 17px; color: var(--body); max-width: 560px; }

.form { display: flex; flex-direction: column; gap: 24px; }
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 400; }
.field__hint { font-size: 14px; color: var(--mist); }
.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  caret-color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.input::placeholder { color: var(--mist); opacity: 1; }
.input:hover { border-color: var(--rose-deep); }
.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
textarea.input { height: auto; min-height: 150px; padding: 14px; resize: vertical; line-height: 1.5; }
select.input {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232D2D2D' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
input[type="date"].input { line-height: 48px; }
input[type="date"].input:invalid::-webkit-datetime-edit { color: var(--mist); }
/* The date field's calendar drawn like the select's chevron; the browser's own
   button stays on top of it, invisible, so a click still opens the picker. */
@supports selector(::-webkit-calendar-picker-indicator) {
  input[type="date"].input {
    position: relative;
    padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 3.5h13v11h-13zM1.5 7h13M5 1.5v3M11 1.5v3' fill='none' stroke='%232D2D2D' stroke-width='1.2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
  }
  input[type="date"].input::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 48px;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
  }
  input[type="date"].input:focus-within { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
}
input[type="file"].input {
  height: auto;
  padding: 12px 14px;
  border-style: dashed;
  font-size: 15px;
  cursor: pointer;
}
input[type="file"].input::file-selector-button {
  margin-right: 14px;
  padding: 8px 16px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}
.form__note { font-size: 14px; color: var(--mist); }
.form__note a { color: var(--ink); }
.form__status { font-size: 15px; color: var(--ink); }
.form__status:empty { display: none; }
.form[hidden] { display: none; }
/* Sending: the button stays where it is, and says so to the pointer. */
.form .btn[aria-disabled="true"] { background: var(--ink-hover); cursor: progress; }
/* Without the script nothing can send, so the page says to call instead. */
html:not(.js) .form__foot .btn { display: none; }

.field__error { font-size: 14px; color: var(--rose-text); }
.input[aria-invalid="true"] { border-color: var(--rose-text); }
.field__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 20px; }
.form__photos { display: flex; flex-wrap: wrap; gap: 12px; }
.form__photos[hidden] { display: none; }
.form__photos img { width: 88px; height: 88px; object-fit: cover; background: var(--blush); }
/* The honeypot: off the page for people, there for bots. */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.quote-sent {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}
.quote-sent[hidden] { display: none; }
.quote-sent h2 { font-size: var(--t-h3); line-height: 1.1; }
.quote-sent h2:focus { outline: none; }
.quote-sent p { color: var(--body); }

.aside {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px;
  background: var(--blush);
}
.aside h2 { font-size: 27px; line-height: 1.1; }
.aside__steps { display: flex; flex-direction: column; gap: 22px; }
.aside__step { display: flex; gap: 16px; align-items: flex-start; }
.aside__n { min-width: 36px; font-family: var(--font-display); font-size: 25px; line-height: 1; color: var(--rose-text); }
.aside__step p { font-size: 15px; color: var(--body); }
.aside__notes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--blush-rule);
}
.aside__notes h3 { font-family: var(--font-body); font-size: 15px; font-weight: 400; line-height: 1.6; }
.aside__notes p { font-size: 15px; color: var(--body); }

/* Narrower screens */

@media (max-width: 1080px) {
  :root { --gutter: 32px; }
  .hero__grid, .split { gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .quote-page__grid { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --section: 72px; }
  .site-head__bar { min-height: 72px; }
  /* Keeps the first row 72px tall when the open menu wraps below it. */
  .brand { min-height: 72px; }
  .hero { padding: 40px 0 64px; }
  .hero__grid, .split, .prices, .qa, .prose-pair, .quote-page__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: 40px; }
  .hero__photo { margin: 0 calc(-1 * var(--gutter)); }
  .split { gap: 40px; }
  .prices { padding: 48px 40px; gap: 32px; }
  .qa, .prose-pair { gap: 32px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .quote { max-width: 560px; }
  .section--ruled { padding: 72px 0; }
  .quote-page { padding: 48px 0 72px; }
  .portfolio { padding-top: 48px; }
  .pledges li { font-size: 24px; }
  .wall { gap: 32px 16px; }
}

@media (max-width: 720px) {
  /* On a phone the cake comes first, under the bar, so the first screen shows it. */
  .hero { padding-top: 0; }
  .hero__photo { order: -1; }
  .hero__photo > *, .split > .photo, .split > .photo-missing { aspect-ratio: 5 / 4; }
  .doors { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .door img { aspect-ratio: 5 / 4; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .wall { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wall__item, .wall__item--wide { grid-column: auto; }
  .wall__frame, .wall__item--wide .wall__frame, .wall__item--low .wall__frame { aspect-ratio: 4 / 5; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; --section: 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .prices { padding: 40px 24px; margin: 0 calc(-1 * var(--gutter)); }
  .aside { padding: 32px 24px; margin: 0 calc(-1 * var(--gutter)); }
  .lede { font-size: 18px; }
  .site-head__bar { column-gap: 12px; }
  .menu-toggle { padding-left: 12px; }
  .brand { gap: 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand__name { font-size: 22px; }
}

/* The menu collapses only when the script is there to open it. */
@media (max-width: 900px) {
  .js .menu-toggle { display: block; }
  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 20px;
  }
  .js .site-head.is-open .site-nav { display: flex; animation: menu-open 0.22s var(--ease-out); }
  .js .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .js .site-nav .btn { margin-top: 20px; text-align: center; }
}

@keyframes menu-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

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