/* SheepWorks holding site. Styling follows Fleece's spec (29 Oct 2026). */

:root {
  --lime: #AEDF16; /* SheepWorks lime (final) */
  --ink: #212020;
  --paper: #FAFAF7;
  --white: #FFFFFF;
  --muted: #4D4D4D;
  --rule: rgba(250, 250, 247, .2);
  --font-display: 'Rubik', system-ui, sans-serif; /* 800 only */
  --font-body: 'Nunito Sans', system-ui, sans-serif; /* 400 and 700 */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s6: 48px;
  --s8: 64px;
  --s12: 96px;
  --s16: 128px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --maxw: 1200px;
  --measure: 640px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ALTERNATIVE PALETTE (Sheep Everything Holdings Brand Guide v0.1: Wool, Ink, Moss, Oat, Manrope).
   To switch: delete the :root block above, then remove the comment markers around this block
   (and the Manrope @font-face inside it). Nothing here is loaded while it stays commented out.

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #F7F5F1;   Wool: header, hero and app band backgrounds
  --ink: #202421;    Ink: text and dark surfaces
  --paper: #F7F5F1;  Wool
  --white: #FFFFFF;
  --muted: #4D4D4D;
  --moss: #285D54;   Moss: accent (white text on Moss)
  --oat: #D8C7A6;    Oat: borders and panels
  --rule: rgba(247, 245, 241, .2);
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;
  --radius-card: 24px; --radius-pill: 999px; --maxw: 1200px; --measure: 640px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}
*/

/* Fonts: self-hosted Latin subsets (OFL licences in /fonts) */
@font-face {
  font-family: "Rubik";
  src: url("/fonts/rubik-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("/fonts/nunito-sans-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Base (mobile first) */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
main:focus { outline: none; }

/* On ink backgrounds the focus ring is lime */
.site-footer :focus-visible { outline-color: var(--lime); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--s3);
  box-sizing: content-box;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--s3);
}
.grid > * { grid-column: 1 / -1; }

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--s2);
  top: -100px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s2);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.skip-link:focus { top: var(--s1); outline: 2px solid var(--ink); outline-offset: 2px; }

/* 0 Header (lime, not sticky) */
.site-header { background: var(--lime); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 56px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-hover,
.wordmark-mark { display: inline-block; }
.wordmark-mark {
  color: currentColor;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.01em;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s3);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.pill-header:hover { background: var(--ink); color: var(--lime); }

/* 1 Hero (lime) */
.hero {
  background: var(--lime);
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--s6) 0 72px;
}
.hero > .wrap { flex: 1; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 11vw, 144px);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--ink);
}
.lede {
  margin-top: var(--s4);
  max-width: var(--measure);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.4;
}
.actions {
  margin-top: var(--s6);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover { background: transparent; color: var(--ink); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--ink); color: var(--lime); }

/* 2 Who we are (paper) */
.who { background: var(--paper); padding: 72px 0; }
.who .grid { row-gap: var(--s3); }
.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s1);
}
.who-label { margin-bottom: 0; }
.who-lead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
}
.who-mission p { font-size: clamp(20px, 1.7vw, 22px); line-height: 1.4; color: var(--ink); }

/* 3 Values (white) */
.values { background: var(--white); padding: 72px 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: var(--s6);
}
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s2);
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: var(--s4);
  border-radius: var(--radius-card);
  background: var(--ink);
  color: var(--paper);
}
.card-index {
  order: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  color: var(--lime);
}
.card-text {
  order: 2;
  margin-top: var(--s3);
  font-size: 18px;
  color: var(--paper);
}
.card-name {
  order: 3;
  margin-top: var(--s2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--paper);
}

/* 4 SheepID (full-width lime band) */
.apps { background: var(--lime); padding: 72px 0; scroll-margin-top: 0; }
.apps .grid { row-gap: var(--s3); }
.app-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
}
.app-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
}
.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.app-oneliner { margin-top: var(--s2); font-size: 18px; font-weight: 700; }
.app-detail p { font-size: 18px; max-width: var(--measure); }
/* Ink at 75% on lime: about 5.56:1 on #AEDF16 (AA) */
.band-muted { margin-top: var(--s3); color: rgba(33, 32, 32, .75); }

/* 5 Footer (ink) */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 72px;
}
.footer-prompt {
  font-size: 18px;
  color: rgba(250, 250, 247, .8);
}
.footer-email {
  display: inline-block;
  margin-top: var(--s1);
  padding-block: var(--s1);
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--paper);
  text-decoration: none;
  overflow-wrap: anywhere;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 4px;
  text-underline-offset: .12em;
}
.footer-email:hover,
.footer-email:focus-visible { text-decoration-line: underline; }
.legal {
  margin-top: var(--s6);
  border-top: 1px solid var(--rule);
  padding: var(--s3) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  font-size: 14px;
  color: rgba(250, 250, 247, .7);
}

/* >= 640px */
@media (min-width: 640px) {
  .wrap { padding-inline: var(--s4); }
  .header-inner { min-height: 72px; }
  .wordmark-mark { font-size: 24px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
}

/* >= 1024px (desktop) */
@media (min-width: 1024px) {
  .wrap { padding-inline: var(--s6); }
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hero { padding: var(--s8) 0 var(--s16); }
  .hero-body { grid-column: 1 / -1; } /* spec: 10 of 12; see README note */
  .who { padding: var(--s12) 0; }
  .values { padding: var(--s16) 0; }
  .who-label { grid-column: 1 / -1; }
  .who-lead { grid-column: 1 / span 7; }
  .who-mission { grid-column: 8 / span 5; align-self: end; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
  .card { min-height: 360px; padding: 40px; }
  .apps { padding: var(--s12) 0; }
  .app-intro { grid-column: 1 / span 5; }
  .app-detail { grid-column: 7 / span 6; }
  .site-footer { padding-top: var(--s12); }
  .legal { flex-direction: row; justify-content: space-between; }
}

/* Motion: all of it is off under prefers-reduced-motion: reduce */
@media (prefers-reduced-motion: no-preference) {
  /* Section reveal (only hidden once main.js has set html.js) */
  .js .reveal {
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
  }
  .js .reveal:not(.is-visible) {
    opacity: 0;
    transform: translateY(16px);
  }

  /* Wordmark: one bounce on load, again on hover or focus */
  .wordmark-mark { animation: wordmark-bounce 600ms var(--ease-spring) 150ms 1 both; }
  .wordmark:hover .wordmark-hover,
  .wordmark:focus-visible .wordmark-hover { animation: wordmark-bounce 600ms var(--ease-spring) 1; }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .card { transition: transform 300ms var(--ease-out); }
  .card:hover { transform: rotate(1.5deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@keyframes wordmark-bounce {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
