@font-face {
  font-family: Barlow;
  src: url("v3-barlow-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F;
}

@font-face {
  font-family: Barlow;
  src: url("v3-barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: Barlow;
  src: url("v3-barlow-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-024F;
}

@font-face {
  font-family: Barlow;
  src: url("v3-barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
  font-family: "Courier Prime";
  src: url("v3-courier-prime-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F;
}

@font-face {
  font-family: "Courier Prime";
  src: url("v3-courier-prime-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}

.storefront {
  --paper: #f3f3f0;
  --card: #fff;
  --line: #d9d9d4;
  --ink: #1e1e1e;
  --muted: #5e6163;
  --heading: "Courier Prime", "Courier New", monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: Barlow, system-ui, sans-serif;
  font-synthesis: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.storefront strong { font-weight: 600; }

.storefront a {
  color: inherit;
  text-underline-offset: .2em;
}

.storefront .skip-link {
  position: absolute;
  top: .75rem;
  left: .75rem;
  transform: translateY(calc(-100% - 1rem));
  z-index: 1;
  padding: .55rem .85rem;
  background: var(--card);
}

.storefront .skip-link:focus { transform: none; }

.storefront .top {
  min-height: 4.5rem;
  flex-wrap: nowrap;
}

.shop-logo { flex: 0 1 13.75rem; }
.shop-logo img { display: block; width: 100%; height: auto; }
.shop-link { flex: none; font-weight: 600; }

.storefront main {
  flex: 1;
  padding-block: 2.5rem 4rem;
}

.storefront h1 {
  margin: 0 0 .65rem;
  font: 400 3rem/1.1 var(--heading);
  letter-spacing: -.03em;
}

.storefront .intro {
  max-width: 64ch;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.storefront .intro strong { color: var(--ink); }
.storefront .intro.signup-deadline { margin-bottom: .65rem; }

.storefront .layout {
  grid-template-columns: minmax(0, 1fr) minmax(19rem, .68fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.storefront h2 {
  font: 400 1.625rem/1.2 var(--heading);
  margin-bottom: .85rem;
}

.storefront .offer { padding-top: .35rem; }
.storefront .offer h2 { margin-bottom: .35rem; }
.storefront .offer .minimum { margin: 0 0 .85rem; }

.storefront .offer-group + .offer-group { margin-top: 2rem; }

.storefront .offer-group h3 {
  margin: 0 0 .4rem;
  font: 400 1.25rem/1.25 var(--heading);
}

.storefront .summary-shortcut { display: none; }
.storefront #podsumowanie { scroll-margin-block-start: 1rem; }

.storefront .item {
  padding-block: .85rem;
  border-top-style: solid;
}

.storefront .item > div > strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: .1rem;
}

.storefront small { font-size: .9rem; }
.storefront .portion-price { color: var(--ink); font: 1rem var(--heading); }
.storefront .item label { text-align: center; }

.storefront input[type="number"] {
  display: block;
  width: 4.25rem;
  margin-top: .2rem;
}

.storefront input::placeholder { color: var(--muted); opacity: 1; }

.storefront .card { padding: clamp(1rem, 3vw, 1.5rem); }
.storefront label { color: var(--ink); font-weight: 600; }

.storefront input,
.storefront select {
  min-height: 2.75rem;
  font-weight: 400;
}

.storefront .fields { gap: .75rem; }
.storefront .fields :is(input, select) { margin-top: .2rem; }
.storefront .amount { font-weight: 400; white-space: nowrap; }
.storefront .summary p:nth-child(2) { font-weight: 600; }
.storefront .minimum { color: var(--muted); font-size: .9375rem; }
.storefront .form-error,
.storefront .field-error { color: #a12620; }
.storefront .form-error { grid-column: 1 / -1; margin: 0; }
.storefront .field-error { margin: .25rem 0 0; font-size: .9375rem; }
.storefront .item .field-error { grid-column: 1 / -1; margin: -.35rem 0 0; }
.storefront :is(input, select)[aria-invalid="true"] { border-color: #a12620; }

.storefront .primary {
  min-height: 2.75rem;
  width: 100%;
  font-weight: 600;
}

.storefront .primary:hover:not(:disabled) { background: #363636; }
.storefront .primary:disabled { background: #4a4b4b; opacity: 1; }

.storefront footer {
  background: var(--ink);
  color: var(--card);
  padding-block: 1.35rem;
}

.storefront footer a:focus-visible { outline-color: var(--card); }

.production + .production { margin-top: 1rem; }
.production-review { color: #a12620; }

.production-table {
  border-collapse: collapse;
  width: 100%;
}

.production-table :is(th, td) {
  text-align: left;
  padding: .55rem .45rem;
  border-top: 1px solid #d9d9d4;
  vertical-align: top;
}

.production-table tr > :not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.production-table td { white-space: nowrap; }

@media (max-width: 720px) {
  .storefront .top { min-height: 3.75rem; }
  .shop-logo { flex-basis: 10.25rem; }
  .shop-link { font-size: .9375rem; }
  .storefront main { padding-block: 1.75rem 2.5rem; }
  .storefront h1 { font-size: 2rem; }
  .storefront .intro { font-size: 1rem; margin-bottom: 1.5rem; }
  .storefront h2 { font-size: 1.375rem; }
  .storefront .layout { grid-template-columns: minmax(0, 1fr); }

  html:has(.summary-shortcut:not([hidden], .summary-in-view)) { scroll-padding-block-end: 4.5rem; }

  .storefront .summary-shortcut:not([hidden], .summary-in-view) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem .75rem;
    position: fixed;
    z-index: 1;
    inset-inline: .75rem;
    bottom: max(.75rem, env(safe-area-inset-bottom));
    min-height: 2.75rem;
    padding: .55rem .9rem;
    border-radius: 4px;
    background: var(--ink);
    color: var(--card);
    font-weight: 600;
    text-decoration: none;
  }

  .storefront .summary-shortcut span { text-decoration: underline; }
  .storefront .summary-shortcut strong { font: 400 1rem/1.25 var(--heading); white-space: nowrap; }
}
