/* Steelhead Estate Management - site styles
   Colors and fonts come from the company brand files (Dropbox 03-brand, decision log DEC-012 to DEC-014).
   Page backgrounds (coastal fog above, pale sage below) are a trial, not a recorded decision.
   Layout: founders first - portraits under the headline, then one reading column. */

@font-face { font-family: "Vollkorn"; src: url("../assets/fonts/vollkorn-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("../assets/fonts/vollkorn-latin-wght-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Averia Serif Libre"; src: url("../assets/fonts/averia-serif-libre-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }

:root {
  --bark: #2E241D;       /* logo line color */
  --pink: #E09285;       /* logo stripe - used for the logo and one rule only */
  --fog: #BFC8C6;        /* coastal fog - top of the page */
  --sage: #C9CDB8;       /* pale sage - lower part of the page */
  --linen: #F3EEE4;      /* founders band */
  --cream: #EFE8DA;      /* text on bark */
  --rule: rgba(46, 36, 29, .28);

  --text: "Vollkorn", Georgia, serif;
  --head: "Averia Serif Libre", Georgia, serif;

  --edge: clamp(1.25rem, 5vw, 5rem);
  --gap: clamp(4rem, 9vw, 7.5rem);
  --measure: 52rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--fog);
  color: var(--bark);
  font-family: var(--text);
  font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem);
  line-height: 1.6;
  font-variant-numeric: oldstyle-nums;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
::selection { background: var(--pink); color: var(--bark); }
h1, h2, h3 { font-family: var(--head); font-weight: 300; margin: 0; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); letter-spacing: -.01em; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* Top */
.top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem) var(--edge) 0;
}
.logo img { width: clamp(11rem, 7rem + 13vw, 19rem); }
.top-note { font-style: italic; text-align: right; font-size: .95em; line-height: 1.45; margin: .5rem 0 0; }

/* Opening: headline, promise, then the three of us */
.opening { padding: clamp(3rem, 6vw, 5.5rem) var(--edge) var(--gap); }
.opening h1 {
  font-size: clamp(2.5rem, 1rem + 6.4vw, 6rem);
  line-height: 1;
  letter-spacing: -.022em;
  max-width: 21ch;
}
.promise {
  margin: clamp(2rem, 4vw, 3.25rem) 0 0;
  padding-top: 1.25rem;
  border-top: 3px solid var(--pink);
  font-style: italic;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1.35;
  width: fit-content; max-width: 100%;
}
.faces {
  list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem);
}
.faces a { display: block; text-decoration: none; }
.faces img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.face-name { display: block; font-family: var(--head); font-weight: 300; font-size: clamp(1.15rem, .8rem + 1.5vw, 2.1rem); line-height: 1.15; margin-top: 1rem; }
.face-title { display: block; font-style: italic; font-size: clamp(.9rem, .8rem + .4vw, 1.1rem); margin-top: .2rem; }
.faces a:hover .face-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* Headings Drew wants on one line (they wrap again on small screens) */
.one-line { white-space: nowrap; font-size: min(3.5rem, 3.3vw); }
@media (max-width: 760px) { .one-line { white-space: normal; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); } }

/* Bands and the reading column */
.band { padding: var(--gap) var(--edge); }
.band.fog { padding-top: 0; }
.band.linen { background: var(--linen); }
.band.sage { background: var(--sage); }
.band.tight { padding-top: 0; }
.col { max-width: var(--measure); }
.col > p:last-child { margin-bottom: 0; }
.big { font-size: clamp(1.2rem, 1rem + .8vw, 1.5rem); line-height: 1.45; }
.icon { width: 4.5rem; margin-bottom: 1.25rem; }
.sage .icon { width: 5.5rem; }

/* What we do: heading on the left, the three groups on the right */
.work { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.work-head p { max-width: 22rem; margin-bottom: 0; }
.groups h3 { margin: clamp(2.25rem, 4vw, 3.25rem) 0 1rem; }
.groups h3:first-child { margin-top: .35rem; }
.col h3 { margin: clamp(2.25rem, 4vw, 3.25rem) 0 1rem; }
.plain { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.plain li {
  padding: .8em 0; border-bottom: 1px solid var(--rule);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.35;
}

/* The three of us */
.bio { scroll-margin-top: 2rem; }
.bio h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); margin-bottom: 0; }
.trade { font-style: italic; margin: .2rem 0 .8rem; }

/* Five homes */
#five-h { font-size: clamp(2.5rem, 1rem + 6.4vw, 6rem); line-height: 1; letter-spacing: -.022em; }

/* Contact */
.contact { background: var(--bark); color: var(--cream); padding: var(--gap) var(--edge) clamp(2.5rem, 5vw, 4rem); }
.contact p { line-height: 1.7; font-weight: 450; }
.contact .col { max-width: none; }
.contact .col > p:first-of-type { max-width: var(--measure); }
.mail {
  font-family: var(--head); font-weight: 300;
  font-size: clamp(1.5rem, 1rem + 3vw, 3.5rem); line-height: 1.1;
  text-decoration-thickness: 1px; text-underline-offset: .18em;
}
.mail:hover { text-decoration-color: var(--pink); }
.contact .small { margin-top: clamp(3rem, 7vw, 6rem); font-size: .9em; opacity: .8; }

@media (max-width: 760px) {
  .top-note { font-size: .85em; }
  .work { grid-template-columns: 1fr; gap: 0; }
  .groups h3:first-child { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
}
@media (max-width: 520px) {
  .top { flex-direction: column; gap: 1rem; }
  .top-note { text-align: left; margin: 0; }
  .top-note br { display: none; }
  .faces { gap: .75rem; }
}
