@font-face {
  font-family: "NCC Text";
  src: url("../atlas/geist-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "NCC Text";
  src: url("../atlas/geist-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "NCC Display";
  src: url("../../apple-valley-estates/estate/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --site-copy: "NCC Text", "Helvetica Neue", Arial, sans-serif;
  --os-frame: light-dark(#262822, #171915);
  --os-frame-ink: light-dark(#f7f4ed, #f5f3eb);
  --os-frame-soft: light-dark(#d8d8cd, #d2d3c8);
  --os-canvas: light-dark(#f4f1e9, #1a1c19);
  --os-panel: light-dark(#faf8f2, #20231f);
  --os-card: light-dark(#fffef9, #282b25);
  --os-well: light-dark(#e8e7dc, #2a2e27);
  --os-text: light-dark(#292b25, #f4f2ea);
  --os-muted: light-dark(#51574b, #c1c7bb);
  --os-rule: light-dark(#cccec2, #454a40);
  --os-primary: light-dark(#34392e, #e6e6d9);
  --os-primary-hover: light-dark(#252a21, #faf9f0);
  --os-primary-ink: light-dark(#fffef6, #22261e);
  --os-focus: light-dark(#36513e, #e0cf99);
  --os-indicator: light-dark(#806537, #cdb27a);
  --os-selected: light-dark(#e8ebde, #34392e);
  --os-selected-ink: light-dark(#3f4b38, #e1e8d8);
  --paper: var(--os-panel);
  --ink: var(--os-text);
  --copy: var(--os-muted);
  --muted: var(--os-muted);
  --rule: var(--os-rule);
}
:root[data-theme="light"] { color-scheme:light; }
:root[data-theme="dark"] { color-scheme:dark; }
body,body.properties-page { background-color:var(--os-canvas); color:var(--os-text); }
body:has(> .site-mast) { font-family: var(--site-copy); }
:where(main, footer) p { text-wrap: pretty; }
::selection { background: var(--os-primary); color: var(--os-primary-ink); }

/* On dark frames NCCOS reverses its primary button to the same warm white as its type. */
.button,.profile-action,.film-hero .film-action {
  background:var(--os-primary); color:var(--os-primary-ink); border-color:var(--os-primary);
}
.button:hover,.profile-action:hover,.film-hero .film-action:hover {
  background:var(--os-primary-hover); color:var(--os-primary-ink);
}
:is(.film-hero,.profile-hero,.visit) :is(.button,.film-action,.profile-action) {
  background:var(--os-frame-ink); color:var(--os-frame); border-color:var(--os-frame-ink);
}
:is(.film-hero,.profile-hero,.visit) :is(.button,.film-action,.profile-action):hover {
  background:var(--ncc-stone); color:var(--os-frame); border-color:var(--ncc-stone);
}
.sanctuary-hero .profile-action { padding-inline:1.05rem; }
body > .cinema-mast {
  background:linear-gradient(180deg,color-mix(in srgb,var(--os-frame) 93%,transparent),color-mix(in srgb,var(--os-frame) 62%,transparent) 70%,transparent);
}
body.properties-page > .cinema-mast,.property-profile .profile-mast,.explorer-page > header,
.review-page .concept-bar {
  background:var(--os-frame); color:var(--os-frame-ink);
}
.cinema-mast .cinema-menu-panel,.profile-switcher ul { background:var(--os-panel); color:var(--os-text); border-color:var(--os-rule); }
body .cinema-mast .cinema-menu-panel nav a { color:var(--os-text); }
.cinema-mast .cinema-menu-panel nav a:is(:hover,:focus-visible),.profile-switcher li a:hover { color:var(--os-text); }
.profile-mast nav span,.profile-footer span,.text-action span,.explorer-page header .home span { color:inherit; }
.profile-switcher summary::after { border-color:currentColor; }
.profile-mast nav a:hover { text-decoration-color:currentColor; }
.property-profile .edition-label::before,.film-location::before,.eyebrow i,:is(.eyebrow,.kicker) .line,
.explorer-page aside > .eyebrow::before { background:currentColor; opacity:.65; }
.estate-meta span,.explorer-page aside .eyebrow,.falcon-comparison figcaption { color:var(--os-muted); }
.eyebrow.light { color:var(--os-frame-soft); }
.profile-switcher summary,.profile-switcher summary::after { color:var(--os-frame-soft); }
.light-control input { accent-color:var(--os-frame-ink); }
.cinema-mast .cinema-primary a[aria-current] { text-decoration-color:var(--os-indicator); }
.build-rule::after,.walk-stops button::after { background:var(--os-indicator); }
.estate-viewer .viewer-thumbs button[data-current] { border-color:var(--os-indicator); }
.plan-options button[aria-pressed=true] { background:var(--os-selected); color:var(--os-selected-ink); border-color:var(--os-selected-ink); }
.explorer-page .mode button[aria-pressed=true] { background:var(--os-primary); color:var(--os-primary-ink); }
body :is(a,button,summary,[tabindex],input,select,iframe):focus-visible {
  outline:2px solid var(--os-focus); outline-offset:2px; box-shadow:0 0 0 2px var(--os-canvas);
}

/* The archive keeps the paper behind a drawing and the map's printed landscape in both modes. */
:where(:root[data-theme="dark"]) {
  .builder-properties,.profile-study,.review-section,.community,.sanctuary-gallery,.index-page .plan-view,.build-study {
    background:var(--os-panel); color:var(--os-text);
  }
  .estate-entry,.estate-arrow,.estate-meta,.project-meta,.text-action,.sanctuary-compare,
  .sanctuary-compare summary::after,.footer,.field-guide-page .kicker,.field-guide-page .plan-list b,
  .plan-copy .eyebrow,.atlas-model .eyebrow,.section-intro .eyebrow,.review-section .eyebrow,.plan-copy .text-link {
    color:var(--os-text);
  }
  .estate-meta span,.facts dt,#gallery-caption b,.project-meta span,.property-facts dt,
  .explorer-page aside .eyebrow,.field-guide-page figcaption b { color:var(--os-muted); }
  .estate-arrow,.estate-caption,.profile-switcher li + li,.profile-switcher ul { border-color:var(--os-rule); }
  .index-page .visit { color:var(--os-frame-ink); background-color:var(--os-frame); }
  .field-guide-page .guide-scene-copy .kicker { color:var(--os-frame-soft); }
  .index-page .model-card,.index-page .model-card figcaption,.index-page .model-card figcaption a,
  .landmark-index a,.explorer-page aside h1 em,.plan-list a:hover { color:var(--os-text); }
  .landmark-index a:is(:hover,:focus-visible),.plan-list a:hover,.gallery-buttons button:hover { background:var(--os-well); color:var(--os-text); }
  .field-guide-page .guide-plan-list .plan-silhouette { background-color:var(--ncc-surface); }
  .explorer-page aside select,.explorer-page .landmark-photo:not([hidden]) { background:var(--os-card); color:var(--os-text); border-color:var(--os-rule); }
  .explorer-page .landmark-photo small { color:var(--os-muted); }
  .skip { background:var(--os-frame); color:var(--os-frame-ink); }
  .estate-entry:is(:hover,:focus-visible) .estate-arrow { color:var(--os-frame); background:var(--os-frame-ink); }
}
