/* Hallmark · custom · Oat Sunday · An apricot breakfast-paper masthead, panoramic pancakes and a folded two-sitting board for a Norwich brunch room. */
/* Critique: the trade sets the content and primary interaction. */
@font-face {
  font-family: "young-serif";
  src: url("./fonts/young-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "work-sans";
  src: url("./fonts/work-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f8ecdb;
  --ink: #352722;
  --line: #a99480;
  --cta: #663f24;
  --ctaink: #fff5dc;
  --body: "work-sans", Arial, sans-serif;
  --display: "young-serif", Georgia, serif;
  --weight: 400;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  overflow-x: clip;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4,
p,
figure,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.02;
  font-weight: var(--weight, 600);
}
h1,
h2 {
  text-wrap: balance;
}
p {
  max-width: 62ch;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a,
button,
select,
input {
  touch-action: manipulation;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}
button:enabled:active,
.cta:active {
  transform: translateY(1px);
}
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px Canvas;
}
img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.skip {
  position: absolute;
  z-index: 10;
  top: -8rem;
  left: 1rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem 1rem;
}
.skip:focus {
  top: 0.5rem;
}
.wrap {
  width: min(calc(100% - clamp(2rem, 8vw, 8rem)), 80rem);
  margin-inline: auto;
}
.mast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.7rem;
}
.brand {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.25vw, 2rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
}
.mast nav,
footer .wrap {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.8vw, 2rem);
  flex-wrap: wrap;
}
.mast nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 0.92rem;
}
.mast nav a:hover {
  text-decoration: underline;
}
.cta,
.takeaway {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  font-weight: 650;
  border: 1px solid var(--cta);
  background: var(--cta);
  color: var(--ctaink);
}
.cta:hover,
.takeaway:hover {
  text-decoration: underline;
}
.band {
  padding-block: clamp(3rem, 7.2vw, 7.5rem);
}
.band h2 {
  font-size: clamp(2.65rem, 5.5vw, 5.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 1rem;
}
.band h3,
#tool h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  margin-bottom: 0.55rem;
}
.band p + p,
#tool p + p {
  margin-top: 0.7rem;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
legend,
label {
  font-weight: 650;
}
.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.controls label,
.form-label {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}
select,
input[type="number"],
input[type="text"],
textarea {
  min-height: 2.8rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid currentColor;
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  background: var(--paper);
}
textarea {
  resize: vertical;
  min-height: 4.2rem;
}
.options,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 1rem;
}
.options button,
.quiet,
.step button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  min-height: 2.8rem;
  padding: 0.5rem 0.8rem;
}
.options button[aria-pressed="true"] {
  color: var(--ctaink);
  background: var(--cta);
  border-color: var(--cta);
}
.options button:hover,
.quiet:hover {
  text-decoration: underline;
}
.step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step button {
  min-width: 2.8rem;
}
.step output {
  min-width: 1.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fine,
figcaption {
  font-size: 0.85rem;
  line-height: 1.45;
}
[role="status"] {
  min-height: 1.4em;
  font-size: 0.9rem;
}
details {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.65rem;
}
summary {
  font-weight: 650;
  min-height: 2.5rem;
}
details p {
  padding-bottom: 0.65rem;
}
address {
  font-style: normal;
  line-height: 1.7;
}
footer {
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}
footer .wrap {
  justify-content: space-between;
}
footer p,
footer a {
  font-size: 0.83rem;
}
@media (max-width: 560px) {
  .mast {
    gap: 0.4rem;
    min-height: 4.25rem;
  }
  .mast nav {
    gap: 0.6rem;
  }
  .mast nav a {
    font-size: 0.8rem;
  }
  .mast .brand {
    font-size: 1.2rem;
  }
  .controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --apricot: #f2ae83;
  --milk: #fff7e6;
  --cocoa: #352722;
  --umber: #663f24;
}
header {
  background: var(--apricot);
}
.mast {
  border-bottom: 1px solid var(--cocoa);
}
.brand {
  font-size: 1.7rem;
}
.sunday {
  background: var(--apricot);
}
.paper-title {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  align-items: end;
  gap: 5%;
  padding-block: clamp(1.7rem, 3.8vw, 4.2rem);
}
.paper-title h1 {
  font-size: clamp(4.3rem, 8.25vw, 8.7rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
}
.paper-note {
  padding-bottom: 0.25rem;
}
.paper-note p {
  max-width: 32ch;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.cta,
.takeaway {
  border-radius: 2rem;
}
.panorama {
  max-width: 100rem;
  margin: auto;
  position: relative;
}
.panorama img {
  height: clamp(15rem, 23vw, 24rem);
  object-position: 50% 52%;
}
.panorama figcaption {
  position: absolute;
  bottom: 1rem;
  right: 4.5%;
  background: var(--milk);
  padding: 0.35rem 0.75rem;
}
.edition-head,
.tray-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.edition-head p,
.tray-head p {
  max-width: 33ch;
}
.folded-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-block: 2px solid var(--cocoa);
  margin-top: 1.7rem;
  background: var(--milk);
}
.folded-board article {
  padding: clamp(1.1rem, 2.5vw, 2.5rem);
}
.folded-board article + article {
  border-left: 1px dashed var(--line);
  background: #f5dfc6;
}
.folded-board h3 {
  margin: 0.5rem 0;
}
.folded-board span {
  font-size: 0.88rem;
}
.folded-board dl > div {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  border-top: 1px solid var(--line);
  padding: 0.4rem 0;
}
.folded-board p {
  margin-top: 0.7rem;
  max-width: 42ch;
}
.tray-section {
  background: #dfe1c6;
}
.tray-head {
  margin-bottom: 1.3rem;
}
.tray-station {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 6%;
}
.place-slip {
  background: var(--milk);
  border: 1px solid var(--cocoa);
  padding: clamp(1rem, 2vw, 2rem);
  border-inline: 0;
  border-top: 3px double var(--cocoa);
  border-bottom-style: dashed;
}
.place-slip ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}
.place-slip li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  align-items: center;
}
.place-slip li small {
  display: block;
}
.place-slip .sum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block: 2px solid var(--cocoa);
  padding: 0.6rem 0;
  margin: 0.8rem 0;
  font-size: 1.2rem;
}
.tray-station .options button {
  border-radius: 0;
}
.room {
  display: grid;
  grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr);
  gap: 7%;
  align-items: center;
}
.room img {
  height: clamp(15rem, 26vw, 27rem);
}
.room address {
  margin-top: 1rem;
}
.room figcaption {
  margin-top: 0.5rem;
}
@media (max-width: 700px) {
  .paper-title,
  .tray-station,
  .room {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }
  .paper-title h1 {
    font-size: clamp(3.3rem, 13vw, 6rem);
  }
  .panorama img {
    height: 48vw;
  }
  .edition-head,
  .tray-head {
    display: block;
  }
  .folded-board {
    grid-template-columns: minmax(0, 1fr);
  }
  .folded-board article + article {
    border-left: 0;
    border-top: 1px dashed var(--line);
  }
  .mast nav a:first-child {
    display: none;
  }
}

