/* Hallmark · custom · Seven Lanterns · An evening noodle counter with a steam-side portrait photograph, seven lacquer lanterns and a two-bowl kitchen pass. */
/* Critique: the trade sets the content and primary interaction. */
@font-face {
  font-family: "barlow-condensed";
  src: url("./fonts/barlow-condensed.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "chivo";
  src: url("./fonts/chivo.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #172634;
  --ink: #ffeed4;
  --line: #71808a;
  --cta: #f6aa83;
  --ctaink: #222633;
  --body: "chivo", Arial, sans-serif;
  --display: "barlow-condensed", Georgia, serif;
  --weight: 700;
}

*,
*::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 {
  --night: #172634;
  --red: #a82e33;
  --rice: #ffeed4;
  --signal: #f6aa83;
  --dark: #2a2024;
  --blue: #263a49;
}
header {
  border-bottom: 1px solid var(--line);
}
.brand,
.lantern-hero h1,
.pots h2,
.counter-title h2,
.backroom h2 {
  text-transform: uppercase;
}
.brand {
  font-size: 1.9rem;
  letter-spacing: -0.025em;
}
.lantern-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  padding-block: clamp(1.4rem, 3.4vw, 3.5rem);
  align-items: stretch;
}
.lantern-hero figure {
  position: relative;
  background: var(--blue);
  min-height: 31rem;
}
.lantern-hero figure img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.lantern-hero figcaption {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  background: var(--night);
  padding: 0.4rem 0.65rem;
}
.neon-copy {
  background: var(--red);
  color: var(--rice);
  align-content: center;
  padding: clamp(1.6rem, 5vw, 5rem);
}

.neon-copy h1 {
  font-size: clamp(5.5rem, 10.7vw, 10.6rem);
  letter-spacing: -0.035em;
  line-height: 0.85;
}
.neon-copy p {
  margin: 1.35rem 0;
  max-width: 35ch;
  font-size: 1.13rem;
}
.neon-copy .cta {
  background: var(--rice);
  color: var(--night);
  border-color: var(--rice);
}
.pots {
  background: var(--rice);
  color: var(--dark);
}
.pot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 4%;
  border-block: 2px solid var(--dark);
  padding: 1rem 0;
}
.pot-list article + article {
  border-left: 1px solid #a18374;
  padding-left: 12%;
}
.pot-list b {
  display: block;
  margin-top: 0.8rem;
}
.counter-title {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 7%;
  margin-bottom: 1.6rem;
}
.counter-title h2 {
  color: var(--signal);
  max-width: 13ch;
  margin: 0;
}
.pass-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 4%;
}
.pass-panel,
.pinned {
  border: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 2rem);
}
.pass-panel {
  background: var(--blue);
}
.pinned {
  color: var(--dark);
  background: var(--rice);
  border-top: 6px solid var(--red);
}
.pinned .fine,
.pinned h3 {
  color: var(--dark);
}
.pinned ol {
  padding-left: 1.2rem;
}
.pinned li {
  border-top: 1px dashed #806c62;
  padding: 0.7rem 0;
}
.pinned li b,
.pinned li small {
  display: block;
}
.pinned li button {
  margin-top: 0.4rem;
}
.pass-panel .options button {
  font-size: 0.94rem;
}
.pass-panel select {
  background: var(--night);
  color: var(--rice);
}
.bowl-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--signal);
  padding-top: 0.7rem;
  gap: 0.8rem;
}
.bowl-price strong {
  font-family: var(--display);
  font-size: 2rem;
}
.pinned .takeaway {
  background: var(--red);
  border-color: var(--red);
  color: var(--rice);
}
.backroom {
  background: var(--blue);
}
.backroom > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 7%;
}
.backroom img {
  height: clamp(15rem, 26vw, 26rem);
}
.backroom address {
  margin: 1rem 0;
  color: var(--signal);
}
.backroom figcaption {
  margin-top: 0.4rem;
}
@media (max-width: 700px) {
  .lantern-hero,
  .counter-title,
  .pass-columns,
  .backroom > .wrap,
  .pot-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
  }
  .lantern-hero {
    gap: 0;
  }
  .neon-copy {
    grid-row: 1;
  }
  .lantern-hero figure {
    min-height: 0;
    height: 56vw;
  }
  .neon-copy h1 {
    font-size: clamp(4.6rem, 17vw, 7rem);
  }
  .pot-list article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1rem 0 0;
  }
  .mast nav a:first-child {
    display: none;
  }
}

