/* Lakeview Brands — Lake Mist Editorial
   Cool fog atmosphere, Instrument Serif brand, Bricolage grotesque UI.
   Tokens first; components second. Light is the designed surface. */

:root {
  /* Light magazine surface is the designed look — no auto dark washout. */
  color-scheme: only light;
  --fog: #e4eef4;
  --mist: #c5d9e6;
  --paper: #f3f7fa;
  --ink: #0c1520;
  --muted: #4a5a68;
  --rule: color-mix(in oklab, #123456 14%, transparent);
  --lake: #123456;
  --signal: #0d7a6f;
  --on-lake: #f3f7fa;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 12% -10%, var(--mist) 0%, transparent 55%),
    radial-gradient(90% 60% at 88% 8%, color-mix(in oklab, var(--lake) 12%, transparent) 0%, transparent 50%),
    linear-gradient(180deg, var(--fog) 0%, var(--paper) 42%, var(--fog) 100%);
  background-attachment: fixed;
  font: 400 1.0625rem/1.65 var(--sans);
  font-optical-sizing: auto;
}

/* Subtle lake-wave grain — atmosphere, not decoration-as-content */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='80' viewBox='0 0 240 80'%3E%3Cpath fill='none' stroke='%23123456' stroke-opacity='0.07' stroke-width='1' d='M0 40c30-18 50-18 80 0s50 18 80 0 50-18 80 0'/%3E%3Cpath fill='none' stroke='%23123456' stroke-opacity='0.05' stroke-width='1' d='M0 56c30-14 50-14 80 0s50 14 80 0 50-14 80 0'/%3E%3C/svg%3E");
  background-size: 240px 80px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--lake);
  color: var(--on-lake);
  font: 600 0.875rem/1 var(--sans);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Masthead ——— */
.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
}
.mast-mark {
  font: 400 1.125rem/1 var(--display);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.mast-mark:hover { color: var(--lake); }
.mast-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font: 500 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.02em;
}
.mast-nav a {
  color: var(--muted);
  text-decoration: none;
}
.mast-nav a:hover { color: var(--lake); text-decoration: underline; text-underline-offset: 0.18em; }

/* ——— Hero: one composition ——— */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(92vh, 56rem);
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  transform: scale(1.06);
  animation: mist-drift 32s var(--ease) infinite alternate;
  overflow: hidden;
}
.hero-plane img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% top;
  filter: saturate(1.05) contrast(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Solid type stage on the left; photograph reads on the right — still one full-bleed plane underneath. */
  background:
    linear-gradient(90deg,
      #f3f7fa 0%,
      #f3f7fa 38%,
      rgba(243, 247, 250, 0.82) 48%,
      rgba(228, 238, 244, 0.35) 62%,
      rgba(228, 238, 244, 0.08) 78%,
      transparent 100%),
    linear-gradient(180deg,
      rgba(228, 238, 244, 0.55) 0%,
      transparent 22%,
      transparent 70%,
      #f3f7fa 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
  margin: 0;
  padding: var(--space-8) var(--space-5) var(--space-7);
  animation: rise 0.7s var(--ease) both;
}
.brand-lockup {
  margin: 0 0 0.28em;
  font: 400 clamp(3.25rem, 12vw, 6.75rem)/0.9 var(--display);
  letter-spacing: -0.035em;
  color: #123456;
  text-wrap: balance;
}
.hero-copy h1 {
  margin: 0 0 0.65em;
  font: 600 clamp(1.2rem, 2.4vw, 1.625rem)/1.3 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 22ch;
}
.hero-support {
  margin: 0 0 1.5rem;
  max-width: 34ch;
  font: 400 1.0625rem/1.55 var(--sans);
  color: var(--muted);
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  font: 600 0.9375rem/1 var(--sans);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 0.2rem;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-primary {
  background: #123456;
  color: #f3f7fa;
  border: 1px solid #123456;
}
.btn-primary:hover { background: #0d2740; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--ink) 28%, transparent);
}
.btn-ghost:hover {
  border-color: var(--lake);
  color: var(--lake);
}

@keyframes mist-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-plane { animation: none; transform: none; }
  .hero-copy { animation: none; }
  .folio .chapter { animation: none; }
}

@media (max-width: 40rem) {
  .hero { min-height: min(88vh, 40rem); }
  .masthead { flex-wrap: wrap; }
  .mast-nav { width: 100%; justify-content: flex-start; }
  .brand-lockup { font-size: clamp(2.75rem, 14vw, 3.75rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-plane img { object-position: center top; }
  .hero::after {
    background:
      linear-gradient(180deg,
        rgba(228, 238, 244, 0.35) 0%,
        rgba(243, 247, 250, 0.2) 28%,
        rgba(243, 247, 250, 0.88) 58%,
        var(--paper) 78%,
        var(--paper) 100%);
  }
}

/* ——— Folio / shared wrap ——— */
.folio,
.wrap {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-8);
}
.folio { max-width: 52rem; padding-top: var(--space-5); }

p { margin: 0 0 1.15rem; text-wrap: pretty; }
.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
}
a {
  color: var(--lake);
  text-underline-offset: 0.15em;
}
a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Legacy kicker (inner pages) */
.kicker {
  margin: 0 0 0.75rem;
  font: 600 0.75rem/1.2 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  font: 400 clamp(2.25rem, 6vw, 3.5rem)/1.05 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
.hero-copy h1 {
  /* override page h1 — brand lockup owns display size */
  font: 600 clamp(1.25rem, 2.6vw, 1.75rem)/1.25 var(--sans);
  letter-spacing: -0.02em;
}

h2 {
  font: 600 1.375rem/1.25 var(--sans);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.5rem 0 0.85rem;
  text-wrap: balance;
}

/* Chapter heads — magazine, not SaaS numbered eyebrows */
.section-head {
  display: block;
  margin: var(--space-8) 0 var(--space-4);
  padding: 0;
  font: 400 clamp(1.75rem, 4vw, 2.5rem)/1.1 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}
.section-head::after { content: none; }
.section-head:first-of-type { margin-top: var(--space-5); }
.section-navy,
.section-rust,
.section-gold,
.section-teal {
  --section-accent: var(--lake);
}

.section-intro {
  margin: -0.35rem 0 1.35rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 42rem;
}

.intro-band {
  margin: 0 0 var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  animation: fade-up 0.55s var(--ease) 0.15s both;
}
.density-line {
  margin: 1.25rem 0 0;
  font: 500 0.875rem/1.4 var(--sans);
  letter-spacing: 0.01em;
  color: var(--signal);
}

/* Services CTA band on home — one job, no price tables */
.services-cta {
  margin: 0 0 var(--space-6);
  padding: var(--space-6) 0;
}
.services-cta .section-head { margin-top: 0; }

/* Stat strip: kept for older markup; visually demoted if present below fold */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  border: none;
}
.stat-card {
  padding: 0;
  border: none;
  background: none;
}
.stat-card .n {
  display: inline;
  font: 400 1.125rem/1 var(--display);
  color: var(--lake);
  margin-right: 0.35rem;
}
.stat-card .label {
  font: 500 0.8125rem/1.3 var(--sans);
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

/* ——— Roster: list entries, not cards ——— */
.property-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 var(--space-4);
  counter-reset: none;
}
.property {
  position: relative;
  padding: var(--space-5) 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  transition: none;
}
.property::before { content: none; }
.property:first-child { border-top: 1px solid var(--rule); }
@media (hover: hover) {
  .property:hover {
    transform: none;
    box-shadow: none;
  }
  .property:hover h3 a { color: var(--lake); }
}
.property h3 {
  margin: 0 0 0.35rem;
  font: 600 1.1875rem/1.3 var(--sans);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.property h3 a {
  text-decoration: none;
  color: inherit;
}
.property h3 a:hover { text-decoration: underline; color: var(--lake); }
.property p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 48rem;
}

/* Featured screenshot plates — full-width visual anchors inside chapters */
.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.shots img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  border: none;
  border-radius: 0;
  background: var(--mist);
}

