/* Hallmark · custom · Blue Tin Chippy · A navy enamel fry board alongside a narrow fish-shop photograph, followed by a red-lined supper ticket. */
/* Critique: the trade sets the content and primary interaction. */
@font-face {
  font-family: "archivo-black";
  src: url("./fonts/archivo-black.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: #faf2d7;
  --ink: #112f54;
  --line: #83919a;
  --cta: #a32326;
  --ctaink: #fff7dd;
  --body: "work-sans", Arial, sans-serif;
  --display: "archivo-black", 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 {
  --navy: #112f54;
  --cream: #faf2d7;
  --red: #a32326;
  --chalk: #faf5e1;
  --blue: #315a7d;
}
.mast {
  border-bottom: 3px solid var(--navy);
}
.brand {
  text-transform: uppercase;
  letter-spacing: -0.07em;
}
.blue-front {
  padding-block: clamp(1.2rem, 3.5vw, 3.6rem);
  background: var(--cream);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 4rem,
    #dfd9bd 4rem calc(4rem + 1px)
  );
}
.enamel {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, 0.64fr);
  background: var(--navy);
  color: var(--chalk);
  border: 7px double var(--chalk);
  outline: 2px solid var(--navy);
  align-items: stretch;
}
.board-copy {
  padding: clamp(1.5rem, 3.5vw, 4rem);
}
.board-copy h1 {
  font-size: clamp(3.8rem, 7.1vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}
.board-copy > p {
  margin: 0.95rem 0;
  max-width: 37ch;
}
.price-board {
  max-width: 34rem;
  border-top: 1px solid var(--chalk);
  margin: 1.25rem 0;
}
.price-board div {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.38rem 0;
}
.price-board div::after {
  content: "";
  border-bottom: 2px dotted var(--chalk);
  opacity: 0.65;
  flex: 1;
  order: 1;
}
.price-board span {
  order: 2;
  font-variant-numeric: tabular-nums;
}
.enamel figure {
  position: relative;
  min-height: 100%;
  margin: 0;
  border-left: 6px solid var(--chalk);
}
.enamel figure img {
  height: 100%;
  position: absolute;
  inset: 0;
  object-position: 47% center;
}
.enamel figcaption {
  position: absolute;
  bottom: 0.8rem;
  right: 0;
  color: var(--navy);
  background: var(--cream);
  padding: 0.45rem 0.8rem;
}
.blue-front .cta {
  background: var(--chalk);
  border-color: var(--chalk);
  color: var(--navy);
}
.ticket-band {
  background: var(--cream);
}
.ticket-layout,
.quay-hatch {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 8%;
  align-items: start;
}
.ticket-layout h2,
.quay-hatch h2 {
  color: var(--red);
  letter-spacing: -0.07em;
}
#tool {
  border: 2px solid var(--red);
  box-shadow: 6px 6px 0 var(--navy);
  background: #fff9e8;
  padding: clamp(1rem, 2.5vw, 2.3rem);
}
.tool-mast,
.ticket-line,
.running {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}
.tool-mast {
  border-bottom: 2px dashed var(--red);
  padding-bottom: 0.6rem;
  color: var(--red);
}
.tool-mast h3 {
  margin: 0;
}
.ticket-line {
  padding: 0.65rem 0;
  border-top: 1px dashed var(--line);
}
.ticket-line span small {
  display: block;
}
.running {
  border-block: 2px solid var(--navy);
  padding: 0.65rem 0;
  margin: 1rem 0;
}
.running b {
  font-size: 1.4rem;
}
.quay-hatch {
  border-top: 3px solid var(--navy);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
}
.quay-hatch img {
  height: clamp(16rem, 28vw, 29rem);
}
.quay-hatch address {
  margin: 1rem 0;
  font-weight: 600;
}
@media (max-width: 700px) {
  .enamel,
  .ticket-layout,
  .quay-hatch {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .enamel figure {
    min-height: 12rem;
    height: 40vw;
    border-left: 0;
    border-top: 5px solid var(--chalk);
  }
  .ticket-layout,
  .quay-hatch {
    gap: 1.75rem;
  }
  .mast nav a:first-child {
    display: none;
  }
  .board-copy h1 {
    font-size: clamp(3.5rem, 12.5vw, 5rem);
  }
}

/* Chip-paper counter */
.chip-window {
  display: grid;
  grid-template-columns: 0.8fr 1.25fr;
  gap: 4%;
  align-items: center;
  width: min(1360px, 94%);
  margin: 2.5rem auto 4rem;
}
.fry-name {
  border-block: 8px solid #11365c;
  padding: clamp(0.8rem, 2vw, 2rem) 0;
}
.fry-name h1 {
  font-size: clamp(4.3rem, 8.9vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}
.fry-name p {
  margin: 1rem 0;
  max-width: 25em;
}
.fry-name a,
.wrap-marks a {
  font-weight: 800;
  text-decoration-thickness: 2px;
}
.chip-fold {
  position: relative;
  isolation: isolate;
  background: linear-gradient(
    135deg,
    #d4c9b0 0 14%,
    #fff8de 14.1% 64%,
    #c2b89a 64.2% 64.5%,
    #efe4cc 64.6%
  );
  padding: clamp(0.7rem, 2vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: stretch;
  box-shadow: 4px 6px 0 #b0ac96;
}

.chip-fold figure {
  min-width: 0;
  clip-path: polygon(1% 7%, 99% 0, 94% 98%, 6% 87%);
  margin: 0;
}
.chip-fold figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}
.wrap-marks {
  color: #183659;
  padding: 0.6rem 0.3rem;
}
.wrap-marks header {
  display: grid;
  line-height: 1.1;
  gap: 0.4rem;
}
.wrap-marks header b {
  font: clamp(1.35rem, 2.1vw, 2.6rem) var(--display);
  line-height: 1.05;
}
.wrap-marks header small,
.wrap-marks legend {
  font: 700 0.78rem monospace;
}
.wrap-marks fieldset {
  margin: 0.8rem 0;
  padding: 0.5rem 0;
  border: 0;
  border-block: 1px dashed #34516c;
}
.wrap-marks fieldset :is(button, .front-key) {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #163860;
  align-items: center;
  display: flex;
  padding: 0.32rem 0;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
}
.wrap-marks :is(button, .front-key) i {
  border: 1px solid currentColor;
  width: 1.2em;
  height: 1.2em;
  line-height: 1em;
  text-align: center;
  font-weight: bold;
}
.wrap-marks :is(button, .front-key):is([aria-pressed="true"], [data-default]) {
  font-weight: 800;
}
.wrap-marks a {
  font-size: 0.88rem;
}
.wrap-marks button:focus-visible {
  outline: 2px dashed #133454;
  outline-offset: 2px;
}
@media (max-width: 800px) {
  .chip-window {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.1rem;
  }
  .fry-name h1 br {
    display: none;
  }
  .fry-name h1 {
    font-size: clamp(3.5rem, 12vw, 7rem);
  }
  .fry-name p {
    margin: 0.7rem 0;
  }
  .chip-fold {
    grid-template-columns: 0.8fr 1fr;
  }
  .chip-fold figure img {
    min-height: 205px;
  }
  .wrap-marks {
    padding: 0.2rem;
  }
  .wrap-marks header b {
    font-size: 1.38rem;
  }
}

@media (max-width: 800px) {
  .fry-name h1 {
    font-size: clamp(2.7rem, 10vw, 5.3rem);
  }
}

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

.wrap-marks .front-key {
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

.chip-fold {
  background: #f5ecd4;
  box-shadow: none;
  border-block: 3px double #2d465d;
}
.chip-fold figure {
  clip-path: none;
}
.fry-name h1 {
  max-width: 9ch;
}
@media (max-width: 800px) {
  .fry-name h1 {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .chip-fold {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }
  .chip-fold figure img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
