/* ===========================================================================
   WORK ORDER — D Farm's approved design

   Ported from dfarm/_design/workorder.css, the mockup D Farm chose on
   2 October 2026. The port is deliberately close to the original: the class
   names, the 1.5px rules, the condensed caps and the monospace spec lines are
   the design, and changing them because they do not match the platform
   template's conventions would be changing what was sold.

   What differs from the mockup, and why:

     - The palette is D Farm's own, not the Duck Canvas preset. See base.css
       for where the derived tokens come from and what their contrast is.
     - `.mk-photo` placeholder slots are now `.ph`, a real frame around a real
       <img>. The mockup had no photographs to show; there are nineteen now.
     - The admin styles (`.adm*`, `.tiles`, `.bars`) are gone. The admin has
       its own stylesheet and is not part of the public theme.
     - A skip link and `.visually-hidden` are added. The mockup had no
       keyboard or screen-reader affordances because it was never a site.

   TOKEN CONTRACT — every color comes from these names. No literal colors
   below :root, so the palette stays swappable.
   =========================================================================== */
:root {
    /* D Farm's palette, confirmed 2 October 2026. Work Order's Duck Canvas
       preset with a warmer ground (#E7E1D4 -> #EADFC7). */
    --ground:      #EADFC7;
    --surface:     #F4F0E7;
    --ink:         #16171A;
    --ink-2:       #4C4E48;
    --accent:      #9A4414;
    --accent-2:    #3C4A2E;
    --on-accent:   #FFFFFF;
    --on-accent-2: #FFFFFF;

    /* Derived — never set these directly. */
    --rule:   color-mix(in srgb, var(--ink) 15%, var(--ground));
    --rule-2: color-mix(in srgb, var(--ink) 32%, var(--ground));
    --tint:   color-mix(in srgb, var(--accent) 10%, var(--surface));

    --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --text:    'IBM Plex Sans', system-ui, sans-serif;
    --mono:    'IBM Plex Mono', ui-monospace, monospace;
    --wrap:    1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font: 400 16.5px/1.6 var(--text);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }

