/* ==========================================================================
   EXPAT STORE — BASE
   Reset, base elements, heading rhythm, utilities. All values come from
   theme.json through the aliases in tokens.css. No hex, no size literal.

   The one deliberate awkwardness: media-query conditions cannot use a custom
   property, so the three breakpoint numbers are written literally and repeated
   from theme.json settings.custom.expat.bp. tests/audit.mjs asserts they agree.
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* The 14px sans body against the serif display is the whole typographic idea:
   a genuinely small body makes an unhurried display read as considered rather
   than as shouting. Mockup direction 04, body rule. */
body {
  margin: 0;
  background: var(--expat-field);
  color: var(--expat-ink);
  font-family: var(--expat-sans);
  font-size: var(--expat-t-14);
  line-height: var(--expat-lh-tight);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: var(--expat-wrap);
  margin: 0 auto;
  padding: 0 var(--expat-gutter);
}

h1, h2, h3 {
  margin: 0;
  color: var(--expat-ink);
  font-family: var(--expat-serif);
  font-weight: 500;
}
h1 {
  font-size: var(--expat-t-display);
  line-height: var(--expat-lh-tight);
  font-weight: 400;
  letter-spacing: var(--expat-ls-display);
}
h2 { font-size: var(--expat-t-32); line-height: var(--expat-lh-heading); }
h3 { font-size: var(--expat-t-24); line-height: var(--expat-lh-h3); }

p { margin: 0 0 var(--expat-space-3); }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 600; }
em { font-style: italic; }
img { max-width: 100%; }

/* The sans utility voice: small, widely tracked, uppercase. Used for tags and labels. */
.eyebrow {
  font-family: var(--expat-sans);
  font-size: var(--expat-t-11);
  font-weight: 400;
  line-height: var(--expat-lh-tight);
  letter-spacing: var(--expat-ls-tag);
  text-transform: uppercase;
  color: var(--expat-ink-mute);
  margin: 0 0 var(--expat-space-4);
}

/* A screen-reader-only label. Every form control in this theme carries a visible
   placeholder only, so each one needs one of these beside it. */
.sr {
  position: absolute;
  width: var(--expat-hairline); height: var(--expat-hairline);
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link. Present because keyboard users should not have to traverse the whole
   header, and because a visible focus ring is required anyway. */
.skip-link {
  position: absolute;
  left: var(--expat-offscreen);
  top: 0;
  z-index: var(--expat-z-toast);
  background: var(--expat-navy-deep);
  color: var(--expat-on-dark);
  padding: var(--expat-space-3) var(--expat-space-4);
  border-radius: var(--expat-radius);
}
.skip-link:focus { left: var(--expat-space-3); }

/* The shared section head used above the department grid, the members area and
   the delivery block. */
.sec-head { max-width: 62ch; margin-bottom: var(--expat-space-7); }
.sec-head h2 { margin-bottom: var(--expat-space-4); }
.sec-head__sub {
  font-size: var(--expat-t-14);
  line-height: var(--expat-lh-body);
  color: var(--expat-ink-mute);
  margin: 0;
}

/* Prose measure. Applied to authored body copy so a long block never runs the full
   width of a wide field. */
.prose { max-width: var(--expat-measure); }
.prose p { font-size: var(--expat-t-14); line-height: var(--expat-lh-body); }

/* --------------------------------------------------------------------------
   RESPONSIVE — the mockup's own steps, reproduced at its own breakpoints.
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  :root { --expat-gutter: var(--expat-gutter-tablet); }
}

@media (max-width: 900px) {
  :root {
    --expat-section-y: var(--expat-section-y-tablet);
    --expat-t-display: var(--expat-t-tablet-display);
    --expat-t-32: var(--expat-t-tablet-32);
    --expat-t-24: var(--expat-t-tablet-24);
  }
  .wrap { padding: 0 var(--expat-gutter-tablet); }
}

@media (max-width: 600px) {
  :root {
    --expat-section-y: var(--expat-section-y-mobile);
    --expat-t-display: var(--expat-t-mobile-display);
    --expat-t-32: var(--expat-t-mobile-32);
    --expat-t-24: var(--expat-t-mobile-24);
  }
  .wrap { padding: 0 var(--expat-gutter-mobile); }
}

/* WordPress core classes this theme inherits and must not look like a different
   site: alignment helpers, the screen-reader-text class, and the admin bar offset. */
.alignwide { max-width: var(--expat-wrap); margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.alignleft { float: left; margin: 0 var(--expat-space-4) var(--expat-space-3) 0; }
.alignright { float: right; margin: 0 0 var(--expat-space-3) var(--expat-space-4); }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}


/* Black buttons: one hover shade for the whole site.
   Measured before this rule: the shop pages' black buttons carried no hover state at all,
   so nothing told the pointer the control was clickable. The homepage had one, but in a
   different colour, so the same button behaved two ways on two pages. #4A443B is a lighter
   warm grey against the #23201C ink, and it is used for every filled button that is not the
   ghost, not the gold one and not the footer's dark sign-up tile. */
body .btn:not(.btn--ghost):not(.btn--gold):hover,
body .btn:not(.btn--ghost):not(.btn--gold):focus-visible,
body .authbtn:hover,
body .authbtn:focus-visible,
body .mformrow button:hover,
body .mformrow button:focus-visible{
	background:#4A443B;
	border-color:#4A443B;
	color:#fff;
}

/* The members auth block's own controls: the same shade, because .authbtn is not .btn. */
body .authbtn{ background:var(--ink); border:1px solid var(--ink); color:#fff; }

/* "Forgot your password?" is ink in every state, never the browser blue. */
a#forgot, a#forgot:visited, a#forgot:hover, a#forgot:focus-visible{ color:var(--ink); }
a#forgot:hover, a#forgot:focus-visible{ text-decoration:underline; text-underline-offset:4px; }

/* Plain links that sit inside copy — the delivery promises, the department names —
   are site ink in every state. Anything later that paints a:hover blue loses to the
   body prefix here, which is the whole point of writing it that way. */
body a.mlink, body a.mlink:visited{ color:var(--ink); }
body a.mlink:hover, body a.mlink:focus-visible{ color:var(--ink); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
body a.dept__go, body a.dept__go:visited{ color:var(--ink); }
body a.dept__go:hover, body a.dept__go:focus-visible{ color:var(--ink); text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:4px; }