.chapter {
  animation: fade-up 0.5s var(--ease) both;
}

.also {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  padding: 1.1rem 0 0.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.also a { white-space: nowrap; }

.closing {
  margin: var(--space-7) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ——— Services page tiers ——— */
.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin: var(--space-6) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 40rem) {
  .services {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}
.services-offer {
  padding: 0;
  background: transparent;
  border: none;
}
.services-offer h2,
.services-offer h3 {
  margin: 0 0 0.45rem;
  font: 400 1.75rem/1.15 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: none;
}
.services-lede {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.services-tiers {
  margin: 0 0 1rem;
  padding: 0;
}
.services-tiers > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.services-tiers > div:last-child { border-bottom: 1px solid var(--rule); }
.services-tiers dt {
  margin: 0;
  font: 600 0.75rem/1.3 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.services-tiers dd {
  margin: 0;
  color: var(--ink);
}
.services-tiers .price {
  font: 400 1.5rem/1.1 var(--display);
  letter-spacing: -0.02em;
  color: var(--lake);
}
.services-tiers .currency {
  font: 600 0.6875rem/1 var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.services-tiers .alt {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.services-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.services-foot { margin-top: 1.15rem; }

/* Content pages */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  font: 600 0.8125rem/1.2 var(--sans);
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--lake); text-decoration: underline; }
.updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0 0 2rem;
}
.wrap ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
.wrap li { margin: 0 0 0.5rem; }

/* Footer */
.site-footer {
  margin: var(--space-8) calc(-1 * var(--space-5)) calc(-1 * var(--space-8));
  padding: var(--space-6) var(--space-5) var(--space-7);
  background: #123456;
  color: #f3f7fa;
  font: 400 0.9375rem/1.5 var(--sans);
}
.site-footer a { color: inherit; }
.site-footer .signoff {
  margin: 0 0 1.5rem;
  font: italic 400 1.25rem/1.35 var(--display);
  opacity: 0.95;
}
.footer-nav, .footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
}
.footer-nav a, .footer-social a { text-decoration: none; }
.footer-nav a:hover, .footer-social a:hover { text-decoration: underline; }
.footer-social { opacity: 0.85; }
.footer-bottom { margin: 0; opacity: 0.85; }
.site-social { margin: 1rem 0 0; opacity: 0.85; }

/* Guide body */
.guide-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.guide-body th, .guide-body td { border: 1px solid var(--rule); padding: 0.55rem 0.75rem; text-align: left; vertical-align: top; }
.guide-body th { background: color-mix(in oklab, var(--mist) 40%, transparent); color: var(--ink); font-weight: 600; }
.guide-body blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.25rem;
  border-left: 3px solid var(--signal);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.5;
}
.guide-body blockquote p { margin: 0.5rem 0; }
.guide-body blockquote ul, .guide-body blockquote ol { margin: 0.5rem 0 0.5rem 1.25rem; }
.guide-body caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.guide-body blockquote:has(> p > strong:first-child),
.guide-body blockquote:has(> ul),
.guide-body blockquote:has(> ol) {
  font-size: 1rem;
  background: color-mix(in oklab, var(--mist) 35%, transparent);
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border-left-color: var(--lake);
}
@media (max-width: 42rem) {
  .guide-body table { display: block; overflow-x: auto; }
}
