:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --surface: #fdfcf7;
  --ink: #24362a;
  --secondary: #4e5d50;
  --line: #cacfc1;
  --fern: #284535;
  --accent: #826142;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

main { flex: 1; }

button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #326c46; outline-offset: 4px; }
img { display: block; max-width: 100%; }

.frame {
  width: min(1380px, calc(100% - clamp(32px, 8vw, 112px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  left: 12px;
  top: 12px;
  padding: 12px;
  transform: translateY(-160%);
  background: var(--surface);
}

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

.site-header { border-top: 4px solid var(--fern); border-bottom: 1px solid var(--line); }

.header-inner {
  display: flex;
  min-height: 77px;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-block: 12px;
}

.site-id { font-family: var(--serif); text-decoration: none; font-size: clamp(18px, 2.2vw, 28px); white-space: nowrap; }

#site-nav {
  display: flex;
  justify-content: center;
  gap: 12px clamp(14px, 2vw, 34px);
  flex-wrap: wrap;
}

#site-nav a { color: var(--secondary); text-decoration: none; font-size: 14px; }
#site-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid #708276;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.button:hover { background: #e7ece2; }
.button:disabled { cursor: wait; opacity: .65; }
.button-small { min-height: 39px; font-size: 13px; padding: 8px 13px; }
.button-primary { border-color: var(--fern); background: var(--fern); color: #fffdf5; }
.button-primary:hover { background: #1d3727; }

.project-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .65fr);
  align-items: end;
  gap: 25px clamp(28px, 9vw, 145px);
  padding-block: clamp(38px, 6.2vw, 90px) clamp(27px, 4.2vw, 56px);
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: .145em;
  text-transform: uppercase;
  font-weight: 700;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: inherit; }

.project-intro h1 {
  margin: 0;
  font-size: clamp(47px, 7.5vw, 111px);
  letter-spacing: -.056em;
  line-height: .99;
}

.intro-copy { max-width: 430px; }
.intro-copy > p { margin: 0 0 15px; color: var(--secondary); font-size: clamp(15px, 1.45vw, 18px); line-height: 1.6; }
.intro-copy strong { color: var(--ink); }
.intro-copy .access-note { margin: 10px 0 0; font-size: 13px; color: var(--secondary); }

.estate-hero { background: #263b2e; }
.estate-hero img {
  width: 100%;
  height: auto;
  max-height: 76svh;
  object-fit: contain;
}

.estate-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 19px clamp(28px, 7vw, 98px);
  padding-block: clamp(25px, 4.3vw, 60px);
  border-bottom: 1px solid var(--line);
}

.estate-intro h1 {
  margin: 0;
  font-size: clamp(46px, 6.8vw, 106px);
  line-height: .96;
  letter-spacing: -.058em;
}

.estate-intro p {
  max-width: 525px;
  margin: 13px 0 0;
  color: var(--secondary);
  font-size: clamp(15px, 1.28vw, 18px);
  line-height: 1.55;
}

.estate-intro strong { color: var(--ink); }
.estate-access p { max-width: 250px; margin-top: 9px; font-size: 13px; }
.panorama-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 10px; min-height: 34px; font-size: 14px; font-weight: 600; text-underline-offset: 4px; }

.locked-section, .collection { margin-block: clamp(30px, 5vw, 74px); scroll-margin-top: 15px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 9px 22px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 { font-size: clamp(29px, 4.1vw, 54px); letter-spacing: -.038em; line-height: 1.05; margin: 0; }
.section-heading p { margin: 0; color: var(--secondary); font-size: 13px; line-height: 1.5; }

.locked-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.locked-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 1px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.lock-icon { display: inline-block; width: 12px; height: 10px; position: relative; border: 1px solid var(--secondary); flex: 0 0 12px; }
.lock-icon::before { content: ""; position: absolute; width: 6px; height: 6px; bottom: 100%; left: 2px; border: 1px solid var(--secondary); border-bottom: 0; border-radius: 4px 4px 0 0; }

.notice-wrap { padding-top: 16px; }
.notice-wrap p { margin: 0; padding: 10px 14px; background: #ebe5d5; border-left: 3px solid var(--accent); color: #513a25; line-height: 1.5; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  align-items: stretch;
  background: #283e32;
  color: #fffdf6;
}

.feature-img { width: 100%; height: 100%; max-height: 440px; min-height: 290px; object-fit: cover; }
.feature-text { align-self: center; padding: clamp(23px, 4.8vw, 72px); }
.feature-text .eyebrow { color: #ded0a9; }
.feature-text h2 { margin: 0; font-size: clamp(40px, 4.2vw, 59px); line-height: 1; letter-spacing: -.04em; }
.feature-text > p:not(.eyebrow) { color: #e3e8df; font-size: 15px; line-height: 1.55; }
.feature-text .button { border-color: #c4d0c4; color: #fffdf5; }
.feature-text .button:hover { background: #385743; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; margin-top: 24px; }

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.card-media { display: block; width: 100%; height: auto; aspect-ratio: 1.68; padding: 0; object-fit: cover; background: #e9eae0; }
.card[data-category="plans"] .card-media, .card[data-category="site"] .card-media.is-drawing { object-fit: contain; }

.card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 16px 16px 18px; }
.card-meta { margin: 0 0 7px; color: var(--accent); font-size: 12px; font-weight: 650; }
.card h3 { margin: 0; font-size: clamp(23px, 2.64vw, 34px); letter-spacing: -.024em; line-height: 1.1; }
.card-description { margin: 8px 0 14px; color: var(--secondary); font-size: 14px; line-height: 1.5; }
.card-link { min-height: 38px; display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 650; font-size: 14px; text-underline-offset: 4px; }

.viewer-page { padding-block: 22px clamp(32px, 5vw, 68px); }
.back-link { display: inline-flex; align-items: center; min-height: 42px; color: var(--secondary); text-underline-offset: 4px; font-size: 14px; }
.viewer-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 30px; margin-block: 18px 22px; }
.viewer-heading h1 { margin: 0; font-size: clamp(37px, 6.2vw, 82px); letter-spacing: -.05em; line-height: .995; }
.viewer-heading p:last-child { margin: 11px 0 0; color: var(--secondary); line-height: 1.5; }
.viewer-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }
.viewer-content { background: #e4e9dc; border: 1px solid var(--line); }
.viewer-content iframe { display: block; width: 100%; height: clamp(430px, 76vh, 1080px); border: 0; background: var(--surface); }
.viewer-content > img { width: 100%; max-height: 90vh; object-fit: contain; }
.viewer-content > p { margin: 18px; color: var(--secondary); line-height: 1.5; }
.viewer-content > p a { text-underline-offset: 3px; }

.site-footer { display: flex; min-height: 65px; align-items: flex-end; justify-content: flex-end; padding: 18px 0 14px; border-top: 1px solid var(--line); }
.site-footer img { width: clamp(45px, 5vw, 72px); height: auto; }

@media (max-width: 930px) {
  .header-inner:has(#site-nav:not([hidden])) { flex-wrap: wrap; }
  #site-nav { order: 3; justify-content: flex-start; width: 100%; }
  .project-intro { grid-template-columns: 1fr .8fr; gap: 24px; }
  .card-grid { gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewer-heading { display: block; }
  .viewer-actions { margin-top: 13px; }
}

@media (max-width: 660px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; }
  .estate-intro, .project-intro { grid-template-columns: 1fr; align-items: start; }
  .locked-list { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-img { min-height: 0; aspect-ratio: 1.55; }
  .viewer-content iframe { min-height: 60vh; }
}

@media (max-width: 420px) {
  .card-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 8px; }
  .locked-list { gap: 4px 12px; }
  .locked-list li { font-size: 13px; }
  .access-note { max-width: 255px; }
}

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