/* Founders Stack LLC — company website styles
   Warm paper, deep ink, slim rules, restrained rust accent. */

@font-face {
  font-family: "Lora";
  src: url("/assets/Lora-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/assets/Mulish-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/assets/Mulish-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/assets/Mulish-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f1e7;
  --paper-deep: #ece4d4;
  --ink: #1a1916;
  --ink-soft: #454138;
  --ink-faint: #6d675b;
  --rust: #b54a24;
  --rust-deep: #8f3a1b;
  --amber: #e0913f;
  --forest: #17251c;
  --line: rgba(26, 25, 22, 0.16);
  --line-strong: rgba(26, 25, 22, 0.34);
  --line-dark: rgba(246, 241, 231, 0.22);
  --measure: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow: 0 26px 60px -34px rgba(20, 18, 14, 0.55);
  /* Sticky-header anchor offset: ~90px desktop, ~130px when the header wraps. */
  --anchor-offset: 90px;
}

@media (max-width: 620px) {
  :root { --anchor-offset: 130px; }
}

@media (max-width: 360px) {
  :root { --anchor-offset: 180px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.68;
  letter-spacing: 0.001em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 1.4rem + 6.2vw, 5.4rem); }
h2 { font-size: clamp(1.85rem, 1.1rem + 2.6vw, 3rem); }
h3 { font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.4rem); line-height: 1.2; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: var(--rust-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); }

ul, ol, dl { margin: 0; padding: 0; list-style: none; }

img { display: block; max-width: 100%; height: auto; }

strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip-link {
  position: absolute;
  left: var(--pad);
  top: 0;
  z-index: 50;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--paper);
  padding: 0.85rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
}
.skip-link:focus { transform: translateY(0); color: var(--paper); }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin: 0 0 1.4rem;
}
.eyebrow__sep { color: var(--ink-faint); padding-inline: 0.35em; }
.eyebrow--onDark { color: var(--amber); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 231, 0.9);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}
.brand:hover { color: var(--rust-deep); }
.brand__text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
}
.monogram { flex: none; fill: currentColor; }
.monogram__accent { fill: var(--rust); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.site-nav a:hover { color: var(--rust-deep); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

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

.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) clamp(2.5rem, 6vw, 5rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: end;
}

.hero__lead { min-width: 0; }
.hero h1 { max-width: 15ch; }

.hero__lede {
  margin-top: clamp(1.4rem, 3vw, 2rem);
  max-width: 44ch;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
}

.hero__meta { min-width: 0; }
.hero__meta dl { border-top: 1px solid var(--line-strong); }
.hero__meta dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.5rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.hero__meta dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.28rem;
}
.hero__meta dd { margin: 0; font-family: var(--serif); font-size: 1.08rem; line-height: 1.35; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.button--primary { background: var(--ink); color: var(--paper); }
.button--primary:hover { background: var(--rust-deep); color: var(--paper); transform: translateY(-1px); }
.button--quiet { border-color: var(--line-strong); color: var(--ink); }
.button--quiet:hover { border-color: var(--ink); color: var(--ink); background: rgba(26, 25, 22, 0.05); }
.button--accent { background: var(--amber); color: var(--forest); }
.button--accent:hover { background: #f0a755; color: var(--forest); transform: translateY(-1px); }
.button--onDark { border-color: var(--line-dark); color: var(--paper); }
.button--onDark:hover { border-color: var(--paper); color: var(--paper); background: rgba(246, 241, 231, 0.08); }

/* ---------- Purpose ---------- */

.purpose {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}
.purpose__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.purpose h2 { max-width: 18ch; }
.purpose__body p {
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 58ch;
}
.purpose__body p + p { margin-top: 1.1em; }

/* ---------- Product ---------- */

.product {
  background: var(--forest);
  color: var(--paper);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
/* Text links inside the forest section use amber. Buttons keep their own
   foreground so the CTA stays readable: `.button--accent` is amber with
   forest text, `.button--onDark` is transparent with paper text. */
.product a:not(.button) { color: var(--amber); }
.product a:not(.button):hover { color: #f0a755; }

/* Visible focus ring on the forest surface. */
.product :focus-visible { outline-color: var(--amber); }

.product__head {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.4rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.6rem);
}
.product__icon {
  width: clamp(56px, 7vw, 76px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.8);
}
.product h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem); }
.product__sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 0.7rem;
}
.product__lede {
  max-width: 62ch;
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.28rem);
  line-height: 1.62;
  color: rgba(246, 241, 231, 0.86);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
}
.features li {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(0rem, 2vw, 2rem) clamp(1.4rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line-dark);
}
.features li:nth-child(even) { padding-left: clamp(0rem, 3vw, 2.5rem); border-left: 1px solid var(--line-dark); }
.features h3 { color: var(--paper); margin-bottom: 0.55rem; }
.features p { color: rgba(246, 241, 231, 0.76); font-size: 0.99rem; }

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.shot {
  margin: 0;
  min-width: 0;
  background: linear-gradient(180deg, #fbf8f1, var(--paper-deep));
  border: 1px solid rgba(246, 241, 231, 0.18);
  border-radius: clamp(20px, 2.4vw, 30px);
  padding: clamp(0.6rem, 1.4vw, 0.9rem);
  box-shadow: var(--shadow);
  max-width: 340px;
  justify-self: center;
}
.shot--offset { margin-top: clamp(1.5rem, 5vw, 4rem); }
.shot img { width: 100%; border-radius: clamp(14px, 1.8vw, 22px); }
.shot figcaption {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.7rem 0.3rem 0.35rem;
  text-align: center;
}

.product__foot {
  display: grid;
  gap: 1.4rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line-dark);
}
.product__status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.95rem;
  color: rgba(246, 241, 231, 0.82);
}
.dot { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--amber); }
.product .hero__actions { margin-top: 0; }