/* Fields only a bot fills in (the contact form's and the reservation's
   "Website" box). Off-screen rather than display:none, which some bots
   check for. This theme had no rule for it, so the box showed — and a
   person who typed in it had their message quietly thrown away. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Keyboard and screen-reader basics the mockup never needed. */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: var(--ground);
    padding: 12px 18px;
    font: 700 16px/1 var(--display);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.skip:focus { left: 0; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.sec { padding: 60px 0; }
.sec__head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: end; margin-bottom: 26px; }
.sec__head h1, .sec__head h2 { font-size: clamp(40px, 5vw, 64px); }
.sec__head .ln { height: 1px; background: var(--ink); align-self: center; transform: translateY(8px); }
.sec__head a, .sec__head span { font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.spec { font: 500 13px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.spec b { color: var(--ink); font-weight: 500; }
.muted { color: var(--ink-2); }

/* ---- A real photograph, where the mockup had a labeled slot ----------- */
.ph { position: relative; overflow: hidden; background: var(--surface); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
/* A photograph that does not exist yet. The design drew every image
   position as an explicitly labelled slot, because D Farm's pictures were
   not available when it was built — and ten of the twelve products still
   have none. Drawn rather than collapsed: an empty column reads as a
   broken page, a hatched frame reads as one waiting for a picture.
   The hatch is the design's own, in this theme's paper rather than the
   mockup's grey. */
.ph--none {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
    border: 1.5px dashed var(--rule-2);
    background-color: var(--surface);
    background-image:
        linear-gradient(45deg, color-mix(in srgb, var(--ground) 60%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--ground) 60%, transparent) 75%),
        linear-gradient(45deg, color-mix(in srgb, var(--ground) 60%, transparent) 25%, transparent 25%, transparent 75%, color-mix(in srgb, var(--ground) 60%, transparent) 75%);
    background-size: 18px 18px;
    background-position: 0 0, 9px 9px;
}
.ph--none span {
    font: 500 11px/1 var(--mono);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-2);
}

/* ---- Harvest strip ---------------------------------------------------- */
.next { background: var(--accent); color: var(--on-accent); }
.next .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font: 500 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.next b { font-weight: 600; }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px 13px;
    border: 1.5px solid var(--ink);
    background: var(--ink);
    color: var(--ground);
    font: 800 18px/1 var(--display);
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.btn::after { content: "→"; font-family: var(--mono); font-weight: 500; font-size: 15px; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--wide { width: 100%; justify-content: space-between; }
/* The button that sits inside a row of a list rather than ending a page.
   Smaller type and tighter padding, still 40px tall — well clear of the
   24-point minimum target, and it keeps a list of packs to rows a person
   can scan rather than scroll. */
.btn--sm { padding: 10px 14px 9px; font-size: 14px; letter-spacing: .06em; min-height: 40px; gap: 7px; }
.btn--sm::after { font-size: 13px; }
/* No arrow. Every button on this site points somewhere — Reserve, Add to
   order, This week's list — and the arrow says so. Send does not point
   anywhere; it finishes something. */
.btn--plain::after { content: none; }

/* ---- Header ----------------------------------------------------------- */
/* Three columns with the slack split evenly either side, so the links land
   in the middle of the bar rather than tucked against the brand. The brand
   and the cart keep their natural widths — justify-self stops the 1fr
   columns from stretching them and dragging the brand's rule away from the
   word it belongs to. */
.hdr { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; border-bottom: 1.5px solid var(--ink); }
.hdr__mark { display: flex; flex-direction: column; justify-content: center; padding: 16px 26px 14px 0; margin-right: 26px; border-right: 1.5px solid var(--ink); text-decoration: none; justify-self: start; min-width: 0; }
.hdr__mark b { font: 800 40px/.9 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.hdr__mark small { font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 4px; }
.hdr nav { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.hdr nav a { font: 700 18px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.hdr nav a[aria-current] { color: var(--accent); }
.hdr nav a[aria-current]::before { content: "■ "; font-size: 10px; vertical-align: 3px; }
/* The logo lockup in place of the type wordmark. Height is fixed so the
   header bar keeps the proportions the design set, and the image is allowed
   to find its own width within that. */
.hdr__mark--logo { padding-top: 14px; padding-bottom: 12px; }
/* The lockup stacks "D" over "FARM", so it is nearly as tall as it is wide.
   At the 40px the type wordmark used, "FARM" was illegible — it needs roughly
   twice that to read at all, which is what sets the header's height here. */
.hdr__mark--logo img { height: 86px; width: auto; }
.hdr__mark--logo small { margin-top: 6px; }
@media (max-width: 620px) { .hdr__mark--logo img { height: 62px; } }

/* Two icons sit here when a visitor has both a cart and a reservation, so
   they need a gap between them. */
.hdr__cta { display: flex; align-items: center; gap: 4px; padding-left: 20px; justify-self: end; min-width: 0; }
.hdr__cta .btn { padding: 11px 16px 10px; font-size: 16px; }

/* ---- Hero ------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; border-bottom: 1.5px solid var(--ink); }
.hero__t { padding: 48px 36px 44px 0; border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; }
.hero h1 { font-size: clamp(64px, 9vw, 132px); line-height: .84; }
/* Only the second line takes the accent. The mockup could say `h1 span`
   because its markup had exactly one span; the real headline wraps both
   lines in spans so each is separately editable, and the loose selector
   turned the whole headline orange. */
.hero h1 .accent { color: var(--accent); }
.hero__lede { max-width: 46ch; font-size: 18px; margin: 26px 0 26px; }
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.hero .ph { min-height: 520px; }

/* The hero works without a photograph: the text column simply spans the row,
   rather than leaving a hole where a slot used to be. */
.hero--notext, .hero:not(:has(.ph)) { grid-template-columns: 1fr; }
.hero:not(:has(.ph)) .hero__t { border-right: 0; padding-right: 0; }

/* The four facts under the hero. A filled strip in the same ink as the
   band further down the page, bleeding to both edges as that one does,
   because its job is to divide the hero from the price list — a row of
   boxes ruled off underneath the hero read as part of the hero.

   The dividers and the labels are mixed down from the band's own text
   colour rather than from --ink, which is invisible on this ground. */
.specband { background: var(--accent-2); color: var(--on-accent-2); }
.specline { display: grid; grid-template-columns: repeat(4, 1fr); }
.specline div { padding: 18px 16px; border-right: 1px solid color-mix(in srgb, var(--on-accent-2) 26%, transparent); }
.specline div:first-child { padding-left: 0; }
.specline div:last-child { border-right: 0; padding-right: 0; }
.specline span { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--on-accent-2) 76%, transparent); }
.specline b { font: 800 30px/1.1 var(--display); text-transform: uppercase; }
/* The strip is now the boundary, so the hero does not need to draw one as
   well. Scoped to the arrangement rather than to the page: the other five
   heroes keep their rule. */
.wrap:has(+ .specband) .hero { border-bottom: 0; }

/* ---- Hang tags (one per product) -------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.htag {
    position: relative;
    background: var(--surface);
    border: 1.5px solid var(--ink);
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
    padding: 36px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.htag::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    background: var(--ground);
}
/* Clip-path hides the corner borders, so redraw them. */
.htag::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom right, transparent calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + .5px), transparent calc(50% + .5px)) 0 0 / 22px 22px no-repeat,
        linear-gradient(to bottom left, transparent calc(50% - 1px), var(--ink) calc(50% - 1px), var(--ink) calc(50% + .5px), transparent calc(50% + .5px)) 100% 0 / 22px 22px no-repeat;
}
.htag .ph { min-height: 170px; margin: 0 -20px; }
.htag__lot { display: flex; justify-content: flex-start; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.htag__name { font: 800 30px/.95 var(--display); text-transform: uppercase; }
.htag__spec { font: 400 13px/1.5 var(--mono); color: var(--ink-2); margin: 0; }
.htag__f { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--rule-2); }
.price { font: 600 22px/1 var(--mono); letter-spacing: -.01em; }
.price small { font-size: 13px; color: var(--ink-2); margin-left: 1px; }
/* The tag is a link. It inherits the page's ink rather than link colour,
   because the whole card is the target and an underlined 30px product name
   would fight the design. The hover and focus states have to carry the
   affordance instead, so they are deliberately loud. */
a.htag { color: inherit; text-decoration: none; }
a.htag:hover { border-color: var(--accent); }
a.htag:hover .btn--accent { background: var(--ink); border-color: var(--ink); color: var(--ground); }
a.htag:hover .htag__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.htag:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* The corner strokes are drawn by ::after, which sits above the content and
   must never eat the click. */
a.htag::after { pointer-events: none; }
/* A reservation line's controls: a number and two small buttons, kept on
   one row and allowed to wrap on a phone. Two separate <form>s, so they are
   laid out as a flex row here rather than inside one. */
