/* Hallmark · custom · Butterfold Bakery · butter wrapping, cobalt slab mast */
/* Critique: A broad bakery masthead leads into the photographed bakes and counter pricing. */
@font-face {
  font-family: "BRIC";
  src: url("./fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DMS";
  src: url("./fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f7e8ad;
  --ink: #242f51;
  --line: #c7b779;
  --focus: #274da8;
  --cta: #243e88;
  --cta-ink: #fff5cb;
  --display: "BRIC", Georgia, serif;
  --body: "DMS", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 1.5rem;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: var(--heading-weight, 400);
  line-height: 1;
  min-width: 0;
  overflow-wrap: break-word;
}
h1,
h2 {
  text-wrap: balance;
}
p {
  max-width: 65ch;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: none;
}
img {
  display: block;
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  z-index: 3;
  left: 1rem;
  top: -7rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.65rem 1rem;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: min(91%, 81rem);
  margin-inline: auto;
}
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.4rem;
}
.site-head nav {
  display: flex;
  gap: clamp(0.7rem, 2.1vw, 2.4rem);
  align-items: center;
  flex-wrap: wrap;
}
.site-head nav a {
  text-decoration: none;
  font-size: 0.9rem;
}
.site-head nav a:hover {
  text-decoration: underline;
}
.wordmark {
  color: inherit;
  font-family: var(--display);
  text-decoration: none;
  line-height: 1;
}
.site-foot {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.site-foot .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-foot p {
  font-size: 0.83rem;
}
.site-foot a {
  white-space: nowrap;
}
.jump,
.action {
  display: inline-flex;
  min-height: 2.8rem;
  padding: 0.65rem 1.15rem;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 1px solid currentColor;
  color: var(--cta-ink);
  background: var(--cta);
  font-weight: 650;
}
.jump:hover,
.action:hover {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}
.detail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section {
  padding-block: clamp(3.4rem, 7vw, 7.5rem);
}
.section h2 {
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  margin-bottom: 1rem;
}
.section h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin: 1rem 0 1.2rem;
}
.choices button,
.stepper button {
  padding: 0.55rem 0.9rem;
  min-height: 2.75rem;
  border: 1px solid currentColor;
}
.choices button[aria-pressed="true"],
.stepper button:hover {
  background: var(--cta);
  color: var(--cta-ink);
}
form,
fieldset {
  min-width: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
legend,
label {
  font-weight: 650;
}
select {
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.55rem 2.2rem 0.55rem 0.75rem;
  border: 1px solid currentColor;
  background: var(--control, var(--paper));
  border-radius: 0;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.stepper button {
  min-width: 2.75rem;
  padding-inline: 0.5rem;
}
.stepper button:disabled {
  background: var(--paper);
  color: var(--line);
  border-color: var(--line);
  cursor: not-allowed;
}
.stepper output {
  font-variant-numeric: tabular-nums;
  min-width: 1.25rem;
  text-align: center;
}
.note {
  font-size: 0.82rem;
  line-height: 1.45;
}
.section p + p {
  margin-top: 0.75rem;
}
@media (max-width: 640px) {
  .site-head {
    min-height: 4.25rem;
    gap: 0.8rem;
  }
  .site-head nav {
    gap: 0.8rem;
  }
  .site-head nav a {
    font-size: 0.825rem;
  }
  .site-foot .wrap {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --blue: #243e88;
  --vanilla: #fff8dc;
  --heading-weight: 660;
  --butter: #f7e8ad;
}
.site-head {
  min-height: 4.5rem;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.hero {
  padding-top: 1.3rem;
}
.hero h1 {
  font-size: clamp(5rem, 15.8vw, 15.6rem);
  line-height: 0.87;
  letter-spacing: -0.1em;
  color: var(--blue);
  font-weight: 800;
}
.hero-panel {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  background: var(--vanilla);
  border: 2px solid var(--ink);
}
.hero-panel figure {
  overflow: hidden;
}
.hero-panel img {
  width: 100%;
  height: clamp(20rem, 32vw, 31rem);
  object-fit: cover;
}
.hero-panel .counter {
  align-self: center;
  padding: 1.8rem clamp(1.5rem, 3.2vw, 3.4rem);
}
.counter h2 {
  font-size: clamp(2.35rem, 4.1vw, 4.4rem);
  color: var(--blue);
  letter-spacing: -0.07em;
  line-height: 0.96;
}
.counter p {
  margin: 1rem 0 1.3rem;
}
.jump {
  background: var(--blue);
  box-shadow: 3px 3px var(--ink);
}
.board {
  margin-top: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 8vw, 7rem);
}
.board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}
.board-head h2,
.visit h2 {
  font-size: clamp(3rem, 5.7vw, 5.8rem);
  letter-spacing: -0.07em;
}
.board-head p {
  max-width: 36ch;
}
.bake-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 2rem;
  align-items: center;
  border-top: 1px solid var(--ink);
  padding: 1rem 0;
}
.bake-row strong {
  display: block;
  font-size: 1.23rem;
}
.bake-row small {
  font-size: 0.9rem;
}
.subtotal {
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.stepper button {
  border-radius: 50%;
}
.visit {
  background: var(--blue);
  color: var(--vanilla);
  padding-block: 3rem;
}
.visit .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7%;
  align-items: center;
}
.visit img {
  height: clamp(13rem, 23vw, 22rem);
  border-radius: 13rem 13rem 0 0;
}
.visit h2 {
  margin-bottom: 1rem;
}
.visit address {
  margin-top: 1rem;
  font-style: normal;
}
@media (max-width: 700px) {
  .hero h1 {
    font-size: 15vw;
  }
  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-panel img {
    height: 55vw;
  }
  .hero-panel .counter {
    padding: 1.4rem;
  }
  .board-head {
    align-items: start;
    flex-direction: column;
    gap: 0.6rem;
  }
  .bake-row {
    gap: 0.55rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .bake-row .stepper {
    grid-column: 2;
    grid-row: span 2;
  }
  .bake-row > span {
    grid-column: 1;
    grid-row: 2;
  }
  .bake-row > div:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .visit .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .site-head nav {
    gap: 0.65rem;
  }
}

button,
a {
  touch-action: manipulation;
}
button:enabled:active,
.jump:active {
  transform: translateY(1px);
}
.choices button:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.hero h1 {
  letter-spacing: -0.065em;
}

:where(img) {
  height: auto;
}

.chapter {
  padding-block: clamp(3.5rem, 7.5vw, 7.5rem);
}
.chapter .chapter-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.chapter-intro h2 {
  font-size: clamp(3rem, 5.5vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 0 0 1.15rem;
}
.chapter-intro > p {
  max-width: 39ch;
}
.chapter-tool {
  min-width: 0;
}
.chapter-tool h3 {
  font-size: clamp(1.65rem, 3.1vw, 3rem);
  margin-bottom: 0.6rem;
}
.chapter-tool h4 {
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}
.chapter-tool .small {
  font-size: 0.88rem;
}
.chapter-tool button,
.chapter-tool input,
.chapter-tool select {
  max-width: 100%;
}
.chapter-tool .work-button {
  min-height: 2.85rem;
  padding: 0.65rem 1rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
}
.chapter-tool .work-button:hover {
  text-decoration: underline;
}
.chapter-tool .work-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.chapter-tool .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 1rem;
}
.chapter-link {
  display: inline-block;
  font-size: 0.95rem;
  text-underline-offset: 0.3em;
  padding: 0.7rem 0.4rem;
  margin-left: 0.6rem;
}
.chapter-intro details {
  border-block-start: 1px solid currentColor;
  margin-top: 1.3rem;
  padding-block: 0.8rem;
}
.chapter-intro summary {
  cursor: pointer;
  font-weight: 650;
  min-height: 2.3rem;
}
.chapter-intro details p {
  max-width: 40ch;
}
@media (max-width: 730px) {
  .chapter .chapter-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
  .chapter-link {
    margin-left: 0.15rem;
  }
  .chapter-intro h2 {
    max-width: 16ch;
  }
}

.oven-board-chapter {
  background: var(--vanilla);
  border-block: 2px solid var(--blue);
}
.oven-board-chapter h2,
.tray-card h3 {
  color: var(--blue);
}
.oven-dial {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0.7rem 0 1rem;
  gap: 0;
  border: 2px solid var(--blue);
}
.oven-dial button {
  background: var(--vanilla);
  border: 0;
  padding: 0.8rem 0.3rem;
  color: var(--blue);
  line-height: 1.3;
}
.oven-dial button + button {
  border-left: 1px solid var(--blue);
}
.oven-dial button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--vanilla);
}
.oven-dial b {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
}
.tray-card {
  background: var(--butter);
  border: 2px solid var(--blue);
  padding: clamp(1rem, 2vw, 2rem);
  border-radius: 0.75rem;
}
.tray-card ul {
  padding: 0;
  list-style: none;
  margin: 1rem 0;
}
.tray-card li,
.take-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.tray-card li {
  border-top: 1px dashed var(--blue);
  padding: 0.6rem 0;
}
.tray-card small {
  display: block;
}
.tray-card .work-button {
  border-radius: 2rem;
  color: var(--blue);
}
.take-list {
  padding-block: 1rem;
}
.take-list p {
  font-size: 0.84rem;
}
.take-list .work-button {
  color: var(--vanilla);
  background: var(--blue);
}
.chapter-tool [role="status"] {
  min-height: 1.5rem;
  font-size: 0.88rem;
}
@media (min-width: 850px) {
  .oven-board-chapter .chapter-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .oven-board-chapter .chapter-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.77fr);
    column-gap: 8%;
    align-items: start;
  }
  .oven-board-chapter .chapter-intro h2 {
    grid-row: span 2;
    max-width: 9ch;
  }
  .oven-board-chapter .chapter-intro > p {
    max-width: 46ch;
  }
  .oven-board-chapter .chapter-intro details {
    grid-column: 2;
    margin-top: 1rem;
  }
  .oven-board-chapter .chapter-tool {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: 4%;
    align-items: start;
  }
  .oven-board-chapter .chapter-tool fieldset {
    grid-column: 1;
    grid-row: 1;
  }
  .oven-board-chapter .tray-card {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
  .oven-board-chapter .take-list {
    grid-column: 1;
    display: grid;
    justify-content: start;
    gap: 1rem;
    padding-top: 0.35rem;
  }
  .oven-board-chapter [role="status"] {
    grid-column: 1;
  }
}

