/* Impactstayhub — static site styles
   Colours from the Impactstayhub Design System; fonts self-hosted. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #FFFBF5;
  --paper-2: #F7F0E4;
  --paper-3: #EFE6D5;
  --ink-900: #2B1E13;
  --ink-700: #4A3528;
  --ink-500: #6F5745;
  --ink-300: #A08E7C;
  --line: #D9CDBC;
  --clay-50: #FBF2EC;
  --clay-500: #C4613F;
  --clay-600: #A84B2B;
  --clay-700: #843820;
  --green-50: #EFF4EB;
  --green-300: #9DBA8E;
  --green-700: #4F7035;
  --amber-300: #F0C66E;
  --dark-card: #5C4636;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Fraunces", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--clay-600); }
a:hover { color: var(--clay-700); }
:focus-visible { outline: 2px solid var(--clay-500); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--ink-700); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; }
h3 { font-size: 25px; line-height: 1.25; }
p { margin: 0; }
h1, h2, h3, .eyebrow, .role { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-600); }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-700); max-width: 40em; }
.muted { color: var(--ink-500); }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 17px; padding: 15px 26px; border-radius: 8px; transition: background-color 140ms ease, color 140ms ease; }
.btn-primary { background: var(--clay-600); color: #fff; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: var(--clay-700); color: #fff; }
.btn-outline { border: 1.5px solid var(--ink-700); color: var(--ink-700); padding: 13.5px 24.5px; }
.btn-outline:hover { background: var(--paper-3); color: var(--ink-900); }
.btn-sm { font-size: 15px; padding: 10px 18px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255, 251, 245, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-700); }
.brand:hover { color: var(--ink-700); }
.brand-name { font-family: var(--font-logo); font-weight: 500; font-size: 26px; letter-spacing: -0.015em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-900); }
.nav a:hover { color: var(--clay-600); }
.nav .lang { color: var(--ink-500); }
.nav .btn-primary { color: #fff; }
@media (max-width: 900px) {
  .nav .nav-section { display: none; }
  .nav { gap: 16px; }
}
.nav .btn { white-space: nowrap; }
.brand svg { flex-shrink: 0; }
.cta-short { display: none; }
@media (max-width: 560px) {
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 420px) {
  .site-header .wrap { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 20px; }
  .brand svg { width: 38px; height: 22px; }
  .nav { gap: 12px; }
  .nav .btn-sm { font-size: 14px; padding: 9px 12px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 18px; }
  .brand svg { width: 32px; height: 18px; }
}

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-text { display: flex; flex-direction: column; gap: 24px; max-width: 920px; }
.hero-text .lede { font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.loop-figure { margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 4vw, 40px); }
.loop-figure svg { width: 100%; max-width: 420px; height: auto; margin: 0 auto; }

/* Sections */
.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 46em; margin-bottom: 48px; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); }
.section-light { background: var(--paper); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink-700); color: var(--paper); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .eyebrow { color: var(--amber-300); }
.section-dark .lede, .section-dark p { color: var(--paper-3); }
.bordered-top { border-top: 1px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }

.card { border-radius: 14px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 26px; }
.card-dark { background: var(--dark-card); border: 1px solid var(--ink-500); }
.card-light { background: var(--paper); }
.card-light h3 { color: var(--ink-700); }
.card-light p { color: var(--ink-500); }
.card-light .eyebrow { color: var(--clay-600); }
.card-soft { background: var(--paper-2); border: 1px solid var(--line); }
.card-soft p { color: var(--ink-500); }
.card-white { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(43, 30, 19, 0.06); gap: 16px; }
.icon { width: 36px; height: 36px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.chips-clay li { background: var(--clay-50); color: var(--clay-700); }
.chips-green li { background: var(--green-50); color: var(--green-700); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--clay-500); padding-top: 20px; }
.steps h3 { font-size: 24px; }
.steps p { color: var(--ink-500); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 700px) { .about { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.portrait { aspect-ratio: 4 / 5; max-width: 320px; width: 100%; justify-self: start; background: var(--paper-3); border-radius: 22px; display: flex; align-items: center; justify-content: center; color: var(--ink-500); font-size: 15px; font-weight: 500; overflow: hidden; }
.portrait { position: relative; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.role { font-family: var(--font-head); font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--clay-600); }
.about-text ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 56px; }
.contact-text { display: flex; flex-direction: column; gap: 18px; }
.contact-lines { display: flex; flex-direction: column; gap: 4px; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 4px 12px rgba(43, 30, 19, 0.08); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink-900); padding: 13px 14px; border: 1px solid var(--ink-300); border-radius: 8px; background: #fff; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: 14px; color: var(--ink-500); }

/* Legal pages */
.legal { padding: 80px 0 96px; }
.legal .narrow { display: flex; flex-direction: column; gap: 32px; }
.legal h1 { font-size: clamp(38px, 6vw, 52px); }
.legal h2 { font-size: 26px; }
.legal section { display: flex; flex-direction: column; gap: 10px; }
.legal p { color: var(--ink-700); }
.legal .source { font-size: 14px; color: var(--ink-500); }
.legal-box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.legal-box div { display: flex; flex-direction: column; gap: 4px; }
.legal-box .eyebrow + p { margin-bottom: 8px; }
.legal-id { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.legal-id span { font-size: 14px; color: var(--ink-500); }
.legal-id strong { font-weight: 400; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--ink-700); color: var(--paper-3); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; padding-top: 40px; padding-bottom: 40px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--paper); }
.site-footer .brand-name { font-size: 22px; }
.footer-left { display: flex; flex-direction: column; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--paper-3); }
.site-footer a:hover { color: #fff; }

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

@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .card { padding: 28px; }
  .section-head { margin-bottom: 32px; }
}
@media (max-width: 359px) {
  .site-header .wrap { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
