/* on.estate
   Minimal layout: a dark lake hero with the whale on depth contours, then quiet
   centred sections that each carry one heading, one line and two links.
   Detail lives one click deeper, folded into rows on the Services page.
   Palette: Ontario lakes (deep lake ink) and copper-patina green. One committed light look. */

:root {
  --birch: #F1F2EF;        /* page ground, alternate sections */
  --paper: #FFFFFF;        /* main sections, form cards */
  --lake: #102428;         /* ink, hero, footer */
  --granite: #56625F;      /* secondary text on light */
  --mist: #A9B8B4;         /* secondary text on dark */
  --rule: #DCE1DE;         /* hairlines on light */
  --rule-dark: #2A4248;    /* hairlines on dark */
  --patina: #2F6A5D;       /* links and accent on light */
  --patina-light: #8CC2B2; /* accent on dark */
  --header-bg: rgba(241, 242, 239, 0.8);
  --error: #A2412F;

  --display: "Cardo", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--birch);
  color: var(--lake);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--patina);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--lake); color: var(--birch); padding: 0.75rem 1rem; z-index: 30; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header: thin, translucent, sticky ---------- */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 30px; }
.brand-word { width: 108px; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); font-size: 0.9rem; }
.site-nav a { text-decoration: none; color: var(--lake); opacity: 0.85; transition: opacity 0.2s ease, color 0.2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; color: var(--patina); }

.menu-toggle {
  display: none;
  font: inherit;
  font-size: 0.9rem;
  background: none;
  border: 0;
  color: var(--lake);
  padding: 0.3rem 0;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-block: 0.75rem 1rem;
    font-size: 1.25rem;
  }
  .site-nav.is-open { display: flex; }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-dark { background: var(--lake); color: var(--birch); }
.btn-dark:hover { background: var(--patina); }
.btn-light { background: var(--birch); color: var(--lake); }
.btn-light:hover { background: var(--patina-light); }

.link {
  color: var(--patina);
  font-weight: 500;
  text-decoration: none;
}
.link:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.on-dark .link { color: var(--patina-light); }

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 2rem;
  font-size: 1.0625rem;
}

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

.hero { background: var(--lake); color: var(--birch); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 2rem;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.hero-copy { min-width: 0; display: grid; gap: 2rem; position: relative; z-index: 1; }
.hero-title { display: grid; gap: 0.1em; }
.hero-title .ht-serif { font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: 1.02; }
.hero-title .ht-on {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(5.5rem, 17vw, 12.5rem);
  line-height: 0.85;
  letter-spacing: 0.03em;
}
.hero-lede { max-width: 30rem; font-size: 1.25rem; color: var(--mist); }
.hero .links { justify-content: flex-start; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 100%; display: grid; place-items: center; }
.hero-art .contours { position: absolute; width: 175%; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.hero-art .whale { position: relative; width: 72%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(70%, 320px); justify-self: end; margin-top: -1rem; }
}

/* ---------- Quiet centred sections ---------- */

.tile { padding-block: clamp(5rem, 12vw, 9rem); text-align: center; }
.tile-paper { background: var(--paper); }
.tile-birch { background: var(--birch); }

.tile-inner { display: grid; justify-items: center; gap: 1.1rem; }
.tile-title { font-size: clamp(2.75rem, 7vw, 5rem); }
.tile-sub { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--granite); max-width: 34rem; }
.tile .links { margin-top: 0.75rem; }
.statement { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 22ch; }
.tile-sub.wide { max-width: 40rem; }

/* ---------- Inner page hero ---------- */

.page-hero {
  padding-block: clamp(4.5rem, 10vw, 7.5rem) clamp(2.5rem, 6vw, 4.5rem);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1.1rem;
}
.page-hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
.page-hero .lede { font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--granite); max-width: 36rem; }

/* ---------- Services: one heading, one line, detail folded away ---------- */

.svc { padding-block: clamp(4.5rem, 10vw, 7.5rem); scroll-margin-top: 3.5rem; }
.svc-paper { background: var(--paper); }
.svc-birch { background: var(--birch); }
.svc-head { display: grid; justify-items: center; text-align: center; gap: 1rem; }
.svc-title { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.svc-sub { font-size: clamp(1.125rem, 2vw, 1.3rem); color: var(--granite); max-width: 34rem; }

.more {
  max-width: 44rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  border-top: 1px solid var(--rule);
}
.more details { border-bottom: 1px solid var(--rule); }
.more summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.15rem;
  font-size: 1.125rem;
  font-weight: 500;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after {
  content: "+";
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--patina);
}
.more details[open] summary::after { content: "\2212"; }
.more ul {
  list-style: none;
  margin: 0;
  padding: 0 0 1.4rem;
  display: grid;
  gap: 0.55rem;
  color: var(--granite);
}

/* ---------- Founder (About) ---------- */

.founder { display: grid; justify-items: center; text-align: center; gap: 1.25rem; }
.founder img {
  width: min(260px, 70%);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 20px;
  background: var(--paper);
}
.founder h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: 0.75rem; }
.founder p { color: var(--granite); max-width: 32rem; font-size: 1.125rem; }
.founder .small { font-size: 0.9rem; }
.founder .links { margin-top: 0.5rem; }

.story {
  max-width: 34rem;
  display: grid;
  gap: 1.1rem;
  text-align: left;
  margin-top: 0.5rem;
}
.story p { font-size: 1.125rem; line-height: 1.7; color: var(--lake); max-width: none; }
.story p.small { color: var(--granite); font-size: 0.95rem; }

/* ---------- Quote ---------- */

.quote {
  background: var(--lake);
  color: var(--birch);
  text-align: center;
  padding-block: clamp(5rem, 12vw, 8.5rem);
}
.quote blockquote { margin: 0 auto; max-width: 48rem; }
.quote blockquote p {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.3;
  text-wrap: balance;
}
.quote footer { margin-top: 1.5rem; font-size: 1rem; color: var(--mist); }

/* ---------- Forms ---------- */

.form-section { padding-bottom: clamp(4.5rem, 10vw, 7.5rem); }

.form {
  max-width: 40rem;
  margin-inline: auto;
  background: var(--paper);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.1rem;
}

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: 0.35rem; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--granite); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--lake);
  background: var(--birch);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { background: var(--paper); border-color: var(--patina); outline: none; }
.field textarea { min-height: 8rem; resize: vertical; }
.form .btn { justify-self: start; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { font-size: 0.95rem; padding: 0.85rem 1rem; border-radius: 10px; background: var(--birch); border-left: 2px solid var(--patina); }
.form-status.is-error { border-left-color: var(--error); }

.reach {
  margin-top: 2.5rem;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--granite);
}
.reach a { color: var(--lake); text-decoration: none; font-size: 1.125rem; }
.reach a:hover { color: var(--patina); }

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

.site-footer { background: var(--lake); color: var(--mist); padding-block: 3.5rem 2.5rem; font-size: 0.875rem; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dark);
}
.footer-logo { width: 96px; }
.footer-nav, .footer-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.footer-nav a, .footer-contact a { color: var(--birch); text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--patina-light); }
.footer-bottom { padding-top: 1.5rem; display: grid; gap: 0.75rem; }
.disclosure { max-width: 60rem; }

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