/* Noodle lift and service pass */
.night-pass {
  width: min(1380px, 94%);
  margin: 2rem auto 4rem;
  display: grid;
  grid-template-columns: 0.72fr 1.3fr;
  gap: clamp(1rem, 3.5vw, 4rem);
  align-items: center;
}
.night-front {
  border-left: 7px solid #ff8b67;
  padding-left: clamp(0.65rem, 2vw, 2.5rem);
}
.night-front h1 {
  font: 800 clamp(5rem, 10vw, 11rem)/0.79 var(--display);
  text-transform: uppercase;
  color: #ffe4b3;
  letter-spacing: -0.045em;
}
.night-front p {
  max-width: 21em;
  margin: 1.1rem 0 0.75rem;
}
.night-front a {
  color: #ffe3bb;
  font-weight: bold;
}
.counter-scene {
  display: grid;
  grid-template-columns: 1.12fr 0.85fr;
  align-items: center;
  gap: 0.65rem;
  border-block: 3px double #df977a;
  padding: 0.8rem 0;
}
.counter-scene figure {
  margin: 0;
  min-width: 0;
  align-self: stretch;
}
.counter-scene figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
}

.bowl-carbon {
  background: #f5dcae;
  color: #29292b;
  border-block: 2px solid #b28360;
  margin: 0.5rem 0;
  padding: 0.5rem 0.6rem;
  display: grid;
  line-height: 1.15;
  gap: 0.3rem;
}
.bowl-carbon strong {
  font: 700 clamp(1.55rem, 2.6vw, 2.85rem)/0.93 var(--display);
  text-transform: uppercase;
}
.bowl-carbon span {
  font: 0.82rem monospace;
}
.noodle-keys {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.noodle-keys :is(button, .front-key) {
  color: #ffddb0;
  background: transparent;
  border: 1px solid #c58768;
  border-radius: 0;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  font-size: 0.82rem;
}
.noodle-keys :is(button, .front-key):is([aria-pressed="true"], [data-default]) {
  color: #25262a;
  background: #ffd398;
}
.noodle-keys button:focus-visible {
  outline: 3px dashed #ffd79c;
  outline-offset: 2px;
}
@media (max-width: 810px) {
  .night-pass {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
  }
  .night-front h1 {
    font-size: clamp(3.5rem, 14vw, 7rem);
  }
  .night-front h1 br {
    display: none;
  }
  .night-front p {
    margin: 0.6rem 0 0.4rem;
  }
  .counter-scene {
    grid-template-columns: 0.85fr 1.1fr;
  }
  .counter-scene figure img {
    max-height: 280px;
  }
  .bowl-carbon span {
    font-size: 0.74rem;
  }
}

@media (max-width: 810px) {
}

.pass-panel > .takeaway:disabled {
  opacity: 1;
  background: #dcb09a;
  color: #302b2c;
  border-color: #a38777;
  cursor: default;
}

/* 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;
}

.counter-scene {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: clamp(0.65rem, 2vw, 1.5rem);
}
.counter-scene figure img {
  height: clamp(240px, 30vw, 410px);
}
.bowl-carbon {
  border: 0;
  border-block: 2px solid #e9a67c;
  background: transparent;
  color: #ffe2ac;
  padding: 0.8rem 0;
}
.bowl-carbon strong {
  font-size: clamp(2.1rem, 3.3vw, 4rem);
}
.bowl-carbon span {
  line-height: 1.45;
}
.noodle-keys {
  margin-top: 0.75rem;
}
@media (max-width: 810px) {
  .counter-scene {
    grid-template-columns: 1fr;
  }
  .counter-scene figure img {
    height: clamp(165px, 42vw, 265px);
  }
  .noodle-keys {
    margin-top: 0.45rem;
  }
}
