/* Fox Creek Foundry: styles.css
 *
 * Achromatic since 2026-08-27. The idea: the foundry is the frame, the products
 * are the pictures in it. The foundry carries no chromatic accent of its own,
 * so each product's accent is the only strong colour a visitor sees in that
 * product's context.
 *
 * Why: the foundry's terracotta #C56847 and Heron's ochre #A3641F are 16 degrees
 * apart in hue, and the two inks sit at the same lightness in opposite
 * temperatures. Close enough to read as a mistake rather than a choice. Heron's
 * palette is fixed (it ships inside the app, from shallows.css), so the foundry
 * is the side that moves. Retiring the accent, rather than shifting it, is the
 * only fix that still works when products two and three pick their own colours.
 *
 * The one deliberate through-line is the paper: identical to the product pages,
 * so the shared ground reads as a house constant instead of a near-miss.
 *
 * Colour survives here in exactly three places, all of them semantic and none
 * decorative: a success green, an error red, and the dark contact band.
 */

/* ---------- Fonts (self-hosted, variable, latin subset) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter-tight.woff2') format('woff2');
}

:root {
  /* The house constant. Identical to the product pages' --bg-app, so the
     shared ground is a decision rather than a coincidence. */
  --paper:       #F4F3EF;
  --paper-alt:   #ECE8E0;

  /* Warm neutrals. Hue ~37, saturation under 8%, so the page stays warm
     without carrying a hue that could collide with a product's accent. */
  --ink:         #3B3833;   /* 10.51:1 on paper */
  --ink-soft:    #67615A;   /*  5.51:1 on paper, 5.00:1 on paper-alt */

  --line:        rgba(59, 56, 51, 0.14);
  --line-strong: rgba(59, 56, 51, 0.24);
  --tint:        rgba(59, 56, 51, 0.07);

  /* Semantic only. Never used for emphasis, decoration, or brand. */
  --ok:          #457055;   /* 5.11:1 */
  --danger:      #A2402C;   /* 5.72:1 */

  /* Compatibility aliases: the accent role is retired, so anything still
     asking for it gets ink. Kept so a missed reference degrades quietly. */
  --cream:       var(--paper);
  --cream-alt:   var(--paper-alt);
  --sage:        var(--ink-soft);
  --terracotta:  var(--ink);

  --content:    1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(59, 56, 51, 0.16); color: var(--ink); }

img { max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--cream);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 100px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn--sm { font-size: 14px; padding: 10px 22px; }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  font-family: 'Inter Tight', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 13px;
  color: var(--sage);
  font-weight: 600;
  margin: 0 0 22px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 243, 239, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.btn { opacity: 1; color: var(--cream); }

/* ---------- Wordmark ---------- */
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.wordmark__top {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.wordmark__bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.wordmark__rule {
  width: 18px;
  height: 1px;
  background: var(--sage);
  opacity: 0.5;
}
.wordmark__sub {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 40px 120px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__icon { width: 300px; height: 300px; margin-bottom: 36px; }
.hero__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero__lede {
  font-size: 19px;
  line-height: 1.7;
  opacity: 0.82;
  max-width: 620px;
  margin: 0 0 40px;
  text-wrap: pretty;
}

/* ---------- Divider ---------- */
.divider {
  max-width: var(--content);
  margin: 0 auto;
  height: 1px;
  background: var(--sage);
  opacity: 0.25;
}

/* ---------- Philosophy ---------- */
.philosophy {
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 40px;
  text-align: center;
}
.philosophy__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 34px;
  line-height: 1.3;
  margin: 0 0 32px;
}
.prose {
  font-size: 18px;
  line-height: 1.8;
  opacity: 0.82;
  margin: 0 0 24px;
  text-wrap: pretty;
}
.prose:last-child { margin-bottom: 0; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 64px; }
.section-head__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 34px;
  margin: 0 0 18px;
}
.section-head__lede {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- What We Build / Product showcase ---------- */
.work { background: var(--cream-alt); padding: 120px 40px; }
.work__inner { max-width: var(--content); margin: 0 auto; }

.product {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}

/* Screenshot floats directly on the card: its own window chrome and
   shadow do the framing, so no separate panel behind it. */
.product__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 52px 48px 8px;
}
.product__shot {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.product__body {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.product__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.product__badge {
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ok);
  background: var(--tint);
  padding: 5px 12px;
  border-radius: 100px;
}
.product__platform {
  font-family: 'Inter Tight', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--sage);
}
.product__name {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 10px;
}
.heron-mark {
  height: 38px;
  width: auto;
}
.product__tagline {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  text-wrap: balance;
}
.product__desc {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.82;
  margin: 0 0 28px;
  text-wrap: pretty;
}
.product__features {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product__features li {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--cream-alt);
  border: 1px solid var(--line-strong);
  padding: 8px 15px;
  border-radius: 100px;
}
.product__actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.product__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.15s ease;
}
.product__link:hover { opacity: 1; }

