/* Southern Cross Fertilisers — demo stylesheet
   Palette and type per docs/design-direction.md.
   Every text pair below is measured against WCAG 2.1 AA (4.5:1 normal, 3:1 large).
   Ratios are noted inline; do not introduce a pair without measuring it.
   #A8442A (iron-oxide accent) is 2.41:1 on the green ground — it is NEVER used for
   text on green, only on the bone ground (5.28:1) or as a non-text rule.

   Every green below is anchored on the logo mark. --brand is sampled straight out
   of brand/logos/Green_RGB/SCF_text+icon_logo_GREEN_RGB.svg; the rest of the ramp
   holds its hue (120°) and varies only lightness, so the mark sits inside its own
   palette rather than beside it. Do not introduce a green off that hue. */

:root {
  --brand:        #228C22;  /* THE logo green, sampled from the supplied SVG.
                               3.85 on bone — large text (3:1), icons, rules and
                               focus only. NEVER body copy: it misses 4.5:1. */
  --green:        #0C310C;  /* deep phosphate green */
  --green-deep:   #082108;  /* footer / recessed */
  --green-light:  #165A16;
  --bone:         #F5F1E8;  /* THE light ground, site-wide. Never #fff on screen
                               (decided 3 Sep 2026); white is print-only below. */
  --bone-muted:   #C9C3B4;  /* 8.18 on green */
  --sage:         #8FA38F;  /* 5.34 on green — smallest safe label colour */
  --ink-muted:    #4A5D4A;  /* 6.30 on bone */
  --rust:         #A8442A;  /* 5.28 on bone. NOT for text on green. */
  --rule-green:   rgba(245, 241, 232, 0.18);
  --rule-bone:    rgba(12, 49, 12, 0.16);

  --measure: 720px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

a { color: inherit; }

/* Focus visibility is a WCAG 2.1 AA requirement (2.4.7) and the default
   outline disappears against the green ground — so it is set explicitly. */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--bone); color: var(--green);
  padding: 12px 20px; z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- holding */

.holding {
  background: var(--green);
  color: var(--bone);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.holding__main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  padding: 48px 0 40px;
}

/* The reading column stays at 720px per content/holding-page.md; only the contact
   row is allowed the wider container, so all four blocks fit on one line. */
.holding__main > .wrap { max-width: 880px; }
.holding h1,
.holding .standfirst,
.holding__body { max-width: 720px; }

.lockup { width: 272px; max-width: 74%; height: auto; display: block; margin-bottom: 34px; }

.holding h1 {
  font-size: clamp(2rem, 5.8vw, 3.1rem);
  margin-bottom: 14px;
}

.standfirst {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.7vw, 1.4rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--bone);
  margin: 0 0 26px;
  max-width: 30ch;
}

.rule { width: 64px; height: 3px; background: var(--rust); border: 0; margin: 0 0 26px; }

.holding__body p { color: var(--bone-muted); margin: 0 0 16px; max-width: 62ch; }
.holding__body p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 8px;
}

.contact-grid {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-green);
  display: grid;
  gap: 26px 30px;
  /* The last column carries the postal address, so it gets a little more room. */
  grid-template-columns: 1fr 1fr 1fr 1.25fr;
}

.contact-grid a { color: var(--bone); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.contact-grid a:hover { color: var(--sage); }
.contact-grid address { font-style: normal; color: var(--bone-muted); }

.holding__footer {
  flex-shrink: 0;
  background: var(--green-deep);
  color: var(--bone-muted);
  font-size: 0.82rem;
  padding: 20px 0;
}
.holding__footer p { margin: 0 0 4px; }
.holding__footer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- contact */

.page { background: var(--bone); color: var(--green); }

.masthead { background: var(--green); padding: 22px 0; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.masthead__lockup { width: 190px; height: auto; display: block; }
.masthead a { color: var(--bone-muted); font-size: 0.85rem; text-decoration: none; }
.masthead a:hover { color: var(--bone); text-decoration: underline; }

.page__head { padding: 72px 0 40px; border-bottom: 1px solid var(--rule-bone); }
.page__head h1 { font-size: clamp(2rem, 5.4vw, 2.9rem); margin-bottom: 18px; }
.page__head p { color: var(--ink-muted); max-width: 58ch; margin: 0; }

.page__body { padding: 48px 0 72px; }

.channels { display: grid; gap: 36px 44px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.channel h2 { font-size: 1.02rem; margin-bottom: 6px; }
.channel p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }
.channel a { color: var(--green-light); font-weight: 500; text-underline-offset: 3px; }
.channel a:hover { color: var(--rust); }

.page .label { color: var(--ink-muted); }

.block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--rule-bone); }
.block h2 { font-size: 1.35rem; margin-bottom: 16px; }
.block p { color: var(--ink-muted); max-width: 62ch; margin: 0 0 18px; }
.block address { font-style: normal; margin: 0; }

.page__footer { background: var(--green-deep); color: var(--bone-muted); font-size: 0.82rem; padding: 30px 0; }
.page__footer p { margin: 0 0 4px; }

/* Pending items are marked in the demo so the client can see exactly what is
   unresolved. Colour is not the only signal — the text says "to confirm" —
   which keeps it compliant with WCAG 1.4.1 (use of colour). */
.pending {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  vertical-align: middle;
}
.holding .pending { background: rgba(245, 241, 232, 0.14); color: var(--bone); }
.page .pending { background: rgba(168, 68, 42, 0.12); color: var(--rust); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 460px) {
  .contact-grid { grid-template-columns: 1fr; gap: 22px; }
  .wrap { padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .holding, .page { background: #fff; color: #000; }
  .holding__footer, .page__footer, .masthead { background: #fff; color: #000; }
}