/* Compartment breakfast tray */
.morning-press {
  width: min(1320px, 94%);
  margin: 1.6rem auto 4rem;
}
.oat-mast {
  display: grid;
  grid-template-columns: 1fr minmax(85px, 18%);
  align-items: center;
  gap: 1rem;
  border-top: 2px solid #44352c;
}
.oat-mast > div:first-child {
  display: flex;
  align-items: end;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 0.8rem 0;
}
.oat-mast h1 {
  font-size: clamp(4.3rem, 7vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}
.oat-mast p {
  max-width: 17em;
}

.breakfast-counter {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 0.7rem;
}
.breakfast-counter figure {
  min-width: 0;
  margin: 0;
}
.breakfast-counter figure img {
  width: 100%;
  height: clamp(190px, 22vw, 295px);
  object-fit: cover;
  object-position: 50% 58%;
  display: block;
}
.breakfast-counter figcaption {
  font-size: 0.78rem;
  padding: 0.2rem 0;
}
.mess-tray {
  background: #dfcdb4;
  border: 5px ridge #b79d7f;
  color: #412e24;
  padding: clamp(0.6rem, 1.3vw, 1.4rem);
}
.mess-rim {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  border-bottom: 1px solid #916a51;
  align-items: baseline;
}
.mess-rim strong {
  font: clamp(1.3rem, 2.4vw, 2.6rem) var(--display);
}
.mess-rim time {
  font-size: 0.78rem;
  font-weight: 750;
}
.mess-depth {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.5rem;
  margin: 0.65rem 0;
}
.mess-depth > div {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  border: 3px inset #bda68c;
  background: #eadfcb;
  padding: 0.4rem;
}

.mess-depth :is(label, .front-field) {
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.2;
}
.mess-depth :is(select, .front-value) {
  width: 100%;
  min-width: 0;
  background: #fff7e8;
  color: #432d24;
  border: 1px solid #886849;
  border-radius: 0;
  font: inherit;
  font-size: 0.82rem;
  padding: 0.35rem 0.1rem;
}
.mess-tray > a {
  font-weight: bold;
  font-size: 0.9rem;
}
.tray-paper,
.receipt {
  transform: none;
}
@media (max-width: 740px) {
  .oat-mast > div:first-child {
    display: block;
  }
  .oat-mast h1 {
    font-size: clamp(2.75rem, 10.3vw, 5.4rem);
  }
  .oat-mast p {
    margin-top: 0.6rem;
  }
  .oat-mast {
    grid-template-columns: 1fr 19%;
    gap: 0.3rem;
  }
  .breakfast-counter {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .breakfast-counter figure img {
    height: clamp(140px, 39vw, 225px);
  }
}

@media (min-width: 741px) and (max-width: 1030px) {
  .oat-mast {
    grid-template-columns: minmax(0, 1fr) 19%;
  }
  .oat-mast > div:first-child {
    display: block;
  }
  .oat-mast h1 {
    font-size: clamp(3.5rem, 8.3vw, 5.3rem);
    overflow-wrap: normal;
  }
  .oat-mast p {
    margin-top: 0.7rem;
    max-width: 34em;
  }
}

/* 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;
}
.mess-depth .front-value {
  display: block;
  text-align: left;
}

.mess-depth .front-value {
  min-height: 2.8rem;
  align-content: center;
  line-height: normal;
}

.oat-mast {
  display: block;
}
.oat-mast > div:first-child {
  justify-content: space-between;
}
.mess-tray {
  background: transparent;
  border: 0;
  border-block: 3px double #7b5a42;
  padding: 1rem 0;
}
.mess-depth {
  gap: 0.75rem;
}
.mess-depth > div {
  display: grid;
  grid-template-rows: auto auto;
  gap: 0.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.mess-depth :is(select, .front-value) {
  min-height: 2.8rem;
  border-color: #7f6852;
  padding: 0.4rem 0.3rem;
}
.mess-rim {
  padding-bottom: 0.6rem;
}
.mess-tray > a {
  display: inline-block;
  margin-top: 0.25rem;
}