/* ---------- Principles ---------- */
.principles { max-width: var(--content); margin: 0 auto; padding: 120px 40px; }
.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.principle {
  background: var(--cream);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.principle__n {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-soft);
}
.principle__text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 18px;
}

/* ---------- Contact ---------- */
.contact { background: var(--ink); padding: 120px 40px; text-align: center; }
.contact__inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact__icon { width: 80px; height: 80px; margin-bottom: 32px; }
.contact__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--cream);
  margin: 0 0 36px;
}

/* ---------- Contact page + form ---------- */
.contact-page { padding: 80px 40px 120px; }
.contact-page__inner { max-width: 680px; margin: 0 auto; }
.contact-page .section-head { margin-bottom: 48px; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 80px 40px 120px; }
.legal-page__inner { max-width: 760px; margin: 0 auto; }
.legal-page__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1.16;
  margin: 0 0 10px;
}
.legal-page__updated { color: var(--sage); font-size: 14px; margin: 0 0 40px; }
.legal-page__inner > p { font-size: 16px; line-height: 1.75; margin: 0 0 22px; }
.legal-page__inner h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 23px;
  line-height: 1.3;
  margin: 44px 0 14px;
}
.legal-page__inner a,
.footer__tagline a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.cform { display: flex; flex-direction: column; gap: 22px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cform__field { display: flex; flex-direction: column; gap: 8px; }
.cform__label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.cform__optional { color: var(--sage); font-weight: 500; }
.cform__input {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.cform__input::placeholder { color: var(--sage); opacity: 0.7; }
.cform__input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(59, 56, 51, 0.14);
}
.cform__textarea { resize: vertical; min-height: 150px; line-height: 1.6; }

/* Honeypot: keep in the DOM for bots, out of sight for humans. */
.cform__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.cform__submit { border: none; cursor: pointer; font-family: 'Inter', system-ui, sans-serif; }
.cform__submit:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }
.cform__status { font-size: 15px; line-height: 1.5; margin: 0; }
.cform__status--ok { color: var(--ok); }
.cform__status--error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--content);
  margin: 0 auto;
  padding: 56px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__icon { height: 38px; width: 38px; display: block; }
.footer__wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.footer__top {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.footer__sub {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.footer__tagline { font-size: 14px; color: var(--sage); font-style: italic; margin: 0; }
.footer__copyright { font-size: 13px; color: var(--ink); opacity: 0.55; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; }
  .product__body { padding: 44px 40px 20px; }
  .product__visual { padding: 8px 40px 44px; }
  .principles__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 44px; }
}

@media (max-width: 640px) {
  .nav__inner { padding: 18px 22px; }
  .nav__links { gap: 18px; }
  .nav__links a:not(.btn) { display: none; }        /* keep the CTA, drop crowded links on small screens */
  .hero { padding: 40px 22px 88px; }
  .hero__icon { width: 220px; height: 220px; }
  .hero__title { font-size: 36px; }
  .hero__lede { font-size: 17px; }
  .philosophy,
  .work,
  .principles,
  .contact { padding-left: 22px; padding-right: 22px; }
  .philosophy { padding-top: 88px; padding-bottom: 88px; }
  .work,
  .principles,
  .contact { padding-top: 88px; padding-bottom: 88px; }
  .product__body { padding: 36px 26px; }
  .product__visual { padding: 28px 26px; }
  .product__name { font-size: 34px; }
  .heron-mark { height: 34px; }
  .product__tagline { font-size: 18px; }
  .section-head { margin-bottom: 44px; }
  .contact-page { padding: 56px 22px 88px; }
  .legal-page { padding: 56px 22px 88px; }
  .legal-page__title { font-size: 36px; }
  .cform__row { grid-template-columns: 1fr; }
  .footer { padding: 40px 22px; }
}
