/* Sterling Meadows. Editorial. Place & Permanence. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,30&family=Public+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #F4EEE3;
  --paper-tint: #E8DFCF;
  --ink: #1B1611;
  --ink-soft: #4A4239;
  --brick: #7A2E26;
  --brick-deep: #5C211C;
  --bronze: #A6864E;
  --bronze-deep: #856A3B;
  --bluegrass: #3D4F3A;
  --rule: rgba(27, 22, 17, 0.18);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--brick); text-decoration: none; transition: color 160ms ease; }
a:hover, a:focus-visible { color: var(--brick-deep); text-decoration: underline; text-underline-offset: 0.18em; }
a:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--brick); color: var(--paper); }

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 0.6em;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

h1 {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 350;
  letter-spacing: -0.022em;
  line-height: 0.96;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 350;
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.875rem);
  font-weight: 450;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 30;
  letter-spacing: 0;
}

p { margin: 0 0 1em; max-width: 65ch; }

.lede {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.4;
  color: var(--ink);
  font-variation-settings: "opsz" 36, "SOFT" 50;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 1.25rem;
}

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--bronze);
}
.eyebrow.solo::after { display: none; }
.eyebrow.solo::before { width: 2.5rem; }

.dot { display: inline-block; width: 3px; height: 3px; background: currentColor; border-radius: 50%; margin: 0 0.4em; vertical-align: middle; opacity: 0.55; }

/* LAYOUT */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 880px; }

section { padding: clamp(4rem, 10vw, 8rem) 0; }
section.compact { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
section.tint { background: var(--paper-tint); }
section.dark { background: var(--ink); color: var(--paper); }
section.dark h1, section.dark h2, section.dark h3 { color: var(--paper); }
section.dark .eyebrow { color: var(--bronze); }
section.dark .eyebrow::before, section.dark .eyebrow::after { background: var(--bronze); }
section.dark a { color: var(--paper); }

/* HEADER */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.5rem 0;
}
.site-header.solid {
  position: sticky;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 450;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  font-variation-settings: "opsz" 36, "SOFT" 30;
}
.brand:hover { text-decoration: none; color: inherit; }
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.15rem;
  opacity: 0.72;
}
.site-header.over-hero .brand,
.site-header.over-hero .nav a { color: var(--paper); }
.site-header.over-hero .brand small { opacity: 0.85; }

.nav { display: flex; align-items: center; gap: 2rem; font-family: var(--sans); font-size: 0.9375rem; font-weight: 500; }
.nav a { color: inherit; text-decoration: none; position: relative; padding: 0.25rem 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}
.nav a:hover { text-decoration: none; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

@media (max-width: 768px) {
  .nav { display: none; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 14, 9, 0.85) 0%, rgba(20, 14, 9, 0.45) 35%, rgba(20, 14, 9, 0.15) 65%, rgba(20, 14, 9, 0.55) 100%);
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: clamp(2.5rem, 6vh, 5rem);
  padding-top: clamp(7rem, 14vh, 10rem);
}

.hero__mark {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.92;
  margin-bottom: 1.75rem;
}
.hero__mark::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--bronze);
}

.hero h1 {
  color: var(--paper);
  max-width: 14ch;
  font-weight: 300;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero h1 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--bronze);
}

.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 350;
  font-variation-settings: "opsz" 36, "SOFT" 70;
  line-height: 1.45;
  max-width: 38ch;
  margin: 0 0 2.5rem;
  color: var(--paper);
  opacity: 0.94;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 1;
}
.hero__scroll::after { content: ""; display: block; width: 1px; height: 3rem; background: var(--paper); margin: 0.6rem auto 0; opacity: 0.6; }

