/* ============================================================
   Ocean Mist Living — design system
   Light, airy coastal minimalism. Sea glass + cream.
   Cormorant Garamond (display serif) + Mulish (sans body)
   ============================================================ */

:root {
  /* --- palette: sea glass + cream (default theme) --- */
  --sand:        #F3EFE6;  /* page background, warm linen */
  --sand-2:      #ECE6D9;  /* alt section background */
  --paper:       #FBFAF5;  /* cards / surfaces */
  --paper-2:     #FFFFFF;

  --sea:         #9DBEB4;  /* sea glass, soft green-blue */
  --sea-soft:    #C8DAD3;  /* light sea glass wash */
  --sea-deep:    #5E867E;  /* buttons / links / deeper */
  --sea-deeper:  #46665F;  /* hover */
  --sea-tint:    #E4EDE9;  /* faint wash backgrounds */

  --ink:         #2C3A38;  /* primary text, deep slate */
  --ink-soft:    #3D4D4A;
  --muted:       #6E7B77;  /* secondary text */
  --faint:       #9AA5A1;  /* tertiary / captions */
  --line:        #E2DCCF;  /* warm hairline borders */
  --line-soft:   #EDE8DC;

  --shell:       #D9B98C;  /* warm shell/driftwood accent (sparing) */

  /* fonts (overridable via tweaks) */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body:    "Mulish", system-ui, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 3px;

  --shadow-sm: 0 1px 3px rgba(44,58,56,0.05);
  --shadow:    0 12px 40px -18px rgba(44,58,56,0.22);
  --shadow-lg: 0 30px 80px -30px rgba(44,58,56,0.30);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- theme: navy & brass ---- */
[data-theme="navy"] {
  --sand:        #EEF1F2;
  --sand-2:      #E4E9EB;
  --paper:       #FBFCFC;
  --paper-2:     #FFFFFF;
  --sea:         #5B7A93;
  --sea-soft:    #B9C9D4;
  --sea-deep:    #28435A;
  --sea-deeper:  #1B3146;
  --sea-tint:    #E3EAEF;
  --ink:         #1B2A38;
  --ink-soft:    #2A3C4C;
  --muted:       #5E6E7B;
  --faint:       #93A0AA;
  --line:        #D6DEE3;
  --line-soft:   #E6ECEF;
  --shell:       #B8945A;
}

/* ---- theme: warm sand (driftwood) ---- */
[data-theme="sand"] {
  --sand:        #F0E8DA;
  --sand-2:      #E7DCC9;
  --paper:       #FBF7EF;
  --paper-2:     #FFFFFF;
  --sea:         #B9A689;
  --sea-soft:    #DACBB1;
  --sea-deep:    #8A7251;
  --sea-deeper:  #6E5A3D;
  --sea-tint:    #EDE3D2;
  --ink:         #352C20;
  --ink-soft:    #483D2D;
  --muted:       #7A6E5C;
  --faint:       #A89B85;
  --line:        #E0D4BF;
  --line-soft:   #ECE3D3;
  --shell:       #C58E63;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

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

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--sea-soft); color: var(--ink); }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1560px; margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--sea-deep);
}
.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-size: clamp(40px, 6.2vw, 92px);
  line-height: 0.98;
  font-weight: 500;
}
.h-section {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--sea-deep); color: #fff; }
.btn-primary:hover { background: var(--sea-deeper); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }

.btn-block { width: 100%; }
.btn-lg { padding: 19px 38px; }

/* link with underline-grow */
.link-u {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 3px;
  color: var(--ink);
}
.link-u::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.link-u:hover::after { transform: scaleX(0); transform-origin: left; }

/* ---------- placeholder imagery ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--sea-tint);
  display: flex;
  align-items: flex-end;
}
.ph-label {
  position: absolute;
  left: 14px; bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(44,58,56,0.45);
  background: rgba(255,255,255,0.55);
  padding: 4px 8px;
  border-radius: 2px;
  backdrop-filter: blur(2px);
}

/* divider */
.rule { height: 1px; background: var(--line); border: 0; }

/* fade-up on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* utility */
.muted { color: var(--muted); }
.center { text-align: center; }
.flow > * + * { margin-top: 1em; }

/* scrollbar (subtle) */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 20px; border: 3px solid var(--sand); }
::-webkit-scrollbar-thumb:hover { background: var(--faint); }
