/* Elliott Resource Services - ersto.ca (version 2)
   One stylesheet, no frameworks. Colours and fonts are set once, here. */

/* Brand fonts (see brand/BRAND-GUIDE): Inter for text, Source Serif 4 for headlines.
   Stored in /fonts so visitors' browsers never contact Google. Free under the SIL Open Font License. */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --burgundy: #7A1F2B;
  --gold: #B08D3C;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --night: #0f0f10;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }
.inner { max-width: 980px; margin: 0 auto; padding: 0 22px; }
section { scroll-margin-top: 52px; }

/* Header: logo and one link */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bar .inner { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.bar img { width: 132px; }
.bar a.link { color: var(--ink); font-size: 0.85rem; text-decoration: none; }
.bar a.link:hover { color: var(--burgundy); }

/* 1. Statement */
.statement {
  min-height: calc(100vh - 53px);
  min-height: calc(100svh - 53px);
  display: flex; align-items: center;
  padding: 80px 0;
  text-align: center;
}
.statement h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 1.05; letter-spacing: -0.02em;
  max-width: 12em; margin: 0 auto;
}
.statement h1 em { font-style: normal; color: var(--burgundy); }
.statement .rule { width: 56px; height: 2px; background: var(--gold); margin: 40px auto; }
.statement p { font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: var(--muted); max-width: 30em; margin: 0 auto; }
.down { display: inline-block; margin-top: 56px; color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.down:hover { color: var(--burgundy); }

/* 2. Approach */
.approach { background: var(--mist); padding: 120px 0; }
.label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 18px; }
.approach h2, .story h2, .contact h2 {
  font-family: var(--serif); font-weight: 600; text-align: center;
  font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.015em;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.step { background: var(--paper); border-radius: 24px; padding: 40px 32px 44px; }
.step .n { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); }
.step h3 { font-family: var(--serif); font-weight: 600; font-size: 2rem; margin: 6px 0 12px; }
.step p { color: var(--muted); }

/* 3. Story: dark, with Grandfather's photo */
.story { background: var(--night); color: #f5f5f7; padding: 120px 0; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 64px; }
.story figure img { border-radius: 20px; }
.story figcaption { margin-top: 12px; font-size: 0.85rem; color: #a1a1a6; }
.story-text p { font-size: 1.12rem; line-height: 1.6; color: #c7c7cc; margin-bottom: 1.1em; }
.story-text p:last-child { margin-bottom: 0; }
.story-text p.big { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 1.75rem); line-height: 1.35; color: #fff; }

/* 4. Contact */
.contact { padding: 128px 0 136px; text-align: center; }
.contact p.sub { color: var(--muted); font-size: 1.2rem; margin: 18px auto 40px; max-width: 28em; }
.pill {
  display: inline-block; padding: 14px 30px; border-radius: 980px;
  background: var(--burgundy); color: #fff; text-decoration: none; font-size: 1.05rem;
}
.pill:hover { background: #5E1720; color: #fff; }
.contact .plain { margin-top: 22px; color: var(--muted); font-size: 0.95rem; }
.contact .plain a { color: var(--muted); }

/* Footer */
.foot { border-top: 1px solid rgba(0, 0, 0, 0.08); padding: 28px 0 40px; font-size: 0.78rem; color: var(--muted); }
.foot .inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Simple pages (not found) */
.page-head { padding: 96px 0 56px; text-align: center; }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5.6vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 13em; margin: 0 auto; }
.page-head p:not(.label) { color: var(--muted); font-size: 1.2rem; margin-top: 18px; }
.page-head .pill { margin-top: 36px; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; margin-top: 44px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 44px; }
  .approach, .story { padding: 88px 0; }
  .contact { padding: 96px 0 104px; }
  }
.nowrap { white-space: nowrap; }
.statement p.email { margin-top: 28px; font-size: 1.05rem; }
.statement p.email a { color: var(--burgundy); text-decoration: none; border-bottom: 1px solid rgba(122, 31, 43, 0.3); padding-bottom: 2px; }
.statement p.email a:hover { border-bottom-color: var(--burgundy); }