.site-head nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The laminated peel */

.peel-house {
  padding-bottom: 2.2rem;
}
.peel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0;
}
.peel-title h1 {
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  color: var(--blue);
  font-weight: 800;
}
.peel-title p {
  border-top: 2px solid var(--blue);
  padding: 0.4rem 0;
  max-width: 24ch;
}
.peel-station {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  position: relative;
  background: #e4b972;
  border: 2px solid var(--ink);
  border-left: 10px solid #b68a45;
  box-shadow: 5px 5px 0 #c29753;
}

.peel-station figure {
  min-height: 20rem;
  position: relative;
  margin: 0.7rem;
}
.peel-station figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.peel-plan {
  padding: clamp(1rem, 2vw, 2rem);
  background: var(--vanilla);
  margin: 0.7rem 0.7rem 0.7rem 0;
  border-left: 1px dashed var(--ink);
}
.peel-plan h2 {
  font-size: clamp(2rem, 3.5vw, 4rem);
  letter-spacing: -0.06em;
}
.peel-tabs {
  display: flex;
  flex-wrap: wrap;
  border-block: 1px solid var(--blue);
  margin: 0.6rem 0;
}
.peel-tabs :is(button, .front-key) {
  flex: 1;
  text-align: left;
  min-height: 2.8rem;
  padding: 0.3rem;
  border: 0;
  color: var(--blue);
  font-size: 0.86rem;
  line-height: 1.15;
}
.peel-tabs :is(button, .front-key):is([aria-pressed="true"], [data-default]) {
  background: var(--blue);
  color: var(--vanilla);
}

