/* Hallmark · custom · Fore Street Fish · A blue-ink fish-market docket, with a chilled panoramic fish display and named cuts in a paper side column. */
/* Critique: the trade sets the content and primary interaction. */
@font-face {
  font-family: "chivo";
  src: url("./fonts/chivo.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: #e9edf0;
  --ink: #203446;
  --line: #8496a6;
  --cta: #34498b;
  --ctaink: #f7f4ee;
  --body: "work-sans", Arial, sans-serif;
  --display: "chivo", Georgia, serif;
  --weight: 780;
}

*,
*::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 {
  --blue: #203446;
  --ice: #e9edf0;
  --violet: #34498b;
  --ticket: #f8f6ec;
  --mist: #c6d1db;
}
header {
  background: var(--blue);
  color: var(--ticket);
}
.brand {
  font-size: 1.48rem;
  font-weight: 800;
}
.market-cover {
  padding-block: clamp(1.35rem, 3.2vw, 3.5rem);
}
.market-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  border-bottom: 3px solid var(--blue);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}
.market-title h1 {
  font-size: clamp(3.6rem, 7.8vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}
.market-title p {
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: right;
}
.display-case {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.7fr);
  border: 1px solid var(--line);
}
.display-case figure {
  position: relative;
  min-height: 23rem;
}
.display-case img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-position: center 45%;
}
.display-case figcaption {
  position: absolute;
  left: 0;
  bottom: 0.9rem;
  background: var(--blue);
  color: var(--ice);
  padding: 0.45rem 0.8rem;
}
.ice-ticket {
  background: var(--ticket);
  padding: clamp(1.2rem, 2.4vw, 2.4rem);
  align-content: center;
  border-left: 1px dashed var(--blue);
}
.ice-ticket h2 {
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  letter-spacing: -0.06em;
}
.ice-ticket dl {
  margin: 0.8rem 0 1rem;
}
.ice-ticket dl div {
  padding: 0.4rem 0;
  border-top: 1px dotted var(--line);
}
.ice-ticket dt {
  color: var(--violet);
  font-size: 1.23rem;
  font-weight: 700;
  font-style: italic;
}
.ice-ticket dd {
  font-size: 0.9rem;
}
.cut-table {
  background: var(--mist);
}
.cut-table > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 7%;
}
.cut-index article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-top: 1px solid var(--blue);
  padding: 0.75rem 0;
  gap: 0.25rem 1rem;
}
.cut-index h3 {
  margin: 0;
}
.cut-index p {
  grid-row: 2;
  grid-column: 1/-1;
}
.cut-index b {
  grid-column: 2;
  grid-row: 1;
}
.docket > p {
  max-width: 52ch;
}
.fish-worktop {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 5%;
  margin-top: 1.8rem;
  align-items: start;
}
.cook-note {
  border-left: 4px solid var(--violet);
  padding: 0.4rem 1rem;
  margin: 1rem 0;
  background: var(--ticket);
}
.docket-slip {
  background: var(--ticket);
  border: 1px solid var(--blue);
  border-top: 7px solid var(--violet);
  padding: clamp(1rem, 2.4vw, 2.3rem);
}
.docket-slip dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px dotted var(--line);
}
.docket-slip dd {
  font-weight: 700;
}
.docket-slip .weight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--violet);
}
.market-hours {
  background: var(--blue);
  color: var(--ice);
}
.market-hours > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 7%;
}
.market-hours img {
  height: clamp(15rem, 26vw, 26rem);
}
.market-hours address {
  margin: 1rem 0;
}
@media (max-width: 720px) {
  .display-case,
  .cut-table > .wrap,
  .fish-worktop,
  .market-hours > .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .display-case {
    gap: 0;
  }
  .market-title {
    align-items: start;
    display: block;
  }
  .market-title h1 {
    font-size: clamp(3.2rem, 13vw, 6rem);
  }
  .market-title p {
    margin-top: 0.7rem;
    text-align: left;
  }
  .display-case figure {
    min-height: 0;
    height: 47vw;
  }
  .ice-ticket {
    border-left: none;
  }
  .ice-ticket dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }
  .ice-ticket dt {
    font-size: 1rem;
  }
  .ice-ticket dd {
    font-size: 0.8rem;
  }
  .mast nav a:first-child {
    display: none;
  }
}

/* Counter choices and weighed portions */
.fish-counter-mast {
  width: min(1340px, 94%);
  margin: 1.6rem auto 3.5rem;
}
.fish-counter-mast > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 5px double #285c66;
  padding-bottom: 0.65rem;
}
.fish-counter-mast h1 {
  font: 700 clamp(4rem, 8vw, 9rem)/0.87 var(--display);
  letter-spacing: -0.055em;
}
.fish-counter-mast header p {
  max-width: 23rem;
}
.slab-run {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(0.7rem, 2vw, 2rem);
  margin-top: 1rem;
}
.slab-run figure {
  min-width: 0;
  margin: 0;
}
.slab-run figure img {
  display: block;
  width: 100%;
  height: clamp(205px, 25vw, 340px);
  object-fit: cover;
}
.slab-run figcaption {
  font-size: 0.8rem;
  padding: 0.2rem 0;
}
.wash-mat {
  background:
    repeating-linear-gradient(90deg, #4a7977 0 1px, transparent 1px 9px)
      top/100% 10px no-repeat,
    #c2ddcf;
  color: #183d40;
  padding: clamp(0.8rem, 2vw, 1.8rem);
  border: 1px solid #759e91;
}

.mat-keys {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}
.mat-keys :is(button, .front-key) {
  border: 1px solid #375c58;
  border-radius: 0;
  color: #23483f;
  background: #e1eade;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
}
.mat-keys :is(button, .front-key):is([aria-pressed="true"], [data-default]) {
  background: #264b45;
  color: #fff7df;
}
.scale-slip {
  margin: 0.55rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem;
  border-block: 2px dashed #668777;
  background: #eff2de;
  font: 700 0.83rem monospace;
}
.scale-slip b {
  font-size: clamp(1.55rem, 2.8vw, 3rem);
  white-space: nowrap;
}
.scale-slip span {
  font-weight: 500;
}
.wash-mat > a {
  font-weight: 750;
  font-size: 0.85rem;
}
.mat-keys button:focus-visible {
  outline: 3px dashed #253e36;
  outline-offset: 2px;
}
@media (max-width: 740px) {
  .fish-counter-mast > header {
    display: block;
  }
  .fish-counter-mast h1 {
    font-size: clamp(3rem, 12vw, 6rem);
  }
  .fish-counter-mast header p {
    margin-top: 0.6rem;
  }
  .slab-run {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .slab-run figure img {
    height: clamp(130px, 37vw, 220px);
  }

  .scale-slip {
    padding: 0.35rem;
    gap: 0.35rem;
  }
}

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

.counter-choice {
  font: 700 clamp(1.9rem, 3.3vw, 3.7rem)/0.99 var(--display);
  margin: 0 0 0.8rem;
}
.wash-mat {
  align-self: center;
  background: #dce9de;
  border: 0;
  border-block: 2px solid #829e89;
}
.prep-note {
  font-size: 0.95rem;
  max-width: 45ch;
  margin: 0.65rem 0;
}
.prep-note b {
  display: block;
}
.slab-run {
  align-items: center;
}