/* ---- Checkout: required markers and the Stripe badge ------------------- */
.field label .req,
.field label .opt {
    margin-left: 6px;
    font: 500 10px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.field label .req { color: var(--accent); }
.field label .opt { color: var(--ink-2); }
.field .hint { display: block; margin-top: 6px; font: 400 12px/1.4 var(--mono); color: var(--ink-2); }

.stripebadge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font: 400 13px/1.3 var(--mono);
    color: var(--ink-2);
}
.stripebadge strong { color: var(--ink); font-weight: 600; }
.stripebadge svg { flex: 0 0 auto; }

/* ---- Choosing a pickup day ---------------------------------------------
   Same idiom as the pickup-place checks above it, one step smaller: these
   are dates, not places, and they should read as a row of tickets rather
   than compete with the choice above. 44px tall so they are a real target
   on a phone. */
.whenbox { margin-top: 18px; }
.whenbox[hidden] { display: none; }
/* Equal boxes. These were inline-flex in a wrapping row, so each one was
   as wide as its own date — "Friday, October 2" sat in a box two thirds
   the width of "Wednesday, October 28" — and the row ended ragged. A grid
   of equal tracks gives them one size, and auto-fit keeps them filling
   the row as the column narrows. */
.whens { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.when {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1.5px solid var(--ink);
    background: var(--surface);
    cursor: pointer;
    font: 400 13px/1.3 var(--mono);
}
.when input { width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.when:hover { border-color: var(--accent); }
.when:has(input:checked) { background: var(--ink); color: var(--ground); border-color: var(--ink); }
/* :has is well supported now, but a browser without it must still show
   which day is chosen — the radio itself does that, so nothing is lost. */
.when:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

.rcpt__qty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 18px; }
.rcpt__qty .btn { padding: 9px 12px 8px; font-size: 14px; }

/* ---- Quantity stepper -------------------------------------------------
   Minus, a number, plus: the control everybody already knows. Drawn as one
   ruled box so the three parts read as a single instrument rather than
   three loose buttons — the design's one-and-a-half-pixel ink rule, with
   the figure in the mono face it uses for every other number.

   The parts are separate <form>s on the cart and the reservation, which is
   why the box is a wrapper with the border on it rather than a border on
   one element; partials/qty-set.php says why they have to be separate.

   Every divider inside the box belongs to the control that follows it, so
   a hidden minus or plus takes its rule with it and the box still looks
   like one object with scripting off.
   -------------------------------------------------------------------- */
.stepper { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.stepper__box { display: inline-flex; align-items: stretch; border: 1.5px solid var(--ink); background: var(--surface); }
.stepper__box form { display: flex; }

.stepper__btn {
    /* 44px square: the smallest target a thumb can be relied on to hit,
       and a thumb is what will be pressing these. */
    width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: var(--ground);
    color: var(--ink);
    font: 500 20px/1 var(--mono);
    cursor: pointer;
}
.stepper__btn[data-stepper-down] { border-right: 1.5px solid var(--ink); }
.stepper__box form:first-child .stepper__btn { border-right: 1.5px solid var(--ink); }
.stepper__btn[data-stepper-up],
.stepper__box form:last-of-type .stepper__btn { border-left: 1.5px solid var(--ink); }
.stepper__btn:hover:not(:disabled) { background: var(--ink); color: var(--ground); }
.stepper__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
/* The last pack is in the cart already. Dimmed AND unpressable, never
   dimmed alone — a button that looks spent and still fires is a lie. */
.stepper__btn:disabled { opacity: .35; cursor: not-allowed; }

.stepper__n {
    width: 62px;
    min-height: 44px;
    text-align: center;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    color: var(--ink);
    font: 600 17px/1 var(--mono);
    padding: 0 4px;
    /* The browser's own spinners are a few pixels tall on a 44px control
       and impossible to hit; the real buttons replace them. */
    -moz-appearance: textfield;
    appearance: textfield;
}
.stepper__n::-webkit-outer-spin-button,
.stepper__n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__n:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

/* The no-JavaScript submit for a typed number, and the line's own Remove.
   site.js hides the first; the second sits outside the ruled box because
   it is a different decision from "how many". */
.stepper__go, .stepper__rm { padding: 9px 12px 8px; font-size: 14px; min-height: 44px; }
.stepper__go { border: 0; border-left: 1.5px solid var(--ink); }

.htag .btn { padding: 9px 12px 8px; font-size: 15px; }
.htag .btn::after { content: none; }
.htag.is-out { opacity: .7; }
.htag.is-out .price { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.stamp {
    align-self: flex-start;
    display: inline-block;
    padding: 5px 8px 4px;
    border: 2px solid var(--accent);
    color: var(--accent);
    font: 800 15px/1 var(--display);
    letter-spacing: .12em;
    text-transform: uppercase;
    transform: rotate(-3deg);
}
.stamp--2 { border-color: var(--accent-2); color: var(--accent-2); }

/* The stamp's small, sober sibling, for saying that a row is already
   yours. Square to the row rather than rotated like .stamp: inside a
   table cell a tilted badge fights every rule around it. */
.tag {
    display: inline-block;
    padding: 4px 7px 3px;
    margin-left: 6px;
    border: 1.5px solid var(--rule-2);
    color: var(--ink-2);
    font: 500 10px/1 var(--mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: 1px;
}
.tag--mine { border-color: var(--accent); color: var(--accent); }

/* ---- Ledger (the price list) ------------------------------------------ */
.ledger { width: 100%; border-collapse: collapse; background: var(--surface); border: 1.5px solid var(--ink); }
.ledger caption { text-align: left; font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 10px; }
.ledger th { text-align: left; padding: 10px 14px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); background: var(--ground); }
.ledger td { padding: 13px 14px; border-bottom: 1px solid var(--rule); font: 400 14px/1.3 var(--mono); }
/* The item name is a row header, not a cell — a screen reader should say
   "Whole chicken, price, $5.00/lb" rather than reading three loose values.
   The mockup used a <td>, so this selector has to name both. */
.ledger td:first-child,
.ledger th[scope="row"] { font: 800 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--ink); background: none; border-bottom: 1px solid var(--rule); text-align: left; padding: 13px 14px; }
.ledger .r { text-align: right; }
.ledger td.r { font-weight: 600; }
.ledger tr.is-out td { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--accent); }
/* The weights under an item name: only ever drawn on a phone, where the
   Weight column has been dropped. */
.ledger__sub { display: none; font: 400 12px/1.5 var(--mono); text-transform: none; letter-spacing: 0; color: var(--ink-2); font-weight: 400; }
.ledger__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1.5px solid var(--ink); border-top: 0; background: var(--ground); }

