@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  scroll-padding-top: 6rem;
  --navy: #102638;
  --navy-deep: #0c1c2b;
  --ink: #162d3e;
  --paper: #faf8f3;
  --white: #fffdf8;
  --muted: #475968;
  --blue-light: #e5ebed;
  --gold: #dcc193;
  --rule: #d7dede;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 100%;
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; background: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.25rem, 5.8vw, 6.5rem); line-height: .98; letter-spacing: -.025em; }
h2 { font-size: clamp(2.7rem, 4.65vw, 4.4rem); line-height: 1.04; letter-spacing: -.02em; }
h3 { font-size: clamp(2.05rem, 3.4vw, 2.85rem); line-height: 1.05; }

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.wrap {
  width: min(100% - 4rem, 77.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .6rem 1rem;
  background: var(--white);
  color: var(--navy);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  box-shadow: 0 1px 0 var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.4rem;
}

.brand {
  display: grid;
  min-width: 0;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  position: relative;
  display: block;
  width: clamp(6.85rem, 29vw, 11rem);
  aspect-ratio: 1639 / 634;
  overflow: hidden;
}

/* Crop the white margins in the header while keeping the original JPEG. */
.brand-logo img {
  position: absolute;
  top: -45.58%;
  left: -15.31%;
  width: 146.92%;
  max-width: none;
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  column-gap: clamp(.9rem, 3.3vw, 2.8rem);
  row-gap: .25rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.75rem;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.nav-contact { padding: .4rem .85rem; border: 1px solid #bfc9ce; }

.arrow {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}

.arrow::before {
  position: absolute;
  top: .2em;
  right: .2em;
  width: .64em;
  border-top: 1px solid;
  content: "";
  transform-origin: right center;
  transform: rotate(-45deg);
}

.arrow::after {
  position: absolute;
  top: .2em;
  right: .2em;
  width: .38em;
  height: .38em;
  border-top: 1px solid;
  border-right: 1px solid;
  content: "";
}

.arrow-down { transform: rotate(135deg); }
.arrow-up { transform: rotate(-45deg); }

.hero { background: var(--navy); color: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1.07fr 1fr; min-height: clamp(34rem, 47vw, 42rem); }
.hero-copy { align-self: center; padding: 4.5rem 1.75rem 4.75rem 0; }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero-image { position: relative; overflow: hidden; min-height: 16rem; background: #506275; }
.hero-image img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; filter: saturate(.68) contrast(1.03); }
.hero-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(155deg, rgb(16 38 56 / 7%), rgb(16 38 56 / 27%)); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.1rem;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span { width: 1.55rem; height: 1px; background: currentColor; }
.hero .eyebrow, .contact .eyebrow { color: var(--gold); }

.hero-description {
  max-width: 29ch;
  margin-top: 1.5rem;
  color: #dfebf2;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 3.15rem;
  margin-top: 2rem;
  padding: .65rem 1.1rem;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: .83rem;
  font-weight: 800;
  text-decoration: none;
}

.button:hover { background: #f2d9af; }
.button:focus-visible { outline-color: var(--white); }

.services, .firm, .contact { padding-block: clamp(3.7rem, 8vw, 7rem); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.service { padding: clamp(1.5rem, 3.9vw, 3.1rem); border: 1px solid var(--rule); background: var(--white); }

.service-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.4rem;
  background: var(--blue-light);
}

.bars { display: flex; align-items: flex-end; justify-content: center; gap: .16rem; padding-bottom: .9rem; }
.bars i { width: .23rem; height: .52rem; background: var(--navy); }
.bars i:nth-child(2) { height: .76rem; }
.bars i:nth-child(3) { height: 1.01rem; }
.oversight i { display: grid; place-items: center; width: 1.12rem; height: 1.12rem; border: 1px solid var(--navy); border-radius: 50%; }
.oversight i::after { width: .35rem; height: .35rem; border-radius: 50%; background: var(--navy); content: ""; }
.service p { margin-top: .8rem; color: var(--muted); }

.firm { background: var(--blue-light); }
.firm-inner, .contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: center; }
.firm-inner > p { max-width: 49ch; color: var(--muted); }

.contact { color: var(--white); background: var(--navy); }
.contact h2 { font-size: clamp(3.25rem, 6.6vw, 6rem); }
.contact-inner > div > p:last-child { max-width: 35ch; margin-top: 1rem; color: #dfebf2; }
.contact-methods { font-style: normal; }
.contact-methods a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .12rem .65rem;
  align-items: center;
  min-height: 4.5rem;
  padding-block: .7rem;
  border-top: 1px solid #69808d;
  text-decoration: none;
}
.contact-methods a:last-child { border-bottom: 1px solid #69808d; }
.contact-methods a:hover .contact-value { text-decoration: underline; text-underline-offset: .2em; }
.contact-label { color: var(--gold); font-weight: 800; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-value { grid-row: 2; overflow-wrap: anywhere; font-size: clamp(1rem, 2.5vw, 1.35rem); }
.contact-arrow { grid-column: 2; grid-row: 1 / 3; color: var(--gold); font-size: 1.25rem; }

nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #8a6c3c;
  text-decoration-thickness: 2px;
  text-underline-offset: .36em;
}

.notes-main { min-height: calc(100vh - 9.65rem); }

.notes-hero {
  position: relative;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
}

.notes-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 36%;
  background: linear-gradient(90deg, var(--navy), rgb(16 38 56 / 26%)),
    url("./assets/mountain.webp") center 46% / cover;
  content: "";
}

.notes-hero-inner { padding-block: clamp(4rem, 9vw, 8rem); }
.notes-hero p { max-width: 36ch; margin-top: 1.25rem; color: #dfebf2; font-size: 1.12rem; }

.notes-archive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(1.35rem, 5vw, 4.5rem);
  padding-block: clamp(3.3rem, 7vw, 6rem);
}

.notes-empty, .market-note { border-top: 1px solid var(--rule); }
.notes-empty { padding-block: 1.35rem; color: var(--muted); }
.market-note { padding-block: 1.75rem 2.5rem; scroll-margin-top: 1rem; }
.note-date { margin-bottom: .6rem; color: var(--muted); font-size: .8rem; font-weight: 800; }
.market-note h3 a { text-decoration: none; }
.market-note h3 a:hover { text-decoration: underline; text-underline-offset: .13em; }
.note-body { max-width: 68ch; margin-top: 1rem; }
.note-body p + p { margin-top: .85rem; }

.site-footer { background: var(--navy-deep); color: #dfebf2; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .35rem 1.5rem; min-height: 4.25rem; padding-block: .4rem; }
.footer-inner a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; font-size: .82rem; text-decoration: none; }

@media (max-width: 54rem) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 3.8rem 0 3rem; }
  .hero-image { margin-inline: -2rem; height: clamp(16rem, 52vw, 26rem); }
  h1 { font-size: clamp(3.25rem, 9vw, 5.5rem); }
}

@media (max-width: 39rem) {
  :root { scroll-padding-top: 9rem; }
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    padding-top: .9rem;
  }
  .brand { justify-self: center; }
  .brand-logo { width: 9rem; }

  .header-inner nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
  }

  .header-inner nav a {
    justify-content: center;
    min-height: 3rem;
    padding: .35rem .15rem;
    font-size: .75rem;
    line-height: 1.2;
    text-align: center;
  }

  .header-inner nav a + a { border-inline-start: 1px solid var(--rule); }
  .header-inner nav a:focus-visible { outline-offset: -3px; }
  .nav-contact { border: 0; background: var(--blue-light); }
  .nav-contact span { display: none; }
  .hero-image { margin-inline: -1.25rem; }
  .service-grid, .firm-inner, .contact-inner, .notes-archive { grid-template-columns: 1fr; }
  .notes-hero::before {
    inset-inline-start: 20%;
    background-image: linear-gradient(90deg, var(--navy), rgb(16 38 56 / 72%)),
      url("./assets/mountain.webp");
  }
}
