@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

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

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

:root {
  color-scheme: light;
  --ivory: #f5f3eb;
  --paper: #faf8f3;
  --green: #19261d;
  --green-dark: #131e17;
  --green-deep: #0e1913;
  --ink: #1d291f;
  --muted: #4d574c;
  --brass: #cfad75;
  --copper: #855525;
  --line: #d9d7ca;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
}

body:has(.gallery-dialog[open]) { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button:not([hidden]) { cursor: pointer; }

:focus-visible {
  outline: 2px solid #997543;
  outline-offset: 5px;
}

.hero :focus-visible,
.contact-section :focus-visible,
.gallery-dialog :focus-visible { outline-color: #f4d39b; }

p, h1, h2, h3, figure { margin: 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1, h2 { line-height: .98; }
h2 { font-size: clamp(3.4rem, 6vw, 5.5rem); letter-spacing: -.018em; }
h2 em { color: var(--copper); }
h3 { font-size: clamp(2rem, 3.1vw, 2.75rem); line-height: 1.02; }

.shell { width: min(calc(100% - 8rem), 1280px); margin-inline: auto; }
.section { padding-block: clamp(4.75rem, 8vw, 8rem); scroll-margin-top: 1.25rem; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: .75rem;
  left: .75rem;
  padding: .6rem .9rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 2; background: var(--ivory); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .63rem; flex: 0 0 auto; text-decoration: none; }
.brand-mark { width: 48px; height: auto; }
.brand-wordmark { width: 168px; height: auto; }
.navigation, .site-footer nav { display: flex; align-items: center; gap: clamp(1rem, 2.8vw, 2.8rem); }
.navigation a, .site-footer nav a { font-weight: 600; text-decoration: none; }
.navigation a:not(.button):hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.35rem;
  min-height: 50px;
  text-align: center;
  border: 1px solid transparent;
  font: 700 .9375rem/1.3 var(--sans);
  text-decoration: none;
  transition: color .18s, background-color .18s, border-color .18s;
}

.button-nav { border-color: var(--green); min-height: 44px; padding: .62rem 1.15rem; }
.button-nav:hover, .button-forest { color: white; background: var(--green); border-color: var(--green); }
.button-forest:hover { background: #2d4132; border-color: #2d4132; }
.button-brass { color: var(--green-deep); background: var(--brass); border-color: var(--brass); }
.button-brass:hover { background: #e0c38f; border-color: #e0c38f; }
.button-ghost { color: var(--ivory); border-color: #b4b4a2; }
.button-ghost:hover { background: var(--ivory); color: var(--green-deep); border-color: var(--ivory); }

.menu-button {
  display: none;
  padding: .51rem .9rem;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  font-weight: 700;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(565px, 45vw, 720px);
  color: var(--ivory);
  background: var(--green-dark);
  overflow: hidden;
}

.hero-picture {
  position: absolute;
  inset: 0 0 0 44%;
  z-index: -2;
}

.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero::after {
  position: absolute;
  content: "";
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, var(--green-dark) 44%, rgb(19 30 23 / .53) 50%, rgb(19 30 23 / .1) 59%, transparent 73%),
              linear-gradient(0deg, rgb(12 20 13 / .25), transparent 34%);
}

.hero-inner { padding-block: 4.8rem; }
.eyebrow {
  font-weight: 700;
  font-size: .8125rem;
  letter-spacing: .165em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-eyebrow { color: #e1c38d; }
.hero-region { white-space: nowrap; }
.hero-eyebrow span { display: inline-block; vertical-align: .18em; width: 1.4rem; height: 1px; margin-inline: .35rem; background: currentColor; }
.eyebrow-accent { color: var(--copper); }
.hero h1 { margin-top: .2em; font-size: clamp(5rem, 8.45vw, 8.2rem); letter-spacing: -.026em; line-height: .88; }
.hero h1 em, .contact-section h2 em { color: var(--brass); }
.hero-description { max-width: 390px; margin-top: 1.55rem; color: #f1eee5; font-size: 1.1rem; line-height: 1.58; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }

.service-strip { background: #eae7d9; border-bottom: 1px solid #d8d4c4; }
.service-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 104px;
  padding: 1rem .65rem;
  text-decoration: none;
  text-align: center;
}
.service-strip a + a { border-left: 1px solid #d3cdbb; }
.service-strip a:hover { background: #e1dcc9; }
.service-strip span { font: 400 1.75rem/1.12 var(--serif); }
.service-strip small { margin-top: .22rem; color: var(--muted); font-size: .875rem; }

.gallery-section { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.5fr 1fr; align-items: end; gap: 2rem; margin-block: .65rem 2.4rem; }
.section-heading p { max-width: 405px; margin-bottom: .35rem; justify-self: end; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.65rem 1.1rem; }
.gallery-tile { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.gallery-feature { grid-column: span 2; grid-row: span 2; }
.gallery-side { grid-column: span 2; }
.gallery-photo { position: relative; display: block; overflow: hidden; background: #263629; aspect-ratio: 4 / 3; }
.gallery-side .gallery-photo { aspect-ratio: 2.38; }
.gallery-feature .gallery-photo { flex: 1; aspect-ratio: auto; }
.gallery-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.gallery-feature img { position: absolute; inset: 0; object-position: center 54%; }
.gallery-side img { object-position: center 56%; }
.gallery-tile:nth-child(5) img { object-position: center 51%; }
.gallery-tile:nth-child(6) img { object-position: center 44%; }
.gallery-photo:hover img, .gallery-photo:focus-visible img { transform: scale(1.035); }
.gallery-expand {
  position: absolute;
  right: .7rem;
  bottom: .7rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: rgb(19 30 23 / .85);
  color: white;
  font-size: 1.18rem;
  line-height: 1;
}

.gallery-tile figcaption { font-size: .875rem; font-weight: 600; color: var(--muted); }

.services-section { background: var(--ivory); border-block: 1px solid var(--line); }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 7rem); }
.services-intro h2, .about-inner h2, .contact-inner h2 { margin-top: .14em; }
.services-intro p:not(.eyebrow) { max-width: 394px; margin-top: 1.28rem; color: var(--muted); }
.services-intro .button { margin-top: 1.5rem; }
.service-list { border-top: 1px solid #c7c9b9; }
.service-list article { border-bottom: 1px solid #c7c9b9; padding: 1.3rem 0 1.5rem; scroll-margin-top: 1.2rem; }
.service-list article p { max-width: 535px; margin-top: .62rem; color: var(--muted); }

.sheds-section { background: #eae7d9; border-bottom: 1px solid var(--line); }
.sheds-heading { margin-top: 0; }
.sheds-heading h2 em { display: block; }
.sheds-heading > div { justify-self: end; width: min(100%, 405px); }
.sheds-heading p { margin-bottom: 0; }
.sheds-heading .button { margin-top: 1rem; }
.sheds-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.65rem 1.1rem; }
.sheds-gallery .gallery-tile { grid-column: span 4; }
.sheds-gallery .gallery-photo { aspect-ratio: 3 / 2; }
.sheds-gallery .sheds-lounge { grid-column: span 6; }
.sheds-gallery .sheds-lounge .gallery-photo { aspect-ratio: 2; }
.sheds-gallery .sheds-portrait { grid-column: span 3; }
.sheds-gallery .sheds-portrait .gallery-photo { flex: 1; aspect-ratio: 1; }
.sheds-portrait img { position: absolute; inset: 0; object-position: center 33%; }

.about-section { background: var(--paper); }
.about-inner { display: grid; grid-template-columns: minmax(150px, 290px) minmax(0, 670px); justify-content: center; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.about-pga-logo { order: -1; display: grid; place-items: center; min-height: 245px; padding: 1.25rem; background: var(--ivory); border: 1px solid var(--line); }
.about-pga-logo img { width: 148px; height: auto; }
.about-inner h2 { font-size: clamp(3.2rem, 5.5vw, 4.75rem); }
.about-role { margin-top: .6rem; font-size: 1.15rem; font-weight: 700; color: var(--copper); }
.about-bio { margin-top: 1.05rem; max-width: 605px; color: var(--muted); }

.contact-section { background: var(--green); color: var(--ivory); }
.contact-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.contact-inner > div > p:not(.eyebrow) { margin-top: 1.25rem; color: #e0e2d7; max-width: 460px; }
.contact-inner .button { margin-top: 1.6rem; }
.contact-details { padding-top: .5rem; font-style: normal; }
.contact-details div { padding: 1.02rem 0; border-top: 1px solid #727a68; }
.contact-details div:last-child { padding-bottom: 0; }
.contact-details span { display: block; margin-bottom: .2rem; font-weight: 700; font-size: .875rem; color: #e1c38d; }
.contact-details a { font-size: clamp(1rem, 1.65vw, 1.25rem); text-underline-offset: .2em; overflow-wrap: anywhere; }
.contact-details a:hover { color: #e1c38d; }
.contact-details p { color: #e0e2d7; }

.site-footer { background: var(--ivory); }
.footer-inner { min-height: 105px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.1rem 1.5rem; padding-block: 1.35rem; }
.site-footer small { color: var(--muted); font-size: .8125rem; }

.gallery-dialog {
  width: min(94vw, 1120px);
  max-width: none;
  max-height: 96vh;
  padding: 0;
  border: 1px solid #526252;
  color: var(--ivory);
  background: var(--green-deep);
}
.gallery-dialog::backdrop { background: rgb(9 16 12 / .89); }
.dialog-inner { display: grid; gap: .65rem; padding: .75rem; }
.dialog-header, .dialog-controls { display: flex; justify-content: space-between; align-items: center; gap: .65rem; }
.dialog-header p { font-weight: 600; }
.dialog-image { display: block; width: 100%; height: min(70dvh, 780px); object-fit: contain; background: #0b120e; }
.dialog-button { min-height: 44px; padding: .35rem .7rem; border: 1px solid #9ba998; background: transparent; color: var(--ivory); font-size: .9rem; }
.dialog-button:hover { background: var(--ivory); color: var(--green); }
.photo-count { color: #dfe2d8; font-size: .875rem; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 5rem); }
  .hero-picture { left: 42%; }
  .hero::after { background: linear-gradient(90deg, var(--green-dark) 42%, rgb(19 30 23 / .7) 49%, rgb(19 30 23 / .16) 62%, transparent 79%); }
}

@media (max-width: 840px) {
  .header-inner { min-height: 70px; flex-wrap: wrap; column-gap: 1rem; row-gap: 0; }
  .brand-mark { width: 39px; }
  .brand-wordmark { width: 138px; }
  .menu-button:not([hidden]) { display: inline-flex; margin-left: auto; }
  .navigation { width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  .menu-button[aria-expanded="false"]:not([hidden]) + .navigation { display: none; }
  .navigation a:not(.button) { padding: .7rem .1rem; }
  .navigation .button { align-self: flex-start; margin-top: .35rem; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 2.5rem); }
  .hero { min-height: 0; align-items: end; }
  .hero-picture { inset: 0 0 auto; height: clamp(290px, 64vw, 450px); }
  .hero-picture img { object-position: center 46%; }
  .hero::after { background: linear-gradient(180deg, transparent 13%, rgb(19 30 23 / .1) 26%, rgb(19 30 23 / .68) 40%, #131e17 57%); }
  .hero-inner { padding-block: clamp(190px, 38vw, 295px) 2.55rem; }
  .hero h1 { font-size: clamp(4.65rem, 11vw, 6.75rem); line-height: .9; }
  .hero-description { margin-top: 1.15rem; font-size: 1.05rem; }
  .actions { margin-top: 1.45rem; }
  .service-strip-inner { width: 100%; }
  .service-strip a { min-height: 84px; }
  .service-strip span { font-size: clamp(1.15rem, 3.5vw, 1.6rem); }
  .service-strip small { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: .8rem; margin-bottom: 1.6rem; }
  .section-heading p { justify-self: start; margin-bottom: 0; }
  .gallery-grid { gap: 1.15rem .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-feature { grid-column: span 2; grid-row: auto; }
  .gallery-feature .gallery-photo { aspect-ratio: 1.15; }
  .gallery-side { grid-column: auto; }
  .gallery-side .gallery-photo { aspect-ratio: 4 / 3; }
  .gallery-expand { width: 1.65rem; height: 1.65rem; right: .45rem; bottom: .45rem; }
  .service-layout, .contact-inner { grid-template-columns: 1fr; }
  .sheds-heading > div { justify-self: start; }
  .sheds-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem .75rem; }
  .sheds-gallery .gallery-tile { grid-column: auto; }
  .sheds-gallery .gallery-tile:first-child, .sheds-gallery .sheds-lounge { grid-column: span 2; }
  .about-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-pga-logo { order: 0; justify-self: start; min-height: 0; padding: .75rem; }
  .about-pga-logo img { width: 110px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer nav { flex-wrap: wrap; gap: .75rem 1.15rem; }
}

@media (max-width: 390px) {
  .shell { width: calc(100% - 2rem); }
  .hero .hero-eyebrow { font-size: .75rem; letter-spacing: .095em; }
  .hero-eyebrow span { width: .65rem; }
  .hero h1 { font-size: clamp(3.65rem, 18.5vw, 4.65rem); }
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .actions .button { padding-inline: .45rem; font-size: .875rem; }
}

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