.cutaway p {
  font-size: 0.95rem;
  max-width: 40ch;
}
.peel-bag {
  padding: 0.45rem 0.65rem;
  min-height: 2.8rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--vanilla);
  margin-top: 0.6rem;
}
.cutaway span {
  font-size: 0.84rem;
}
.peel-links {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}
.stepper button,
.visit img,
.tray-card,
.tray-card .work-button {
  border-radius: 0;
}
@media (max-width: 700px) {
  .peel-title {
    display: block;
  }
  .peel-title h1 {
    font-size: 16vw;
  }
  .peel-title p {
    max-width: none;
    margin: 0.8rem 0 0;
  }
  .peel-title p br {
    display: none;
  }
  .peel-station {
    grid-template-columns: minmax(0, 1fr);
  }
  .peel-station figure {
    min-height: clamp(9rem, 41vw, 16rem);
  }
  .peel-plan {
    margin: 0 0.7rem 0.7rem;
    border-left: 0;
  }
}

.peel-title h1 {
  font-size: clamp(3rem, 10.7vw, 11rem);
}
@media (max-width: 700px) {
  .peel-title {
    display: grid;
    grid-template-columns: 1fr 45px;
    gap: 0 0.5rem;
    align-items: center;
  }
  .peel-title h1 {
    font-size: 15vw;
  }
  .peel-title p {
    grid-column: 1/-1;
    margin: 0.15rem 0 0;
  }
}

/* The printed panel is available before the interactive controls load. */
#front-panel [data-front-preview] .front-key {
  cursor: default;
}
#front-panel [data-front-preview] a.front-key {
  cursor: pointer;
}
:where(.front-key, .front-value) {
  display: inline-block;
  box-sizing: border-box;
  font: inherit;
  line-height: inherit;
  text-align: center;
}

/* Keep printed labels on the same lines as their interactive counterparts. */
#front-panel [data-setting-width] {
  display: inline-grid;
  justify-items: center;
  align-items: center;
}
#front-panel [data-setting-width]::before,
#front-panel [data-setting-width] > span {
  grid-area: 1/1;
}
#front-panel [data-setting-width]::before {
  content: attr(data-setting-width);
  visibility: hidden;
}

.peel-station {
  border: 0;
  border-block: 2px solid var(--blue);
  background: transparent;
  box-shadow: none;
  align-items: stretch;
}
.peel-station figure {
  margin: 0;
  min-height: clamp(230px, 24vw, 390px);
}
.peel-plan {
  margin: 0;
  padding: clamp(1.1rem, 3vw, 3.2rem);
  border: 0;
  align-self: center;
}
.cutaway p {
  margin: 1rem 0;
}
.peel-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.peel-title p {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .peel-title {
    display: block;
  }
  .peel-station figure {
    min-height: clamp(145px, 42vw, 240px);
  }
  .peel-plan {
    padding: 1rem 0;
  }
  .peel-title p {
    max-width: 100%;
  }
}
