:root {
  --off-white: #FAF9F6;
  --orange: #F99D1B;
  --blue: #064F6E;
  --ink: #123440;
  --glass-dark: #164c65;
  --glass-light: #FAF9F6;
  --glass-accent: #F99D1B;
  --glass-rim: rgb(250 249 246 / 40%);
  --nav-clearance: calc(4.25rem + env(safe-area-inset-top));
  --rule: rgb(250 249 246 / 24%);
  --content-width: 73rem;
  --gutter: max(clamp(1rem, 6vw, 4.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
  --inset: max(var(--gutter), (100% - var(--content-width)) / 2);
  --body: system-ui, sans-serif;
  --display: "DM Serif Display", Georgia, serif;
  color: var(--off-white);
  background: var(--blue);
  font: 100% / 1.6 var(--body);
}

* { box-sizing: border-box; }
body { display: grid; margin: 0; background: var(--blue); }
.masthead-shell, main { grid-area: 1 / 1; min-width: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
main, section[id], a:focus-visible { scroll-margin-top: calc(var(--nav-clearance) + .75rem); }

.wrap { width: min(100% - 2 * var(--gutter), var(--content-width)); margin-inline: auto; }
.skip-link {
  position: absolute;
  z-index: 11;
  padding: .65rem 1rem;
  color: var(--blue);
  background: var(--off-white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.masthead, .footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.25rem;
  padding-block: .85rem;
}
.masthead-shell {
  align-self: start;
  position: sticky;
  z-index: 10;
  top: 0;
  padding-block: max(.65rem, env(safe-area-inset-top)) .65rem;
  pointer-events: none;
}
.masthead {
  position: relative;
  isolation: isolate;
  padding: .25rem clamp(.45rem, 2vw, 1rem);
  color: var(--off-white);
  border-color: var(--glass-rim);
  pointer-events: auto;
}
.footer-shell { color: var(--off-white); background: var(--blue); }
.masthead, .button {
  border: 1px solid var(--glass-rim);
  border-radius: 100vmax;
  background: var(--glass-fill);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 22%), 0 7px 22px rgb(0 24 42 / 17%);
}
.masthead { --glass-fill: var(--glass-dark); }
.glass-lens {
  position: fixed;
  z-index: 9;
  isolation: isolate;
  pointer-events: none;
  opacity: 0;
}
.glass-lens[data-active] { opacity: 1; }
.masthead[data-glass="active"] {
  --glass-fill: rgb(7 36 53 / 63%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.masthead[data-glass="active"] .glass-lens { opacity: .44; filter: brightness(.58); }
.brand {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
  padding-inline: .4rem;
}
.brand-mark { width: .8rem; aspect-ratio: 1; background: var(--orange); border-radius: 50%; }
nav { display: flex; flex-wrap: wrap; gap: .15rem; }
nav a {
  min-inline-size: 44px;
  justify-content: center;
  border-radius: 100vmax;
  padding-inline: clamp(.5rem, 1.8vw, 1.1rem);
  text-decoration: none;
  font-weight: 600;
}
nav a:hover { background: rgb(0 22 35 / 24%); text-decoration: underline; }
nav a[aria-current="location"],
html:not([data-section-nav]) body:has(#contact:target) nav a[href="#contact"] {
  background: rgb(0 22 35 / 24%);
  text-decoration: underline;
  text-decoration-thickness: .12em;
}
.brand:hover { text-decoration: underline; }
.masthead :focus-visible { outline-offset: 1px; }
nav a, .brand, .footer a { display: inline-flex; align-items: center; min-height: 44px; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 1.2rem 0;
  padding: clamp(3rem, 8vw, 7rem) var(--inset);
  padding-top: calc(var(--nav-clearance) + clamp(3rem, 8vw, 7rem));
  color: var(--off-white);
  background: var(--blue);
}
h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.05em;
}
h1 {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  grid-row: 1;
  width: fit-content;
  margin-top: .24em;
  font-size: clamp(3rem, 12vw, 9.5rem);
  line-height: .89;
  text-transform: uppercase;
}
.handwriting {
  display: block;
  width: fit-content;
  margin: 0 0 -.08em .21em;
  color: var(--orange);
  font: 600 .58em / .85 "Caveat", "Brush Script MT", cursive;
  letter-spacing: -.045em;
  text-transform: none;
  transform: rotate(-6deg);
}
h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.hero-copy { grid-column: 1; grid-row: 2; align-self: start; z-index: 2; }
.hero-copy p {
  max-width: 27ch;
  margin-bottom: 1.25rem;
  color: inherit;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: .7rem 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { text-decoration: underline; }
.button-primary {
  --glass-fill: var(--glass-light);
  color: var(--blue);
  outline-color: var(--off-white);
}
.button-accent {
  --glass-fill: var(--glass-accent);
  color: var(--ink);
  outline-color: var(--off-white);
}
.button:active { transform: scale(.98); }
.button-glass {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  max-width: 100%;
}
.button-glass .button { position: relative; z-index: 2; max-width: 100%; }
.button-scene, .button-lens {
  position: absolute;
  inset: 0;
  visibility: hidden;
  border-radius: 100vmax;
  pointer-events: none;
}
.button-scene {
  z-index: 0;
  background: linear-gradient(139deg, #225d78 15%, #7baac0 37%, #357992 55%, #0c3b52 86%);
}
.button-glass-accent .button-scene {
  background: linear-gradient(139deg, #275469 15%, #af7d4b 37%, #496b76 55%, #0c3b52 86%);
}
.button-lens { z-index: 1; isolation: isolate; }
.button-glass[data-ready] .button-scene,
.button-glass[data-active] .button-lens { visibility: visible; }
.button-glass[data-active] .button {
  --glass-fill: rgb(7 36 53 / 56%);
  color: var(--off-white);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.button-glass-accent[data-active] .button { border-color: rgb(249 157 27 / 65%); }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .masthead, .button {
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
  }
  .masthead { --glass-fill: linear-gradient(180deg, rgb(20 76 102 / 87%), rgb(9 55 76 / 92%)); }
  .button-primary { --glass-fill: linear-gradient(180deg, rgb(250 249 246 / 96%), rgb(250 249 246 / 84%)); }
  .button-accent { --glass-fill: linear-gradient(180deg, rgb(255 185 77 / 98%), rgb(249 157 27 / 93%)); }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass-lens[data-active], .button-glass[data-ready] .button-scene,
  .button-glass[data-active] .button-lens { visibility: hidden; }
  .masthead, .button {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: currentColor;
    box-shadow: none;
  }
  .masthead { --glass-fill: var(--glass-dark); }
  .masthead[data-glass="active"] { --glass-fill: var(--glass-dark); }
  .button-primary { --glass-fill: var(--glass-light); }
  .button-accent { --glass-fill: var(--glass-accent); }
  .button-glass[data-active] .button-primary { --glass-fill: var(--glass-light); color: var(--blue); }
  .button-glass[data-active] .button-accent { --glass-fill: var(--glass-accent); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .button:active { transform: none; }
  .glass-lens[data-active] { visibility: hidden; }
  .masthead[data-glass="active"] { --glass-fill: var(--glass-dark); }
}

.hero-art {
  position: relative;
  isolation: isolate;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 115%;
  max-width: 49rem;
  aspect-ratio: 1.5;
  align-self: end;
  margin-top: clamp(6rem, 12vw, 9rem);
  margin-inline-start: -8%;
}
.hero-art img {
  display: block;
  position: absolute;
  height: auto;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 2% 2% 7% 13%;
  border: 1px solid rgb(250 249 246 / 30%);
  border-radius: 50%;
  transform: rotate(-19deg);
}
.hero-skyline {
  left: 0;
  bottom: 0;
  width: 100%;
  filter: drop-shadow(0 .5rem .8rem rgb(0 24 42 / 70%));
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 1.5rem clamp(2rem, 6vw, 6rem);
  border-top: 1px solid var(--rule);
  padding: clamp(3.5rem, 8vw, 7rem) var(--inset);
  background: var(--blue);
}
.section-grid h2::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: .3rem;
  margin-bottom: .85rem;
  background: var(--orange);
  border-radius: 1rem;
}
.section-copy { max-width: 58ch; font-size: 1.125rem; }
.section-copy p + p { margin-top: 1rem; }
.about-intro { padding-top: calc(var(--nav-clearance) + clamp(3rem, 8vw, 7rem)); }
.about-intro h1 {
  margin: 0;
  grid-column: auto;
  grid-row: auto;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  text-transform: none;
}
.interests { margin: 0; padding: 0; list-style: none; }
.interests li + li { border-top: 1px solid var(--rule); margin-top: 1rem; padding-top: 1rem; }
.interests h3 { font-size: 1.15rem; }
.interests p { margin-top: .2rem; }
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(3rem, 7vw, 6rem) var(--inset);
  color: var(--off-white);
  background: var(--blue);
  border-top: 1px solid var(--rule);
}
.contact p { margin-top: .7rem; }
.contact-address { overflow-wrap: anywhere; }
.footer {
  border-block-start: 1px solid rgb(250 249 246 / 30%);
  border-block-end: 0;
  font-size: .875rem;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 43rem) {
  .hero, .section-grid { grid-template-columns: minmax(0, 1fr); }
  .hero {
    grid-template-rows: auto auto auto;
    gap: .6rem;
    padding-block: calc(var(--nav-clearance) + 3rem) 3rem;
  }
  .hero-art {
    grid-column: 1;
    grid-row: 3;
    width: min(110%, 36rem);
    margin: 1.25rem 0 0;
    justify-self: center;
  }
  .hero-copy { grid-row: 2; margin-top: .75rem; }
  .hero-copy p { max-width: 33ch; }
}
@media (max-width: 25rem) {
  h1 { font-size: clamp(2.75rem, 12vw, 3.25rem); }
  body:has(.about-intro) .masthead { justify-content: center; }
  body:has(.about-intro) .masthead nav { justify-content: center; width: 100%; }
  body:has(.about-intro) .masthead nav a { padding-inline: .35rem; font-size: .875rem; }
}