/* ---- Process steps ---------------------------------------------------- */
.proc { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); background: var(--surface); }
.proc div { padding: 22px 20px 24px; }
.proc div + div { border-left: 1.5px solid var(--ink); }
.proc span { font: 500 12px/1 var(--mono); letter-spacing: .08em; color: var(--accent); }
.proc h3 { font-size: 30px; margin: 10px 0 8px; }
.proc p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* ---- Home introduction ------------------------------------------------
   A heading against a column of text, divided by the same hairline rule the
   rest of the design uses. Deliberately not the Our Farm "story" block: that
   one is a bordered panel with a photograph, and two panels stacked on one
   page would read as a mistake. */
.intro { display: grid; grid-template-columns: 1fr 1.6fr; gap: 36px; padding-top: 26px; border-top: 1.5px solid var(--ink); }
.intro__t h2 { font-size: clamp(34px, 4vw, 52px); margin-top: 10px; }
.intro__b p { font-size: 18px; line-height: 1.6; margin: 0 0 22px; max-width: 62ch; }

/* ---- Band (dark) ------------------------------------------------------ */
.band-dk { background: var(--accent-2); color: var(--on-accent-2); padding: 42px 0; }
.band-dk .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.band-dk h2 { font-size: clamp(40px, 5vw, 66px); }
.band-dk + .sec { padding-top: 56px; }   /* the band is flush; the next section needs its own air */
.band-dk p { font-size: 17px; opacity: .92; margin: 0; }

/* ---- Product (spec sheet) --------------------------------------------- */
.crumb { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 20px 0 0; }
/* Underlined. Nothing but the cursor said this was a link before, and the
   cursor is not available to half the people using the page. */
.crumb a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    /* The whole word is the target and it is only twelve pixels tall, so
       the padding is what makes it hittable with a thumb. */
    padding: 10px 2px;
    margin: -10px 0;
}
.crumb a:hover { color: var(--accent); }
.crumb__here { color: var(--ink-2); }
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 24px 0 60px; }
.pdp__gal { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp__gal .ph:first-child { grid-column: 1 / -1; min-height: 440px; }
.pdp__gal .ph { min-height: 210px; }
/* One photograph should fill the column rather than sitting in half of a
   two-column grid with a hole beside it. */
.pdp__gal--one { grid-template-columns: 1fr; }
.pdp h1 { font-size: clamp(54px, 6.4vw, 88px); }
.pdp__price { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 18px 0 14px; padding: 12px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.pdp__price .price { font-size: 36px; }
/* The farm's paragraph about this cut. Set in the body face at a size
   meant for reading, not in the mono face the figures use. */
.pdp__desc { margin: 18px 0 4px; max-width: 62ch; }
.pdp__desc p { margin: 0 0 10px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
/* How the poultry is processed (the farm's exemption, if they show it). The
   first line is the label statement, set like the label's own small print. */
.pdp__exempt { margin: 14px 0 6px; padding: 10px 12px; border: 1.5px solid var(--ink); max-width: 62ch; }
.pdp__exempt p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.pdp__exempt .pdp__exempt-label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--ink); margin-bottom: 4px; }
.pdp__desc p:last-child { margin-bottom: 0; }

/* ---- The pack list ----------------------------------------------------
   One row per pack: its weight, its exact price, and the button that
   takes it. It used to borrow .sheet, the specification table, which is
   built for a label column and a value column — hence the rule down the
   middle, the 34% first column and the button floating in a cell sized
   for prose. This is its own thing.

   Rows are 54px, which is a comfortable press and lets four packs be read
   at a glance instead of filling the screen.
   -------------------------------------------------------------------- */
.packs { width: 100%; border-collapse: collapse; margin: 10px 0 14px; border: 1.5px solid var(--ink); background: var(--surface); }
.packs caption { caption-side: top; text-align: left; }
.packs thead th {
    padding: 9px 16px;
    font: 500 11px/1 var(--mono);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink-2);
    text-align: left;
    background: var(--ground);
    border-bottom: 1.5px solid var(--ink);
}
.packs tbody th,
.packs tbody td { padding: 8px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; height: 54px; }
/* The last row's rule would double up with the table's own border. */
.packs tbody tr:last-child th,
.packs tbody tr:last-child td { border-bottom: 0; }
.packs tbody th[scope="row"] { text-align: left; font: 500 16px/1 var(--mono); color: var(--ink); white-space: nowrap; }
.packs tbody td { font: 600 16px/1 var(--mono); color: var(--ink); }
.packs .r { text-align: right; }
/* The button column: only as wide as the button, hard against the edge. */
.packs tbody td:last-child { width: 1%; white-space: nowrap; padding-left: 10px; }
.packs tbody td:last-child form { display: block; }
.packs tbody tr:hover { background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }

