/* ───────────────────────────────────────────────
   bydelaney.com — design tokens & base styles
   Warm NorCal boutique. Plenty of whitespace.
   ─────────────────────────────────────────────── */

:root {
  /* Palette — berry/rose feminine-but-powerful */
  --cream: #FAF7F2;
  --cream-deep: #F2EDE2;
  --cream-edge: #E8E1D2;
  --sage: #A8B5A0;
  --sage-deep: #7E8E76;
  --sage-soft: #D4DBCF;
  /* primary accent (was terracotta — now deep rose / berry) */
  --terracotta: #A95773;
  --terracotta-deep: #6B2F44;
  --terracotta-soft: #EBCAD6;
  --charcoal: #1A1A1A;
  --ink-2: #3A3A3A;
  --ink-3: #6B6864;
  --ink-muted: #9C9892;
  --line: rgba(26, 26, 26, 0.14);
  --line-soft: rgba(26, 26, 26, 0.07);
  --line-strong: rgba(26, 26, 26, 0.26);

  /* Type */
  --serif: "Fraunces", "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --script: "Fraunces", Georgia, serif;
  --display: "Fraunces", "Bodoni Moda", Georgia, serif;

  /* Rhythm */
  --max: 1240px;
  --gutter: clamp(20px, 5vw, 56px);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --dur: 220ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ── Film grain overlay (very subtle, fixed) ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.16  0 0 0 0 0.16  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ── Type ── */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.script { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0.005em; }
.display-mark {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.mono-num { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--charcoal);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Layout helpers ── */
.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

/* ── Links & buttons ── */
a { color: inherit; text-decoration: none; }

.link-underline {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-underline:hover { color: var(--terracotta-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background var(--dur) var(--ease), transform 80ms ease-in, color var(--dur) var(--ease);
}
.btn:hover { background: #000; }
.btn:active { transform: scale(0.98); }
.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: transparent; border-color: var(--charcoal); }
.btn--terracotta {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--cream);
}
.btn--terracotta:hover { background: var(--terracotta-deep); border-color: var(--terracotta-deep); }
.btn--sm { padding: 10px 16px; font-size: 13px; }

/* ── Tag / status pill ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
}
.tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
.tag--sage { color: var(--sage-deep); border-color: rgba(126, 142, 118, 0.4); background: rgba(168, 181, 160, 0.18); }
.tag--terracotta { color: var(--terracotta-deep); border-color: rgba(168, 98, 68, 0.4); background: rgba(232, 199, 182, 0.35); }
.tag--charcoal { color: var(--cream); border-color: var(--charcoal); background: var(--charcoal); }
.tag--paid { color: var(--sage-deep); border-color: rgba(126, 142, 118, 0.55); background: rgba(168, 181, 160, 0.32); }

/* ── Card ── */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card--inset { background: var(--cream-deep); }
.card:hover { border-color: var(--line-strong); }
.card--bare { background: transparent; border: 0; padding: 0; }

/* ── Inputs ── */
.input, .textarea, .select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 14px;
  border-radius: 4px;
  transition: border-color var(--dur) var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--charcoal);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* ── Sage banded section (used sparingly) ── */
.band-sage {
  background: var(--sage-soft);
  /* keep flat — no gradient */
}
.band-cream-deep { background: var(--cream-deep); }

/* ── Image slot defaults ── */
image-slot {
  --is-bg: var(--cream-deep);
  --is-border: var(--line);
  --is-fg: var(--ink-3);
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Page transitions (kept minimal — no opacity to avoid stuck-at-0) ── */
.page-enter { animation: page-in 260ms var(--ease) both; }
@keyframes page-in {
  from { transform: translateY(4px); }
  to { transform: translateY(0); }
}

/* ── Small details ── */
::selection { background: var(--terracotta-soft); color: var(--charcoal); }

.kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--cream);
  color: var(--ink-2);
}

/* ── Responsive utilities ── */
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 721px) {
  .only-mobile { display: none !important; }
}
