/* Nothing Fancy. Colours and type from BRAND.md, layout from the site board.
   Every text and background pair used here is listed in tests/contrast-pairs.json
   and checked at 4.5 to 1 or better. Add a pair there when adding a colour. */
:root {
  --ink: #141414;
  --paper: #f1f1ee;
  --plain: #d8d8d2;
  --stamp: #9a3412;
  --white: #ffffff;
  --muted: #4a4a45;
  --on-ink-muted: #d6d6cf;
  --on-ink-label: #b9b9b2;
  --rule: #c9c9c2;
  --display: Archivo, 'Arial Black', Arial, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.55;
}
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }
/* Form fields show the ring on any focus. Safari does not count a date field
   as :focus-visible when Tab moves into it, so it would show no ring at all. */
input:focus, select:focus, textarea:focus { outline: 3px solid var(--stamp); outline-offset: 3px; }
.band-ink :focus-visible, .btn:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--stamp); }
p, h1, h2, h3, dl, dd { margin: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 2; }
.skip:focus { left: 0; }

.banner { background: var(--stamp); color: var(--white); padding: 12px 24px; font-size: 15px; line-height: 1.4; text-align: center; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 760px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > .lead { flex: 1 1 320px; min-width: 0; }
.split > .rest { flex: 999 1 380px; min-width: 0; }

.band-ink { background: var(--ink); color: var(--paper); }
.band-ink a { color: var(--paper); }
.band-plain { background: var(--plain); }

.site-header { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; }
.wordmark { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 22px; text-transform: uppercase; text-decoration: none; padding: 11px 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-left: -10px; }
.site-nav a { font-size: 15px; padding: 12px 10px; }
.site-nav a[aria-current='page'] { font-weight: 600; text-decoration-thickness: 3px; }
.site-nav a.btn { margin-left: 10px; padding: 13px 20px; }

.display { font-family: var(--display); font-stretch: 112%; font-weight: 900; text-transform: uppercase; line-height: 0.95; font-size: clamp(2rem, 5vw, 3.6rem); overflow-wrap: break-word; }
h1.display { font-size: clamp(2.6rem, 9vw, 6rem); line-height: 0.9; letter-spacing: -0.02em; }
h1.display.hero { font-size: clamp(3rem, 11vw, 7rem); line-height: 0.88; }
.sub { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; text-transform: uppercase; }
.big { font-size: 1.3rem; line-height: 1.45; max-width: 34rem; }
.small { font-size: 0.9rem; color: var(--muted); }
.band-ink .small, .band-ink .soft { color: var(--on-ink-muted); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.band-ink .eyebrow, .card-ink .eyebrow { color: var(--on-ink-label); }
.tag { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--stamp); letter-spacing: 0.02em; }
/* The stamp colour is only 2.5 to 1 on ink, so tags on ink use the light label colour. */
.band-ink .tag, .card-ink .tag { color: var(--on-ink-label); }
.notice { border-left: 6px solid var(--stamp); background: var(--white); padding: 14px 18px; }

.btn { display: inline-block; background: var(--ink); color: var(--paper); border: 0; font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.3; padding: 15px 24px; text-decoration: none; cursor: pointer; }
.btn-light, .band-ink a.btn-light { background: var(--paper); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.actions a:not(.btn) { padding: 14px 4px; }

.hero-row { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.hero-row .copy { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-row .art { flex: 1 1 240px; display: flex; justify-content: center; }

/* The bottle from the board, drawn to the listing's dimensions. Decorative: hidden from screen readers. */
.bottle-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 14rem; }
.bottle { display: flex; flex-direction: column; align-items: center; }
.bottle .cap { width: 68px; height: 62px; background: var(--ink); border-radius: 2px; }
.bottle .neck { width: 44px; height: 6px; background: #c9cccb; }
.bottle .body { width: 136px; height: 452px; border: 2px solid #aeb2b1; border-radius: 68px 68px 16px 16px / 100px 100px 16px 16px; background: #eef1f0; position: relative; overflow: hidden; }
.bottle .label { position: absolute; left: 0; top: 136px; width: 132px; height: 264px; background: var(--plain); padding: 14px 11px 11px; display: flex; flex-direction: column; justify-content: space-between; line-height: 1.2; }
.bottle.pump16 .head { width: 86px; height: 18px; margin-left: 32px; border-radius: 2px 8px 2px 2px; background: var(--ink); }
.bottle.pump16 .stem { width: 15px; height: 43px; background: var(--ink); }
.bottle.pump16 .collar { width: 61px; height: 29px; border-radius: 2px; background: var(--ink); }
.bottle.pump16 .neck { width: 49px; height: 9px; background: #c9cccb; }
.bottle.pump16 .body { width: 167px; height: 380px; border-radius: 54px 54px 11px 11px / 58px 58px 11px 11px; }
.bottle.pump16 .label { top: 86px; width: 163px; height: 202px; padding: 11px 10px 9px; }
.bottle.pump16 .label-top { gap: 6px; }
.bottle.pump16 .brand { font-size: 22px; }
.bottle.pump16 .product { font-size: 17px; line-height: 1; }
.bottle.pump16 .identity { font-size: 12px; }
.bottle .claims { font-size: 9px; line-height: 1.3; }
.bottle.pump16 .lot { font-size: 12px; font-weight: 500; line-height: normal; }
.bottle.pump16 .net { font-size: 11px; line-height: 1.2; }
.bottle .label-top { display: flex; flex-direction: column; gap: 10px; }
.bottle .brand { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 20px; line-height: 0.9; text-transform: uppercase; }
.bottle .bar { height: 3px; background: var(--ink); }
.bottle .product { font-family: var(--display); font-weight: 800; font-size: 15px; text-transform: uppercase; }
.bottle .identity { font-weight: 700; font-size: 11px; }
.bottle .lot { font-family: var(--mono); font-size: 12px; color: var(--stamp); }
.bottle .net { font-weight: 600; font-size: 12px; }

.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.three > div { display: flex; flex-direction: column; gap: 10px; }
.ruled > * { border-top: 2px solid var(--ink); padding-top: 14px; }
.ruled { display: flex; flex-direction: column; gap: 18px; }
.ruled.big { max-width: none; }
.strong { font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card h3 a { text-decoration-thickness: 3px; }
.card { background: var(--paper); padding: 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.card-ink { background: var(--ink); color: var(--paper); }

.qa dt { font-weight: 600; font-size: 1.15rem; border-top: 2px solid var(--ink); padding-top: 14px; }
.qa dd { margin: 6px 0 22px; }

.panel { background: var(--white); border: 1px solid var(--rule); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
label { font-weight: 600; font-size: 16px; display: block; margin-bottom: 6px; }
input[type='text'], input[type='email'], input[type='date'], select, textarea {
  width: 100%; font-family: var(--body); font-size: 17px; padding: 13px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink);
}
textarea { min-height: 9rem; resize: vertical; }
input.mono { font-family: var(--mono); font-size: 20px; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field-row > .grow { flex: 1 1 180px; min-width: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-weight: 400; margin: 0; }
.choice input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.field-error { color: var(--stamp); font-weight: 600; margin: 6px 0 0; }
input[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--stamp); }
#form-not-connected { display: none; }
#form-not-connected:target, #form-status:not([hidden]) { display: block; }

.lot-code { font-family: var(--mono); font-weight: 500; font-size: 1.5rem; color: var(--stamp); }
#lot-result:empty { display: none; }
.record .row { display: flex; flex-wrap: wrap; gap: 4px 24px; border-top: 1px solid var(--rule); padding: 10px 0; }
.record dt { flex: 0 0 11rem; font-weight: 600; }
.record dd { flex: 1 1 12rem; font-family: var(--mono); font-size: 1rem; }
.record .limit { color: var(--muted); display: block; }

.spec-numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--ink); border: 2px solid var(--ink); }
.spec-number { background: var(--paper); padding: 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.spec-number .value { font-family: var(--display); font-stretch: 100%; font-weight: 900; font-size: clamp(1.35rem, 5.6vw, 2rem); line-height: 1; overflow-wrap: anywhere; }
.spec-number .tag { display: block; margin-top: 4px; }
.spec-number .label { font-weight: 600; }
.spec-number .note { font-size: 0.9rem; color: var(--muted); }

@media (min-width: 701px) { .spec-numbers { grid-template-columns: repeat(3, 1fr); } }

table.ingredients { width: 100%; border-collapse: collapse; }
table.ingredients th, table.ingredients td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 2px solid var(--ink); }
table.ingredients thead th { border-top: 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
table.ingredients tbody th { font-weight: 600; }
@media (max-width: 700px) {
  table.ingredients thead { position: absolute; left: -999px; }
  table.ingredients tr, table.ingredients th, table.ingredients td { display: block; padding-right: 0; }
  table.ingredients td { border-top: 0; padding-top: 0; }
  table.ingredients td::before { content: attr(data-label) ': '; font-weight: 600; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .record dt { flex-basis: 100%; }
}

.site-footer { border-top: 2px solid var(--ink); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: #3a3a36; }
.site-footer a { color: #3a3a36; padding: 12px 0; display: inline-block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