/* The packs this visitor has already taken. Same rows, marked as theirs
   with the accent rule the design uses for anything claimed. */
/* A pack already on this order. It stays in place in the one list — see
   the note in pages/product.php — and says so with a tint and a badge
   rather than by moving to a table of its own. */
.packs tr.is-mine,
.packs tbody tr.is-mine:hover { background: var(--tint); }

/* The same fact where there is no row to put it on: the farm-picks-the-pack
   flow, and the reservation flow, which both offer a quantity rather than a
   list. One line, the badge, and the way back out. */
.onorder {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 0;
    font: 500 14px/1 var(--mono);
    color: var(--ink-2);
}
.onorder .tag { margin-left: 0; }
.onorder form { margin-left: auto; }

/* "Available now" carries a count beside it. */
.opt-label small { font-size: 11px; font-weight: 400; color: var(--ink-2); letter-spacing: .06em; margin-left: 10px; text-transform: none; }

.sheet { width: 100%; border-collapse: collapse; margin: 18px 0; border: 1.5px solid var(--ink); background: var(--surface); }
.sheet th, .sheet td { padding: 10px 14px; border-bottom: 1px solid var(--rule); text-align: left; font: 400 14px/1.4 var(--mono); }
.sheet th { width: 34%; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); border-right: 1px solid var(--rule); }
.opt-label { display: block; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 22px 0 10px; }
.est { margin: 18px 0; padding: 16px 18px; border: 1.5px dashed var(--accent); background: var(--tint); }
.est__n { font: 600 26px/1.1 var(--mono); color: var(--accent); }
.est__n small { font-size: 13px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; margin-left: 6px; }
.est p { margin: 8px 0 0; font-size: 15px; }
.qty { display: flex; gap: 10px; }
.qty input, .field input, .field select, .field textarea {
    font: 400 15px/1.3 var(--mono);
    padding: 12px 12px;
    border: 1.5px solid var(--ink);
    border-radius: 0;
    background: var(--surface);
    color: var(--ink);
    width: 100%;
}
.qty input { width: 84px; text-align: center; }
/* A stepper and a button on one line, wrapping to two on a narrow phone
   rather than squeezing either below its target size. */
.qty--order { flex-wrap: wrap; align-items: center; }
.qty--order .btn { min-height: 44px; }

/* A field the visitor got wrong. Marked by color AND by the message beneath,
   never by color alone. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--accent); border-width: 2.5px; }
.field .err { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--accent); }

/* ---- Work ticket (order form) ----------------------------------------- */
.co { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding: 32px 0 60px; }
.wt-form { background: var(--surface); border: 1.5px solid var(--ink); }
.wt-form__h { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 18px 22px; border-bottom: 1.5px solid var(--ink); }
.wt-form__h h1 { font-size: 54px; }
.wt-form__h span { font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: right; color: var(--ink-2); }
.box { padding: 18px 22px 20px; border-bottom: 1.5px solid var(--ink); }
.box:last-child { border-bottom: 0; }
.box__t { display: flex; gap: 12px; align-items: baseline; margin-bottom: 14px; }
.box__t span { font: 500 12px/1 var(--mono); color: var(--accent); }
.box__t b { font: 800 22px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.notice { margin-top: 12px; padding: 12px 14px; border-left: 4px solid var(--accent); font-size: 14.5px; background: var(--tint); }
.notice b { color: var(--accent); }

/* ---- Our farm --------------------------------------------------------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1.5px solid var(--ink); background: var(--surface); }
/* Centred down the column. With the farm's account moved to a section of
   its own, the text here is a kicker, a heading and one line — hung from
   the top of a cell as tall as the photograph beside it, it left a third
   of the box empty underneath. */
.story__t { padding: 34px 32px; border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; justify-content: center; }
.story h1 { font-size: clamp(56px, 6.6vw, 96px); margin-bottom: 22px; }
.story .lede { font-size: 20px; line-height: 1.5; }
.story .ph { min-height: 100%; }
/* The farm's own account. A measure you can read at — prose set the full
   width of this page would run to about 140 characters a line. */
.prose { max-width: 68ch; }
.prose p { font-size: 17px; line-height: 1.62; margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }

/* ---- The picture viewer ------------------------------------------------
   partials/lightbox.php renders on every page of this site and, until the
   Our Farm gallery, nothing had ever opened it. Its styles lived only in
   base.css — which is not a base at all but one of three alternative
   themes, of which this site loads exactly one. So on the live theme the
   viewer had no rules whatsoever: un-hiding it dropped an unstyled block
   into the bottom of the page while the script locked body scrolling, and
   the page appeared to freeze with nothing to show for it.
   ----------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 64px;
    /* Solid, not a wash. At 95% the page behind stayed readable enough to
       compete with the photograph, and judging a photograph is the entire
       point of opening it. The close button says how to get out. */
    background: var(--ink);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1.5px solid var(--ground);
    background: var(--ink);
}
.lightbox__caption {
    padding-top: 14px;
    text-align: center;
    color: var(--ground);
    font: 400 13px/1.5 var(--mono);
}
.lightbox__caption[hidden] { display: none; }
/* 44px targets, in the design's own mono, reversed out of the wash. */
.lightbox button {
    position: absolute;
    min-width: 48px;
    min-height: 48px;
    padding: 8px 14px;
    border: 1.5px solid transparent;
    background: none;
    color: var(--ground);
    font: 400 28px/1 var(--mono);
    cursor: pointer;
}
.lightbox button:hover { border-color: var(--ground); }
.lightbox button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lightbox__close { top: 10px; right: 12px; }
.lightbox__prev  { left: 10px;  top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 620px) {
    .lightbox { padding: 64px 12px; }
    .lightbox__prev { left: 2px; }
    .lightbox__next { right: 2px; }
}

