:root {
  --ink: #173e37;
  --paper: #f5f2e8;
  --line: #b8c5b5;
  --accent: #865039;
  --serif: "Baskervville", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b85632; outline-offset: 4px; }
.wrap { width: min(1320px, 90%); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 1rem; z-index: 2; background: white; color: black; padding: .7rem; }
.skip:focus { top: .6rem; }
.mast, .brand, nav, .actions, .section-title, .contact-row, .foot { display: flex; align-items: center; }
.mast { min-height: 88px; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line); }
.brand { gap: 12px; font: 500 1.25rem/1.1 "Instrument Serif", Georgia, serif; letter-spacing: -.025em; }
.brand img { display: block; flex: none; }
.brand small { display: block; font: 500 .71rem/1.1 var(--sans); margin-top: 4px; text-transform: uppercase; letter-spacing: .12em; }
nav { gap: clamp(15px, 2.6vw, 40px); font-size: .95rem; }
nav a:hover, .textlink:hover, .foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-contact { padding: .55rem 1.1rem; border: 1px solid var(--ink); border-radius: 50px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 85px); align-items: center; padding-block: clamp(30px, 4.5vw, 72px) clamp(34px, 5vw, 79px); }
.coastcopy { padding-block: 18px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font: 600 .79rem/1.5 "IBM Plex Mono", "Courier New", monospace; letter-spacing: .085em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 24px; height: 2px; background: currentColor; }
h1 { margin: 24px 0; font-size: clamp(3.25rem, 5.8vw, 6.2rem); letter-spacing: -.064em; line-height: .99; }
h1 em { color: #52725a; font-weight: 400; }
.deck { max-width: 42ch; font-size: clamp(1.05rem, 1.5vw, 1.24rem); }
.actions { gap: 25px; flex-wrap: wrap; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border: 0; border-radius: 30px; background: var(--ink); color: var(--paper); font: 600 .96rem/1.45 var(--sans); }
.button:hover { background: #2e594d; }
.textlink, .foot a { border-bottom: 1px solid currentColor; font-size: .95rem; }
.arch { border-radius: 43% 43% 3px 3px; overflow: hidden; background: #92b4a6; }
.arch img { display: block; width: 100%; height: auto; }
figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 10px; color: #4b6457; font-size: .82rem; }
.band { padding-block: clamp(3.5rem, 7vw, 7rem); }
h2 { font-size: clamp(2.4rem, 4.2vw, 4.5rem); line-height: 1.05; letter-spacing: -.05em; text-wrap: balance; }
.services { background: #e8ebdf; }
.section-title { align-items: baseline; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-intro { max-width: 85ch; margin-bottom: 2.6rem; }
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 8vw, 8rem); }
.purpose h2 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 1rem; }
.purpose p { max-width: 55ch; font-size: 1.08rem; }
.service-grid article { padding: 18px 4% 0 0; border-top: 1px solid #9bad99; }
h3 { font-size: clamp(1.6rem, 2.2vw, 2.2rem); line-height: 1.14; margin-bottom: .85rem; letter-spacing: -.035em; }
.about { background: #f7f5ed; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 8vw, 8rem); }
.about .eyebrow { margin-bottom: 15px; }
.bodycopy { font-size: 1.08rem; }
.bodycopy p + p { margin-top: 1rem; }
.contact { background: #214b41; color: #fff9e8; }
.contact-row, .foot { justify-content: space-between; gap: 2rem; }
.contact h2 { margin-bottom: 1rem; }
.contact p { max-width: 64ch; }
.contact .button { flex: none; background: #f1d6ae; color: #193c34; }
.contact .button:hover { background: #ffe6c2; }
.foot { padding-block: 23px; font-size: .88rem; }
dialog { width: min(520px, 92vw); max-height: 88dvh; overflow: auto; background: #faf8f3; color: var(--ink); border: 0; border-radius: 12px; padding: clamp(23px, 4vw, 38px); box-shadow: 0 18px 80px #0005; }
dialog::backdrop { background: #0d2028a8; }
dialog h2 { font-size: 2rem; margin-right: 20px; }
dialog p { margin: .9rem 0 1.2rem; }
.close { position: absolute; top: 8px; right: 10px; padding: 2px 8px; background: none; border: 0; font-size: 1.7rem; color: inherit; }
label { display: block; margin: .8rem 0 .3rem; font-weight: 620; }
input, textarea { width: 100%; padding: .6rem; background: white; color: var(--ink); border: 1px solid #74897d; border-radius: 4px; }
textarea { resize: vertical; }
form .button { margin-top: 1rem; }
output { display: block; margin-top: .45rem; font-size: .9rem; }
@media (max-width: 760px) {
  .mast { min-height: 72px; gap: 8px; }
  nav { gap: 13px; }
  .nav-contact { padding: .45rem .8rem; }
  .hero, .about-grid, .service-grid, .purpose-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .coastcopy { padding: 3px 0; }
  h1 { font-size: clamp(3.2rem, 10.85vw, 5.2rem); margin-block: 16px; }
  .landscape { width: min(100%, 500px); margin: auto; }
  .arch { aspect-ratio: 1.3; }
  .arch img { width: 100%; height: 100%; object-fit: cover; }
  .section-title, .contact-row { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .section-title { margin-bottom: 2rem; }
  .foot { flex-wrap: wrap; gap: .4rem 1.3rem; }
}
@media (max-width: 480px) { nav a:not(.nav-contact) { display: none; } .brand { gap: 8px; } }
@media (min-width: 761px) and (max-width: 900px) { h1 { font-size: 5.7vw; } }
@media (max-width: 380px) { h1 { font-size: 2.55rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
