:root {
  color-scheme: light;
  --ink: #143638;
  --muted: #435c59;
  --paper: #fcfaf4;
  --sand: #eee8da;
  --line: #c9cfc5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #197578; outline-offset: 4px; }
.hero :focus-visible, .footer :focus-visible { outline-color: #f5daac; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 20; transform: translateY(-160%); padding: .5rem 1rem; background: var(--paper); }
.skip:focus { transform: none; }
.shell { max-width: 94rem; padding-inline: var(--side); margin-inline: auto; }
.masthead { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; font: 700 1.22rem/.92 var(--serif); text-decoration: none; flex: none; }
.brand img { width: 2.65rem; height: 2.65rem; }
.navigation { display: flex; align-items: center; gap: clamp(.85rem, 2.5vw, 2.8rem); }
.navigation a { font-size: .92rem; font-weight: 550; text-decoration: none; }
.navigation a:hover, .footer-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.navigation a[aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
.navigation .navigation-accent { border: 1px solid #9aaca4; border-radius: 999px; padding: .6rem 1rem; }
.navigation .navigation-accent[aria-current="page"] { background: var(--ink); color: var(--paper); text-decoration: none; }
.menu { display: none; background: transparent; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; }
.hero { position: relative; isolation: isolate; background: #193c42; color: #fff9ee; }
.hero-picture, .hero::after { position: absolute; inset: 0; }
.hero-picture { z-index: -2; }
.hero-picture img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, rgba(6,28,32,.92), rgba(6,28,32,.75) 25%, rgba(6,28,32,.58) 43%, transparent 76%), linear-gradient(0deg, rgba(6,28,32,.67), transparent 25%); }
.hero-content { min-height: clamp(38rem, calc(100svh - 5rem), 56rem); display: grid; align-items: center; padding-block: 4.5rem; position: relative; }
.hero-copy { max-width: 44rem; }
.eyebrow { font-size: .875rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.hero-label { display: flex; align-items: center; gap: .65rem; color: #f5e3c3; }
.hero-label span { width: 1.8rem; height: 1px; background: currentColor; flex: none; }
.hero h1 { font: 400 clamp(4.5rem, 9.5vw, 10.1rem)/.87 var(--serif); letter-spacing: -.075em; margin: 1.2rem 0 1.55rem; }
em { font-weight: inherit; }
.hero h1 em { color: #f5d9ae; }
.hero-description { font-size: clamp(1rem, 2vw, 1.26rem); line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 650; font-size: .94rem; border-radius: 99px; padding: .85rem 1.45rem; }
.button-light { margin-top: 2rem; background: #f4e3c2; color: #163332; }
.button-light:hover { background: #fff7e6; }
.hero-caption { position: absolute; bottom: 1.2rem; right: var(--side); font-size: .825rem; }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.page-title, h2 { font: 400 clamp(2.7rem, 6vw, 6.4rem)/.98 var(--serif); letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-title em, h2 em { color: #496657; }
.inner-page .section { padding-block: clamp(3.2rem, 6vw, 6.25rem); }
.inner-page .page-title + p { max-width: 43rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.075rem, 2vw, 1.28rem); }
.inner-page .plans { min-height: calc(100svh - 5rem); }
.architecture-copy .page-title, .garden .page-title, .plans .page-title, .home-sections h2 { margin-top: .95rem; }
.home-sections h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.section-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: clamp(1.7rem, 4vw, 3.1rem); }
.section-card { display: block; min-height: 10.5rem; padding: clamp(1.05rem, 2.2vw, 2.05rem); background: #e7eee6; border: 1px solid var(--line); text-decoration: none; }
.section-card:nth-child(even) { background: var(--sand); }
.section-card:hover { border-color: var(--ink); }
.section-card:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.section-card h3 { margin-bottom: .6rem; font: 400 clamp(1.4rem, 2.3vw, 2.2rem)/1.08 var(--serif); overflow-wrap: anywhere; }
.section-card p { color: var(--muted); }
.project-photo img { width: 100%; height: auto; aspect-ratio: 2.15; object-fit: cover; }
.next-section { padding-block: clamp(2rem, 5vw, 4rem); background: #e7eee6; border-top: 1px solid var(--line); }
.next-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.1rem 2rem; }
.next-inner h2 { margin-top: .45rem; font-size: clamp(1.95rem, 3.7vw, 3.7rem); }
.button-outline { border: 1px solid var(--ink); }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.ruled { display: flex; align-items: center; gap: .7rem; }
.ruled::before { content: ""; display: block; width: 1.6rem; height: 1px; background: currentColor; flex: none; }
.intro { display: grid; grid-template-columns: minmax(0, .35fr) minmax(0, 1fr); gap: 2rem; }
.intro > .eyebrow { align-self: start; padding-top: .8rem; }
.intro h2 + p { max-width: 43rem; margin-top: 1.5rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.architecture { padding-block: clamp(3rem, 7vw, 7rem); background: var(--sand); }
.architecture-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); align-items: center; gap: clamp(2.3rem, 7vw, 7rem); }
.architecture-photo img { width: 100%; height: auto; aspect-ratio: 4 / 4.5; object-fit: cover; }
.architecture-copy h2, .garden h2, .plans h2 { margin-top: .95rem; }
.architecture-copy > p:not(.eyebrow), .garden-heading > p { margin-top: 1.4rem; max-width: 33rem; color: var(--muted); font-size: 1.075rem; }
.materials { list-style: none; padding: 0; margin: 1.75rem 0 0; max-width: 30rem; }
.materials li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-top: 1px solid #b9bfb1; }
.sample { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 1px solid #718a81; }
.stone { background: #dccbb0; }
.bronze { background: #635748; }
.glass { background: #b7cbc4; }
.garden-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; align-items: end; }
.garden-photo { margin-top: clamp(2rem, 4vw, 3.5rem); }
.garden-photo img { width: 100%; height: auto; aspect-ratio: 2.08; object-fit: cover; }
figcaption { margin-top: .65rem; color: var(--muted); font-size: .875rem; }
.plans { background: #e7eee6; }
.plans-intro { max-width: 37rem; margin: 1.2rem 0 1.7rem; color: var(--muted); font-size: 1.075rem; }
.plan-controls { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.plan-controls button { border: 1px solid #82978a; background: transparent; border-radius: 99px; padding: .55rem 1rem; cursor: pointer; font-weight: 600; }
.plan-controls button:hover { background: #d3e2d5; }
.plan-controls button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.plan-grid { display: grid; gap: 1rem; }
.plan { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); align-items: stretch; background: var(--paper); border: 1px solid #bdc9bc; }
.plan-text { padding: clamp(1.25rem, 4.5vw, 4.5rem); align-self: center; }
.plan h3 { margin: .55rem 0 .85rem; font: 400 clamp(2.2rem, 4.6vw, 4.6rem)/1 var(--serif); letter-spacing: -.045em; }
.plan-text > p:not(.eyebrow) { color: var(--muted); }
.plan ul { padding-left: 1.1rem; margin: 1.2rem 0 0; }
.plan-drawing { min-height: 19rem; display: grid; place-items: center; padding: clamp(.85rem,3vw,2.5rem); background: #f0eee3; }
.plan-drawing svg { width: min(100%, 34rem); height: auto; }
.plan-drawing text { fill: var(--ink); font: 13px var(--sans); text-anchor: middle; }
.living { fill: #e5e9d8; }
.bed { fill: #dedcc5; }
.hall { fill: #f7eedc; }
.wash { fill: #d4e5e0; }
.walls { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.window { fill: none; stroke: #43868b; stroke-width: 5; }
.footer { background: #143638; color: #f8f3e7; padding-block: 2.2rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr auto; gap: 1.6rem; align-items: center; }
.footer p { color: #d0ded3; max-width: 38rem; font-size: .875rem; }
.footer-link { white-space: nowrap; text-decoration: none; font-size: .9rem; }

@media (max-width: 750px) {
  html { scroll-padding-top: 4.75rem; }
  .masthead-inner { min-height: 4.25rem; flex-wrap: wrap; gap: .6rem; }
  .brand { font-size: 1.08rem; }
  .brand img { width: 2.25rem; height: 2.25rem; }
  .navigation { width: 100%; flex-wrap: wrap; gap: .65rem 1rem; padding-bottom: .8rem; }
  .has-menu .menu { display: inline-block; }
  .has-menu .navigation { display: none; }
  .has-menu .navigation.is-open { display: flex; flex-direction: column; align-items: stretch; padding-block: .5rem 1rem; gap: 0; }
  .has-menu .navigation a { padding: .6rem 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
  .has-menu .navigation a[aria-current="page"] { background: transparent; color: var(--ink); text-decoration: underline; }
  .hero-content { min-height: clamp(36rem, calc(94svh - 4.25rem), 46rem); align-items: end; }
  .hero::after { background: linear-gradient(0deg, rgba(6,28,32,.99), rgba(6,28,32,.85) 27%, rgba(6,28,32,.71) 47%, rgba(6,28,32,.32) 70%, transparent 90%); }
  .hero h1 { font-size: clamp(4rem, 16vw, 7rem); }
  .hero-label { font-size: .82rem; letter-spacing: .08em; }
  .hero-caption { left: var(--side); right: auto; }
  .intro, .architecture-grid, .garden-heading, .plan { grid-template-columns: 1fr; }
  .intro, .garden-heading { gap: .8rem; }
  .architecture-photo { order: 2; }
  .architecture-photo img { aspect-ratio: 5 / 4; }
  .garden-heading > p { margin-top: .35rem; }
  .garden-photo img { aspect-ratio: 5 / 4; }
  .plan-drawing { min-height: 0; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer p { grid-column: 1 / -1; grid-row: 2; }
  .section-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-card { min-height: auto; }
  .project-photo img { aspect-ratio: 5 / 4; object-position: 76% center; }
}

@media (max-width: 370px) { .section-links { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