/* The gallery. This replaced a row of exactly three photographs that only
   appeared when all three of its named slots were filled — so for most of
   this site's life the page had no pictures on it below the first. */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.gal .photo__btn {
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1.5px solid var(--ink);
    background: var(--surface);
    cursor: pointer;
}
.gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal .photo__btn:hover { border-color: var(--accent); }
.gal .photo__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 620px) {
    .gal { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ---- Visit ------------------------------------------------------------ */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.addr { font: 800 44px/.95 var(--display); text-transform: uppercase; margin: 6px 0 10px; }
/* The map slot on Visit — the design gives it a fixed minimum so the column
   keeps its shape whatever goes in it. */
.ph--map { min-height: 240px; border: 1.5px solid var(--ink); margin-top: 16px; }
.hours { border: 1.5px solid var(--ink); background: var(--ink); color: var(--ground); }
.hours h3 { font-size: 34px; padding: 16px 20px 12px; border-bottom: 1.5px solid color-mix(in srgb, var(--ground) 40%, var(--ink)); }
.hours div { display: flex; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid color-mix(in srgb, var(--ground) 25%, var(--ink)); font: 500 16px/1.2 var(--mono); text-transform: uppercase; }
.hours dl { margin: 0; }
.hours dd { margin: 0; }
.hours p { margin: 0; padding: 12px 20px; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .78; }

/* ---- Size bands (product) --------------------------------------------
   Dropped by mistake when this stylesheet was first trimmed, along with the
   choice cards, the ticket and the market list below. The order and product
   screens rendered as unstyled native controls as a result — the markup was
   right and the design simply was not there. */
.bands { display: grid; grid-template-columns: repeat(3, 1fr); border: 1.5px solid var(--ink); }
.band { padding: 12px 14px; border: 0; background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.band + .band { border-left: 1.5px solid var(--ink); }
.band b { display: block; font: 800 24px/1 var(--display); text-transform: uppercase; }
.band span { font: 400 13px/1.4 var(--mono); color: var(--ink-2); }
.band[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.band[aria-pressed="true"] span { color: var(--ground); opacity: .8; }

/* ---- Choice cards (order) --------------------------------------------- */
/* As many columns as there are places, rather than always two. With the
   markets gated out there is often only the farmstand, and a fixed pair
   of columns left half the bordered box empty beside it. */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border: 1.5px solid var(--ink); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 14px; cursor: pointer; }
.check + .check { border-left: 1.5px solid var(--ink); }
.check input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--ink); margin: 2px 0 0; background: var(--surface); display: grid; place-items: center; }
.check input:checked { background: var(--ink); }
.check input:checked::after { content: "✕"; color: var(--ground); font: 700 12px/1 var(--mono); }
.check b { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; display: block; }
.check span { font: 400 13px/1.4 var(--mono); color: var(--ink-2); }

/* ---- The ticket (order) ----------------------------------------------- */
.rcpt { background: var(--surface); border: 1.5px solid var(--ink); padding: 22px; align-self: start; position: sticky; top: 80px; font-family: var(--mono); }
.rcpt h2 { font-size: 34px; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); }
/* No dashed rules between the lines. The panel is already a ruled box on
   a ruled page, and a dotted line under every item made a short list look
   like a receipt printed badly. The space does the separating. */
.rcpt__row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 14px 0 6px; font-size: 14px; }
/* The item is the thing being read. It was grey and the same weight as
   the price under it. */
.rcpt__row > div { font: 700 15px/1.25 var(--display); letter-spacing: .04em; color: var(--ink); }
.rcpt__row small { display: block; margin-top: 4px; color: var(--ink-2); font: 400 12px/1 var(--mono); letter-spacing: 0; }
/* One rule, above the total, where it means something. */
.rcpt__tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 8px; padding: 14px 0 4px; border-top: 1.5px solid var(--ink); font-size: 20px; font-weight: 600; }
/* "Provided at pickup" is a sentence, not a figure, and at 20px it
   crowded the word TOTAL. */
.rcpt__tot span:last-child { font-size: 15px; text-align: right; }
.rcpt__fine { font-size: 12px; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin: 6px 0 16px; }

