/* Station House — Horizon
   Edit colours and type in the :root block below; everything else follows. */

:root {
  --cream:      #F4EEE0;  /* page ground */
  --cream-lt:   #FBF6E9;  /* text and buttons on dark */
  --cream-dim:  #EADFC8;  /* secondary text on dark */
  --ink:        #24262A;  /* headings */
  --body:       #34373A;  /* body copy */
  --body-dim:   #4A4D4A;  /* captions, footer */
  --accent:     #8A4B33;  /* clay: rules, links, primary */
  --olive:      #4E5A36;  /* project numerals */
  --brown:      #5E2F22;  /* app band */

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1232px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.link:hover { text-decoration: underline; }
.btn { transition: opacity 0.15s ease; }
.btn:hover { opacity: 0.88; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px var(--gutter);
  background: var(--cream);
}
.brand {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
}
.nav nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  font-size: 17px;
  font-weight: 500;
}

/* ---------- buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
}
.pill-accent { background: var(--accent); color: var(--cream-lt); }
.pill-cream  { background: var(--cream-lt); color: var(--ink); }
.pill-ghost  { border: 1.5px solid var(--cream-lt); color: var(--cream-lt); font-weight: 500; }
.pill-lg { min-height: 54px; padding: 0 34px; font-size: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 820px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.hero .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(24,22,20,0.12) 0%,
    rgba(24,22,20,0.34) 42%,
    rgba(24,22,20,0.80) 74%,
    rgba(24,22,20,0.92) 100%);
}
.hero .inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 64px var(--gutter) clamp(40px, 6vw, 80px);
  max-width: 1100px;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--cream-lt);
  text-wrap: balance;
}
.hero p {
  margin: 0;
  max-width: 560px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--cream-dim);
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- projects ---------- */
.projects { padding: clamp(56px, 8vw, 112px) var(--gutter); }
.projects .wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.section-head p {
  margin: 0;
  max-width: 440px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--body-dim);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 3px solid var(--accent);
  padding-top: 24px;
}
.card .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 28px;
  color: var(--olive);
}
.card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.card p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--body); }
.card .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  align-self: flex-start;
}

/* ---------- app band ---------- */
.band {
  background: var(--brown);
  color: var(--cream-lt);
  padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.band .wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
}
.band .copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.band h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.band p {
  margin: 0;
  max-width: 520px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--cream-dim);
}
.band .pill { min-height: 56px; padding: 0 40px; font-size: 20px; color: var(--brown); }

/* ---------- footer ---------- */
.foot {
  margin-top: auto;
  padding: 36px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 16px;
  color: var(--body-dim);
}
.foot .brand { font-size: 20px; }

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