/* Far Coast Labs: starter site styles.
   Design system: design-system/far-coast-labs/MASTER.md (ui-ux-pro-max: Hero + Features + CTA,
   Minimalism & Swiss, Outfit + Work Sans). Colours come from the logo instead of the
   generator's palette. Layout: calm single column of sections under a sky-washed hero;
   the round emblem is the only loud element. The logo teal is kept for the wordmark and
   accents, because it is too light for small text on white. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Work Sans";
  src: url("fonts/worksans-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* colour, light */
  --bg: #f5f8f9;          /* paper with a little sea in it */
  --surface: #ffffff;
  --ink: #24333f;         /* wordmark navy */
  --muted: #505d68;       /* tagline slate (6.3:1 on --bg) */
  --line: #dbe5e9;
  --brand: #4e9e94;       /* "Labs" teal: wordmark and accents, not small text */
  --brand-strong: #3a877c; /* brand teal for large text (3.7:1 on the sky wash) */
  --accent: #2a7068;      /* links and buttons (5.4:1 on --bg) */
  --accent-ink: #ffffff;
  --sky-wash: #e2f1f6;    /* top of the page, from the emblem sky */
  --halo: rgba(162, 211, 229, .55);
  --header-bg: rgba(245, 248, 249, .82);

  /* type */
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Work Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step-0: 1.0625rem;                                 /* 17px body */
  --step-1: 1.25rem;                                   /* feature titles */
  --step-2: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);    /* section titles */
  --step-3: clamp(2.6rem, 1.6rem + 4.6vw, 4.5rem);     /* hero */
  --label-track: .22em;                                /* the logo tagline's wide tracking */

  /* layout and motion */
  --max: 1120px;
  --radius: 20px;
  --header-h: 72px;
  --ease: cubic-bezier(.25, .46, .45, .94);            /* power1.out */
  --hover: 200ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1820;
    --surface: #15222c;
    --ink: #e6eef1;
    --muted: #9fb0ba;
    --line: #22323d;
    --brand: #6cc0b3;
    --brand-strong: #6cc0b3;
    --accent: #7fd0c2;
    --accent-ink: #0e1820;
    --sky-wash: #13252f;
    --halo: rgba(71, 161, 178, .28);
    --header-bg: rgba(14, 24, 32, .82);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font: 400 var(--step-0)/1.65 var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-wash) 0, var(--bg) 42rem) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .2em; transition: color var(--hover) ease; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 30;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--surface); color: var(--ink); border-radius: 10px;
}
.skip:focus { left: 12px; }

/* ---------- wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.wordmark { font: 600 1.3rem/1 var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.wordmark span { color: var(--brand); font-weight: 500; }

/* ---------- header: sticky so the Contact call to action stays in reach ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.site-header .wrap { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .98rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  color: var(--ink); border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  transition: border-color var(--hover) ease, color var(--hover) ease;
}
.site-nav .nav-cta:hover { border-color: var(--muted); }
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .site-nav { gap: 0; }
  .site-nav a:not(.nav-cta) { display: none; }
  .wordmark { font-size: 1.15rem; }
  .brand img { width: 34px; height: 34px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(24px, 6vw, 72px) clamp(56px, 9vw, 112px); overflow-x: clip; /* keeps the emblem's halo inside the page */ }
.hero .wrap { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1.15fr .85fr; }
.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-art::before {
  content: ""; position: absolute; inset: -14%;
  background: radial-gradient(closest-side, var(--halo), transparent);
  z-index: -1;
}
.hero-art img { width: 100%; filter: drop-shadow(0 12px 22px rgba(20, 45, 60, .16)); }
.eyebrow {
  margin: 0 0 18px; color: var(--muted); font: 500 .8rem/1.4 var(--font-display);
  letter-spacing: var(--label-track); text-transform: uppercase;
}
h1 {
  margin: 0; font-size: var(--step-3); line-height: 1.02; font-weight: 600; letter-spacing: -.025em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--brand-strong); }
.lede { margin: 22px 0 0; max-width: 34rem; color: var(--muted); font-size: 1.15rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 1rem/1 var(--font-body); text-decoration: none; border: 1px solid transparent;
  transition: background-color var(--hover) ease, box-shadow var(--hover) ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

/* one load-in moment: the emblem settles, then the words; nothing below the hero waits on it */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.hero-art { animation: rise 400ms var(--ease) both; }
.hero-copy > * { animation: rise 400ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-copy > :nth-child(4) { animation-delay: 180ms; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(64vw, 280px); justify-self: start; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 44px); }
.label {
  margin: 0 0 12px; color: var(--accent); font: 600 .78rem/1.4 var(--font-display);
  letter-spacing: var(--label-track); text-transform: uppercase;
}
h2 { margin: 0; font-size: var(--step-2); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.section-head p { margin: 16px 0 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); list-style: none; padding: 0; margin: 0; }
.features li { padding-top: 20px; border-top: 2px solid var(--brand); min-width: 0; }
h3 { margin: 0; font-size: var(--step-1); font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.features p { margin: 10px 0 0; color: var(--muted); }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

.status {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: clamp(22px, 4vw, 32px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.status p { margin: 0; max-width: 38rem; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 500; white-space: nowrap;
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.contact-mail {
  display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font: 500 clamp(1.5rem, 1rem + 2.6vw, 2.4rem)/1.2 var(--font-display);
  letter-spacing: -.015em; overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.site-footer { padding-block: 36px max(36px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand img { width: 30px; height: 30px; }
.site-footer .wordmark { font-size: 1.05rem; }
.site-footer p { margin: 0; }
.tagline { font-family: var(--font-display); letter-spacing: var(--label-track); text-transform: uppercase; font-size: .75rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art, .hero-copy > * { animation: none; }
  a, .btn, .site-nav .nav-cta { transition: none; }
}