/* ---- Markets (visit) -------------------------------------------------- */
/* Phone and email, for the people who are not going to fill in a form. */
.reach { border: 1.5px solid var(--ink); background: var(--surface); }
.reach > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
.reach > div:last-child { border-bottom: 0; }
.reach span { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.reach a { font: 500 16px/1 var(--mono); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.reach a:hover { color: var(--accent); }

/* The postal address. <address> is italic by default in every browser, and
   .addr was sized for a two-word town — three lines of street address at
   44px would be a billboard. */
address.addr { font-style: normal; font-size: 26px; line-height: 1.2; }

.mkts { margin-top: 22px; border: 1.5px solid var(--ink); background: var(--surface); }
.mkts > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--rule); }
.mkts > div:last-child { border-bottom: 0; }
.mkts b { font: 800 22px/1 var(--display); text-transform: uppercase; }
.mkts span { display: block; font: 400 13px/1.5 var(--mono); color: var(--ink-2); margin-top: 3px; }
.mkts em { font: 500 12px/1.5 var(--mono); font-style: normal; text-transform: uppercase; color: var(--accent); }

/* ---- Photograph grid (the gallery) ------------------------------------ */
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.frames .ph { min-height: 280px; border: 1.5px solid var(--ink); }

/* ---- Footer ----------------------------------------------------------- */
.ftr { background: var(--ink); color: var(--ground); padding: 0 0 22px; }

/* The design set the farm's name here at enormous size. It is now the logo
   itself, reversed out, holding the same position and the same weight on the
   page — the mark earns the space the wordmark used to take. */
/* The mark and the columns on one row: logo left, details beside it. The
   logo takes only the width it needs, so the columns divide what is left. */
.ftr__top {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: start;
    padding: 44px 0 30px;
}
.ftr__mark img { height: clamp(104px, 11vw, 150px); width: auto; }

/* The columns sit next to each other at a fixed distance, rather than each
   taking an equal share of the row. As a grid of 1fr tracks, two columns
   split the whole width and "Orders" ended up half a page away from
   "Pages" with nothing in between. A flex row keeps the gap constant
   however many columns the farm's details come to. */
.ftr__g {
    display: flex;
    flex-wrap: wrap;
    /* Pushed to the right, so the row reads logo-left / details-right and
       balances across the page. Packed left, the whole footer huddled in the
       first third with the right half empty; spread with 1fr tracks, the two
       columns ended up half a page apart. Right-aligned keeps them together
       AND uses the width, and it lines up with the copyright row beneath,
       which is left and right too. */
    justify-content: flex-end;
    gap: 22px 64px;
    font: 400 13px/1.7 var(--mono);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ftr__g > div { min-width: 140px; }
.ftr__g b { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ground); }
.ftr__g span { display: block; opacity: .78; }
/* Links are underlined, not just a shade of the surrounding text. In the
   previous footer the only thing separating a link from a label was opacity,
   which is not a difference anyone can act on. */
.ftr__g a {
    /* One per line, like the other columns. Inline-block ran "Shop Our farm
       Visit" together into what looked like a single sentence. */
    display: block;
    opacity: .82;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--ground) 45%, transparent);
    min-height: 24px;
    padding: 3px 0;
}
.ftr__g a:hover, .ftr__g a:focus-visible { opacity: 1; text-decoration-color: currentColor; }

/* The quiet line: copyright on the left, the two statements every site owes
   its visitors on the right. Small, but not hidden. */
.ftr__fine {
    display: flex;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid color-mix(in srgb, var(--ground) 18%, var(--ink));
    font: 400 12px/1.6 var(--mono);
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .72;
}
.ftr__fine-links { display: flex; gap: 20px; }
.ftr__fine a { text-decoration: underline; text-underline-offset: 3px; min-height: 24px; display: inline-flex; align-items: center; }
.ftr__fine a:hover, .ftr__fine a:focus-visible { opacity: 1; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 980px) {
    .hero, .pdp, .co, .story, .visit, .intro, .band-dk .wrap { grid-template-columns: 1fr; }
    .rcpt { position: static; }
    .hero__t { border-right: 0; border-bottom: 1.5px solid var(--ink); padding-right: 0; }
    .story__t { border-right: 0; border-bottom: 1.5px solid var(--ink); }
    .story .ph { min-height: 320px; }
    .grid, .frames { grid-template-columns: repeat(2, 1fr); }
    .proc { grid-template-columns: 1fr 1fr; }
    .proc div:nth-child(3) { border-left: 0; }
    .proc div:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
    .hdr { grid-template-columns: 1fr auto; }
    .hdr nav { grid-column: 1 / -1; grid-row: 2; padding: 12px 0; border-top: 1px solid var(--rule-2); }
    .hdr__mark { border-right: 0; }
    /* Below the breakpoint the logo goes above the columns rather than
       squeezing them into nothing. */
    .ftr__top { grid-template-columns: 1fr; gap: 28px; }
    /* Stacked, there is no logo to balance against, so the columns go back
       to the left where everything else on a narrow screen starts. */
    .ftr__g { justify-content: flex-start; }
    .ftr__mark img { height: clamp(84px, 18vw, 120px); }
}
@media (max-width: 620px) {
    .wrap { padding: 0 16px; }
    .grid, .proc, .row2, .frames, .bands, .checks { grid-template-columns: 1fr; }
    .proc div + div, .band + .band, .check + .check { border-left: 0; border-top: 1.5px solid var(--ink); }
    /* 440px of hatched nothing is a long scroll past on a phone. Enough
       to read as a frame, not enough to push the name off the screen. */
    .pdp__gal .ph--none:first-child { min-height: 260px; }
    .specline { grid-template-columns: 1fr 1fr; }
    .specline div:nth-child(2) { border-right: 0; }
    .specline div:nth-child(3) { padding-left: 0; }
    /* Two rows of two, so the bottom pair needs a rule above it in the
       same mixed-down ink the vertical dividers use. */
    .specline div:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--on-accent-2) 26%, transparent); }
    .sec__head { grid-template-columns: 1fr; }
    .sec__head .ln { display: none; }
    /* The cart on a phone. Four columns and a stepper will not fit across
       358 points, so the weights move under the item name and the Weight
       column goes. Both figures are already in the markup; this chooses
       which one is shown, so neither is read out twice. */
    .ledger--cart .ledger__wt,
    .ledger--cart thead th:nth-child(2) { display: none; }
    .ledger--cart .ledger__sub { display: block; }
    .ledger--cart th[scope="row"] { font-size: 18px; }
    .ledger--cart th, .ledger--cart td { padding: 10px; }
    /* A little narrower, still well above the 24-point minimum target. */
    .ledger--cart .stepper__btn { width: 40px; }
    .ledger--cart .stepper__n { width: 48px; }

}