@media (max-width: 768px) {
  .hero__scroll { display: none; }
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms ease;
  border-radius: 0;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--brick);
  color: var(--paper);
  border-color: var(--brick);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--brick-deep);
  border-color: var(--brick-deep);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: currentColor;
}
.hero .btn--ghost:hover { color: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
section:not(.dark) .btn--ghost:hover { color: var(--paper); }

.btn__arrow {
  font-family: var(--serif);
  font-size: 1.1em;
  font-style: italic;
  transition: transform 200ms ease;
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* INTRO BAND */
.intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.intro__label { padding-top: 0.75rem; }
.intro h2 { margin-bottom: 1.25rem; max-width: 18ch; }

@media (max-width: 768px) {
  .intro { grid-template-columns: 1fr; gap: 1rem; }
}

/* TWO-COLUMN BAND */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.band--reverse .band__media { order: 2; }
.band__copy h2 { max-width: 14ch; }
.band__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.band__media--wide img { aspect-ratio: 5/4; }

@media (max-width: 768px) {
  .band { grid-template-columns: 1fr; gap: 2rem; }
  .band--reverse .band__media { order: 0; }
}

/* SERVICES GRID */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 3rem;
}
.service {
  background: var(--paper);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
section.tint .service { background: var(--paper-tint); }
.service__num {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--bronze-deep);
  margin-bottom: 0.5rem;
}
.service h3 { margin-bottom: 0.4rem; }
.service p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 768px) {
  .services { grid-template-columns: 1fr; }
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.75rem;
  margin-top: 3rem;
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figure:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.gallery figure:nth-child(2) { grid-column: span 5; aspect-ratio: 4/3; }
.gallery figure:nth-child(3) { grid-column: span 5; aspect-ratio: 4/5; }
.gallery figure:nth-child(4) { grid-column: span 7; aspect-ratio: 4/5; }

@media (max-width: 768px) {
  .gallery figure { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
}

/* STATS / NUMBERS STRIP */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  background: var(--paper);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
section.tint .stat { background: var(--paper-tint); }
.stat__num {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-variation-settings: "opsz" 144, "SOFT" 80;
  line-height: 1;
  color: var(--brick);
  letter-spacing: -0.02em;
  display: block;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* TEAM */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.member { display: flex; flex-direction: column; }
.member__role { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bronze-deep); margin-bottom: 0.4rem; }
.member__name { font-family: var(--serif); font-size: 1.375rem; font-weight: 400; font-variation-settings: "opsz" 36, "SOFT" 30; margin-bottom: 0.5rem; }
.member__bio { font-size: 0.95rem; color: var(--ink-soft); }

@media (max-width: 768px) {
  .team { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

/* CTA STRIP */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.cta-strip__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2.5rem;
  align-items: center;
}
.cta-strip h2 { color: var(--paper); margin: 0; max-width: 22ch; }
.cta-strip__actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.cta-strip__phone { font-family: var(--serif); font-size: 1.5rem; color: var(--bronze); font-variation-settings: "opsz" 36, "SOFT" 50; }
.cta-strip__phone:hover { color: var(--paper); }

@media (max-width: 768px) {
  .cta-strip__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* FLOOR PLAN GRID */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}
.fp-card {
  background: var(--paper);
  border: 1px solid var(--rule);
}
.fp-card__img { background: var(--paper-tint); padding: 1rem; }
.fp-card__img img { width: 100%; height: auto; }
.fp-card__body { padding: 1.5rem 1.75rem 2rem; }
.fp-card__num { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.2em; color: var(--bronze-deep); margin-bottom: 0.4rem; }
.fp-card__title { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.5rem; font-variation-settings: "opsz" 36, "SOFT" 30; }

@media (max-width: 768px) {
  .fp-grid { grid-template-columns: 1fr; }
}

/* AMENITIES LIST */
.amenities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}
.amenity-list { list-style: none; padding: 0; margin: 0; }
.amenity-list li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.0625rem;
  display: flex;
  gap: 1rem;
  align-items: baseline;
}
.amenity-list li::before {
  content: counter(am, decimal-leading-zero);
  counter-increment: am;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--bronze-deep);
  min-width: 2.5rem;
}
.amenity-list { counter-reset: am; }

@media (max-width: 768px) {
  .amenities { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* FORM */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem; max-width: 720px; }
.form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.form__input, .form__textarea, .form__select {
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0;
  transition: border-color 160ms ease;
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--brick);
}
.form__textarea { min-height: 7rem; resize: vertical; }
.form__submit { grid-column: 1 / -1; justify-self: start; }
.form__note { grid-column: 1 / -1; font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--ink-soft); }

@media (max-width: 768px) {
  .form { grid-template-columns: 1fr; }
}

/* CONTACT INFO */
.nap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 3rem 0;
}
.nap__group dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-deep);
  margin-bottom: 0.6rem;
}
.nap__group dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.4;
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
.nap__group dd a { color: var(--ink); }
.nap__group dd a:hover { color: var(--brick); }

@media (max-width: 768px) {
  .nap { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--bronze); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; color: var(--paper); margin: 0 0 0.5rem; }
.footer-brand p { color: rgba(244, 238, 227, 0.7); font-size: 0.9375rem; max-width: 32ch; }
.footer-col h4 { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); font-weight: 500; margin: 0 0 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 0.3rem 0; font-size: 0.9375rem; }
.footer-bottom {
  border-top: 1px solid rgba(244, 238, 227, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 238, 227, 0.6);
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* PAGE HEADERS (non-home) */
.page-header {
  background: var(--paper-tint);
  padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule);
}
.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 350;
  max-width: 18ch;
  margin: 0;
}
.page-header__lede { margin-top: 1.25rem; max-width: 50ch; }

/* UTILS */
.flow > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.divider { border: 0; height: 1px; background: var(--rule); margin: clamp(3rem, 6vw, 5rem) 0; }

/* MOTION: subtle entrance for hero on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__mark, .hero h1, .hero__sub, .hero__cta { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__mark { animation-delay: 100ms; }
  .hero h1 { animation-delay: 220ms; }
  .hero__sub { animation-delay: 380ms; }
  .hero__cta { animation-delay: 520ms; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PRINT */
@media print {
  .site-header, .site-footer, .hero__scroll, .cta-strip { display: none; }
  body { background: white; color: black; }
}
