/* VineyardHomes: editorial coastal site. Static, dependency-free (fonts via link). */
:root {
  --paper: #efe9db;
  --paper-raise: #f6f1e6;
  --band: #e6ded0;
  --ink: #16242a;
  --ink-2: #33444a;
  --ink-soft: #6c7a7d;
  --sea: #1d4d5b;
  --sea-deep: #143b47;
  --sea-text: #eee5d4;
  --brass: #b07d33;
  --line: rgba(22, 36, 42, 0.16);
  --line-soft: rgba(22, 36, 42, 0.09);
  --maxw: 1140px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 18px;
}
.eyebrow.light { color: #e3b878; }

/* ---------- Header ---------- */
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.brand svg { display: block; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500;
  margin-left: 26px; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--ink); transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 28px 72px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 26px;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
}
.hero h1 em {
  font-style: italic; font-weight: 400; color: var(--sea);
}
.hero-sub {
  font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); max-width: 30ch;
  margin: 0 0 30px; line-height: 1.5;
}
.hero-meta { font-size: 15px; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.soon {
  font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  background: var(--paper-raise);
}
.hero-meta .dot { color: var(--brass); }

.hero-media { display: flex; justify-content: center; }

/* ---------- Device ---------- */
.device {
  width: min(256px, 66vw);
  border-radius: 44px;
  padding: 8px;
  background: linear-gradient(165deg, #2a3a3d, #151f1e);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 44px 80px -42px rgba(20, 36, 42, 0.55),
    0 16px 36px -22px rgba(20, 36, 42, 0.38);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.device:hover { transform: translateY(-5px); }
.device img {
  width: 100%;
  height: auto; /* native 460x1000 ratio preserved; no crop, no squeeze */
  display: block;
  border-radius: 37px;
}
.device--sea {
  box-shadow: 0 44px 80px -42px rgba(0, 0, 0, 0.55), 0 16px 36px -22px rgba(0, 0, 0, 0.42);
}

/* ---------- Stat strip ---------- */
.stats {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--band);
}
.stats-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 28px;
  display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 64px);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat b {
  display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 4vw, 38px);
  line-height: 1; color: var(--ink); letter-spacing: -0.01em;
}
.stat span { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.stats .sep { width: 1px; height: 38px; background: var(--line); }

/* ---------- Island band (color block) ---------- */
.island { background: var(--sea); color: var(--sea-text); overflow: hidden; }
.island-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 84px 28px;
  display: grid; grid-template-columns: 1fr 0.8fr; gap: 48px; align-items: center;
}
.island h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.6vw, 50px);
  line-height: 1.04; letter-spacing: -0.02em; margin: 0 0 22px; color: #fff;
}
.island p { color: rgba(238, 229, 212, 0.82); font-size: 18px; max-width: 46ch; margin: 0; }
.island-media { display: flex; justify-content: center; }

/* ---------- Features (editorial) ---------- */
.features { max-width: var(--maxw); margin: 0 auto; padding: 84px 28px; }
.features > .eyebrow { text-align: left; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.feat {
  padding: 30px 0; border-top: 1px solid var(--line-soft);
}
.feat .num {
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--brass);
}
.feat h3 {
  font-family: var(--serif); font-weight: 500; font-size: 25px; letter-spacing: -0.01em;
  margin: 6px 0 10px; color: var(--ink);
}
.feat p { margin: 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.55; max-width: 40ch; }

/* ---------- Powered ---------- */
.powered { border-top: 1px solid var(--line); background: var(--paper-raise); }
.powered-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 28px; text-align: center; }
.powered-line {
  font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3; letter-spacing: -0.01em; margin: 10px auto 0; max-width: 24ch; color: var(--ink);
}
.powered-line a { color: var(--sea); text-decoration: none; border-bottom: 1.5px solid var(--brass); padding-bottom: 1px; }
.powered-line a:hover { color: var(--sea-deep); }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line); padding: 44px 28px;
  max-width: var(--maxw); margin: 0 auto; text-align: center;
}
.foot-brand { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.foot nav a { text-decoration: none; color: var(--ink-soft); margin: 0 12px; font-size: 15px; }
.foot nav a:hover { color: var(--ink); }
.foot .fine { margin-top: 16px; font-size: 13px; color: var(--ink-soft); line-height: 1.6; }

/* ---------- Content pages (privacy / support) ---------- */
.page-head {
  max-width: 720px; margin: 0 auto; padding: 24px 28px 8px;
}
.content { max-width: 720px; margin: 0 auto; padding: 12px 28px 80px; }
.content h1 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 8px;
}
.content .updated { color: var(--ink-soft); font-size: 14px; letter-spacing: 0.04em; margin: 0 0 32px; }
.content h2 {
  font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: -0.01em;
  margin: 38px 0 10px;
}
.content h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; margin: 28px 0 6px; }
.content p, .content li { color: var(--ink-2); font-size: 17px; line-height: 1.68; }
.content a { color: var(--sea); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.content ul { padding-left: 20px; }
.content li { margin: 8px 0; }
.content li strong { color: var(--ink); }
.callout {
  background: var(--paper-raise); border: 1px solid var(--line); border-left: 3px solid var(--sea);
  border-radius: 4px; padding: 18px 20px; margin: 22px 0; color: var(--ink-2); font-size: 16.5px;
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise 0.85s cubic-bezier(0.2, 0.75, 0.2, 1) forwards; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.27s; } .d4 { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; }
  .device { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 20px; text-align: left; }
  .hero-media { order: -1; }
  .device { transform: none; width: min(260px, 64vw); }
  .island-inner { grid-template-columns: 1fr; padding: 60px 28px; gap: 36px; }
  .island-media { order: -1; }
  .device--sea { transform: none; }
  .features-grid { grid-template-columns: 1fr; gap: 0; }
  .features, .powered-inner { padding-top: 60px; padding-bottom: 60px; }
}