/* ---------- Approach ---------- */

.approach { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.approach h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 22ch; }

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.principles li { min-width: 0; border-top: 2px solid var(--ink); padding-top: 1.4rem; }
.principles__num {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--rust-deep);
  margin-bottom: 0.9rem;
}
.principles h3 { margin-bottom: 0.7rem; }
.principles p { color: var(--ink-soft); font-size: 1rem; }

/* ---------- About ---------- */

.about {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  border-top: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(1.75rem, 5vw, 4.5rem);
  align-items: start;
}
.about h2 { max-width: 16ch; }
.about__body p {
  font-size: clamp(1.03rem, 0.99rem + 0.3vw, 1.16rem);
  color: var(--ink-soft);
  max-width: 58ch;
}
.about__body p + p { margin-top: 1.1em; }

/* ---------- Contact ---------- */

.contact {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact h2 { margin-bottom: 1.3rem; }
.contact p { max-width: 52ch; color: var(--ink-soft); }
.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 0.9rem;
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
}
.contact__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact__mail a { word-break: break-word; }

.contact__links ul { border-top: 1px solid var(--line-strong); }
.contact__links li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}
.contact__links a {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact__links a:hover { text-decoration: underline; }
.contact__links span { font-size: 0.9rem; color: var(--ink-faint); }

/* ---------- Interior pages (support, privacy, error) ---------- */

.page { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6.5rem); }
.page__inner { max-width: 46rem; }
.page h1 { margin-bottom: clamp(1.2rem, 3vw, 1.8rem); }
.page__lede {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.prose { color: var(--ink-soft); }
.prose h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem);
  margin: clamp(2.2rem, 5vw, 3rem) 0 0.9rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6rem 0 0.6rem; font-size: 1.18rem; }
.prose p { max-width: 66ch; }
.prose p + p { margin-top: 1.05em; }
.prose ul,
.prose ol {
  max-width: 66ch;
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}
.prose li { margin-bottom: 0.55em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--rust-deep); }
.prose a { word-break: break-word; }

.contact-card {
  margin: clamp(1.8rem, 4vw, 2.4rem) 0;
  padding: clamp(1.4rem, 3.5vw, 2rem);
  background: var(--forest);
  color: var(--paper);
  border-radius: 20px;
}
.contact-card h2 { margin-top: 0; color: var(--paper); }
.contact-card p { color: rgba(246, 241, 231, 0.84); }
.contact-card .contact__label { color: rgba(246, 241, 231, 0.66); }
.contact-card .contact__mail { margin-top: 1.1rem; }
.contact-card a { color: var(--amber); }
.contact-card a:hover { color: #f0a755; }
.contact-card :focus-visible { outline-color: var(--amber); }

.page__links { margin-top: clamp(2rem, 5vw, 3rem); }
.page__links ul { border-top: 1px solid var(--line-strong); }
.page__links li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}
.page__links a {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.page__links a:hover { text-decoration: underline; }
.page__links span { font-size: 0.9rem; color: var(--ink-faint); }

.error-page { text-align: left; }
.error-page h1 { max-width: 20ch; }

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

.site-footer {
  background: var(--forest);
  color: rgba(246, 241, 231, 0.82);
  padding-block: clamp(2.5rem, 6vw, 3.75rem);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.75rem 3rem;
  align-items: start;
}
.site-footer__brand { display: flex; align-items: flex-start; gap: 0.8rem; }
.monogram--onDark { fill: var(--paper); }
.site-footer__brand p { margin: 0; font-size: 0.95rem; line-height: 1.5; }
.site-footer__brand strong { color: var(--paper); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  justify-content: flex-start;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(246, 241, 231, 0.9);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.site-footer__nav a:hover { color: var(--amber); text-decoration: underline; }
.site-footer__legal {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: rgba(246, 241, 231, 0.62);
}

/* ---------- Progressive reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__grid,
  .purpose__grid,
  .about__grid,
  .contact__grid,
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 { max-width: 20ch; }
  .hero__meta dl > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principles li { padding-top: 1.1rem; }
}

@media (max-width: 620px) {
  .site-header__inner { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.7rem; }
  .site-nav a { padding-inline: 0.55rem; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .features li:nth-child(even) { padding-left: 0; border-left: 0; }
  .shot { max-width: 270px; }
  .shot--offset { margin-top: 0; }
  .contact__mail { font-size: 1.1rem; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .button:hover { transform: none; }
}
