/* Harvest & Iron — site styles */

:root {
  /* Brand colours (identity system) */
  --hi-plum: #4B1D5B;
  --hi-rust: #C4602F;
  --hi-orange: #F47C1F;
  --hi-amber: #E0A028;
  --hi-olive: #69734A;
  --hi-light-olive: #879349;
  --hi-linen: #F7F4ED;

  /* The approved artwork's "hi" letters are knock-outs: they show the surface behind the badge. */
  --hi-letter: var(--hi-linen);

  --font-wordmark: "Anybody", "Archivo Black", system-ui, sans-serif;
  --font-headline: "Archivo Black", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--hi-linen);
  color: var(--hi-plum);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */

/* Hero fills the screen above the footer, so the footer sits at the bottom of the first view. */
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(32px, 6vw, 96px) 16px;
}

.hero__inner {
  width: 100%;
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__mark {
  margin: 0;
  width: 100%;
  /* Never taller than ~70% of the viewport, keep aspect ratio. */
  max-width: min(1040px, calc(54svh * 1650 / 650)); /* leaves room for the product row */
  font-size: inherit;
  line-height: 0;
}

.hi-mark {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1650 / 650;
  overflow: visible;
}

.hi-mark[data-layout="stacked"] { aspect-ratio: 900 / 830; }

@media (max-width: 640px) {
  .hero__mark { max-width: min(440px, calc(62svh * 900 / 830)); }
}

/* Layout variants: horizontal is the default (also the no-JS fallback). */
.hi-mark:not([data-layout="stacked"]) .hi-lockup--s,
.hi-mark[data-layout="stacked"] .hi-lockup--h { display: none; }

.hi-wordmark__line {
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-stretch: 90%;
  font-variation-settings: "wdth" 90, "wght" 900;
  font-size: 180px; /* ink calibrated to the approved lockup within ±2 units */
  letter-spacing: 0;
}

.hi-lockup--s .hi-wordmark__line { font-size: 100px; }

.hi-tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 42.5px;
}

.hi-lockup--s .hi-tagline { font-size: 44px; }

/* Hide the SVG until the animation has set its starting state (no flash of finished/unfinished art).
   The inline fallback timer removes .js if the animation never starts. */
.js .hi-mark { visibility: hidden; }
.js .hi-mark.is-ready { visibility: visible; }

/* ---------- Products (appear under the lockup once it resolves) ---------- */

.products {
  width: 100%;
  max-width: 1040px;
  margin-top: clamp(32px, 5svh, 64px);
}

.products__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
}

/* Three equal columns; with fewer products the row stays centred. */
.product {
  flex: 0 1 calc((100% - 2 * clamp(20px, 3vw, 40px)) / 3);
  aspect-ratio: 5 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optical balance: the logos have very different shapes (A Yellow Wood is long and short,
   Trip Wrangler tall and airy, Earmarked a solid black block), so each gets its own width
   within the column so they read at about the same visual size. */
.product img {
  display: block;
  width: var(--logo-w, 100%);
  max-height: 100%;
  height: auto;
  object-fit: contain;
}

.product--earmarked     { --logo-w: 80%; }
.product--trip-wrangler { --logo-w: 72%; }
.product--a-yellow-wood { --logo-w: 100%; }

@media (max-width: 640px) {
  .products__list { flex-direction: column; align-items: center; }
  .product { flex: none; width: min(300px, 80%); }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Hidden with the hero until the animation has set its starting state. */
.js .products { visibility: hidden; }
.js .products.is-ready { visibility: visible; }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 16px clamp(16px, 4vw, 40px) 20px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgb(75 29 91 / 0.8); /* plum, softened */
}

.site-footer p { margin: 0; }

.site-footer a { color: var(--hi-plum); text-underline-offset: 2px; } /* plum from the hi badge */
.site-footer a:hover { text-decoration-thickness: 2px; }

.site-footer__sep { margin: 0 0.5em; opacity: 0.5; }

/* Founder links: lower right, both logos the same small height. */
.site-footer__founder {
  display: flex;
  align-items: center;
  gap: 0 10px;
  margin-left: auto;
}

.site-footer__founder .site-footer__sep { margin: 0; }

.site-footer__logo { display: block; line-height: 0; }

.site-footer__logo img {
  display: block;
  height: 26px;
  width: auto;
}

a.site-footer__logo { border-radius: 4px; }
a.site-footer__logo:focus-visible { outline: 2px solid var(--hi-plum); outline-offset: 3px; }

@media (max-width: 640px) {
  .site-footer { flex-direction: column; justify-content: center; text-align: center; }
  .site-footer__founder { margin-left: 0; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
  .site-footer__label { flex-basis: 100%; }
}