/* ---- Shop tabs ---------------------------------------------------------
   Real links, so the page works without JavaScript and each kind of bird
   has its own address. Drawn as the design draws its other small nav: a
   ruled row of condensed caps, the current one filled. */
.shoptabs { display: flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--ink); margin-bottom: 26px; }
.shoptabs a {
    flex: 1 0 auto;
    padding: 12px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 700 18px/1 var(--display);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    background: var(--surface);
}
.shoptabs a + a { border-left: 1.5px solid var(--ink); }
.shoptabs a[aria-current] { background: var(--ink); color: var(--ground); }
.shoptabs a:hover:not([aria-current]) { background: var(--tint); }

/* A tag with no photograph has nothing to push the name down, so it needs
   its own breathing room under the punch hole. */
.htag__name:first-of-type { margin-top: 4px; }

/* A kind of bird with nothing on the shelf. Drawn as a notice rather than an
   empty grid, because an empty grid reads as a broken page. */
.soldout { border: 1.5px dashed var(--rule-2); background: var(--surface); padding: 22px 24px; margin-bottom: 26px; }
.soldout h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.soldout p { margin: 0; font-size: 17px; max-width: 58ch; }
.soldout a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- The cart -------------------------------------------------------- */

/* The count beside Cart in the header. */


/* The hold notice on the cart page. Dashed, like the estimate box in the
   approved design, because it is the same kind of statement: this is true
   for now and will change. */
.hold {
    display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline;
    border: 1.5px dashed var(--accent); background: var(--tint);
    padding: 14px 18px; margin-bottom: 22px;
}
.hold strong { font: 800 20px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.hold span { font: 400 14px/1.5 var(--mono); color: var(--ink-2); }
.hold[data-urgent] { border-style: solid; }
.hold[data-urgent] span { color: var(--accent); }

/* The ledger foot doubles as the cart total, so the figure needs weight. */
.ledger__foot span:last-child { font: 600 18px/1 var(--mono); color: var(--ink); }

.wt-form__h [data-cart-timer] { white-space: nowrap; }


/* ---- The cart, in the header ------------------------------------------
   An icon rather than a filled button: the design's rust button is for a
   call to action, and a cart is furniture — always there, only loud when
   it has something in it. */
.carticon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
    text-decoration: none;
}
.carticon svg { width: 24px; height: 24px; display: block; }
.carticon:hover { color: var(--accent); }
.carticon[aria-current] { color: var(--accent); }

/* The count. Sits on the handle of the cart, filled in the accent so it
   reads at a glance without the icon itself shouting. */
.carticon__n {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--on-accent);
    font: 600 11px/1 var(--mono);
    border: 1.5px solid var(--ground);
}

/* ---- The "added to your cart" confirmation -----------------------------
   Pinned to the corner, not pushed into the page: a list of packs that
   jumps down by forty points the moment you press a button on it is a
   list that gets the wrong pack added next.

   Rendered by the server on the page after the add, so it works with
   scripting off; site.js only adds the dismiss button and the fade. It
   never states a total — one pack is held, and the cart is where money is
   added up.
   ----------------------------------------------------------------------- */
.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: min(440px, calc(100vw - 32px));
    padding: 14px 16px;
    border: 1.5px solid var(--ink);
    background: var(--surface);
    /* The design has no shadows anywhere; the offset rule is how it lifts
       a thing off the page. */
    box-shadow: 6px 6px 0 var(--ink);
}
/* The same box when something went wrong. Rust rule and rust heading —
   the accent this design uses for anything that needs doing — never color
   alone: the heading says so in words. */
.toast--bad { border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.toast--bad .toast__t b { color: var(--accent); }
.toast__t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.toast__t b { font: 800 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.toast__t span { font: 400 13px/1.4 var(--mono); color: var(--ink-2); }
.toast .btn { flex: 0 0 auto; }
.toast__x {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; cursor: pointer;
    font: 400 22px/1 var(--mono); color: var(--ink-2);
}
.toast__x:hover { color: var(--accent); }
.toast__x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Faded out by site.js after a while. Pointer events go first so a fading
   box cannot swallow a press meant for the page underneath. */
.toast[data-going] { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
@media (prefers-reduced-motion: reduce) { .toast[data-going] { transition: none; } }

@media (max-width: 620px) {
    /* Full width along the bottom, where a thumb already is. */
    .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; box-shadow: 4px 4px 0 var(--ink); }
    .toast__t b { font-size: 17px; }
}
