/* =============================================================
   Vyana — Site styles
   Cormorant Garamond + DM Sans, dark + gold + cream
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

:root {
  /* Palette */
  --ink:       #0C0B09;   /* near-black, pre-dawn */
  --ink-1:     #131210;
  --ink-2:     #1C1A16;
  --ink-3:     #2A2620;
  --paper:     #F4EFE5;   /* warm cream page */
  --paper-2:   #EBE4D4;
  --paper-3:   #E0D6C0;
  --warm-100:  #C8BFAE;
  --warm-300:  #9C9382;
  --warm-500:  #6D6655;
  --warm-700:  #3F3A30;
  --gold:      #B89968;
  --gold-2:    #D4B681;
  --gold-soft: rgba(184, 153, 104, 0.18);
  --gold-line: rgba(184, 153, 104, 0.32);

  /* Type */
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
  --sans:  'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --gutter: clamp(20px, 4vw, 56px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* -------- Typography -------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.muted { color: var(--warm-500); }
.eyebrow.on-dark { color: var(--gold-2); }

.serif { font-family: var(--serif); font-weight: 400; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; }
h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
h4 { font-size: 20px; line-height: 1.25; }

p { margin: 0 0 1em; }
em { font-style: italic; }

.lede {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--warm-700);
  max-width: 56ch;
}
.lede.on-dark { color: var(--paper-2); }

.body-copy {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--warm-700);
  max-width: 62ch;
}
.body-copy.on-dark { color: var(--paper-2); }
.body-copy p + p { margin-top: 1.1em; }

.caption {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--warm-500);
  letter-spacing: 0.01em;
}

/* -------- Page container -------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  width: 100%;
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* -------- Nav -------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 229, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(28, 26, 22, 0.06);
}
.nav.on-dark {
  background: rgba(12, 11, 9, 0.72);
  border-bottom: 1px solid rgba(184, 153, 104, 0.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
  filter: none;
  transition: filter 200ms var(--ease);
}
.nav.on-dark .nav-logo img {
  filter: invert(1) brightness(1.15);
}
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--warm-500);
  transition: color 180ms var(--ease);
}
.nav.on-dark .nav-links a { color: var(--warm-100); }
.nav-links a:hover { color: var(--ink); }
.nav.on-dark .nav-links a:hover { color: var(--gold-2); }
.nav-links a.apply {
  color: var(--ink);
  font-weight: 500;
}
.nav.on-dark .nav-links a.apply { color: var(--paper); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: all 240ms var(--ease);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); transform: translateY(-1px); }
.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--ink); }
.btn-outline-light {
  border-color: rgba(244, 239, 229, 0.3);
  color: var(--paper);
}
.btn-outline-light:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn .arrow { display: inline-block; transition: transform 240ms var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 6px;
  transition: all 200ms var(--ease);
}
.link-arrow:hover { color: var(--ink); border-bottom-color: var(--ink); }
.on-dark .link-arrow:hover { color: var(--paper); border-bottom-color: var(--paper); }
.link-arrow .arrow { transition: transform 200ms var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

.link-underline {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--warm-500);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 200ms var(--ease);
}
.link-underline:hover { color: var(--ink); }
.on-dark .link-underline { color: var(--warm-100); }
.on-dark .link-underline:hover { color: var(--gold-2); }

/* -------- Sections -------- */
section { padding: clamp(80px, 12vw, 160px) 0; }
section.dark { background: var(--ink); color: var(--paper); }
section.dark .body-copy { color: var(--paper-2); }
section.tight { padding: clamp(60px, 8vw, 100px) 0; }

.section-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 720px;
}
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .body-copy,
.section-head.centered .lede { margin-left: auto; margin-right: auto; }

.divider-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 24px;
}
.divider-line.centered { margin-left: auto; margin-right: auto; }

/* -------- Image placeholder -------- */
.img-placeholder {
  position: relative;
  background: 
    repeating-linear-gradient(135deg,
      rgba(184, 153, 104, 0.06) 0,
      rgba(184, 153, 104, 0.06) 1px,
      transparent 1px,
      transparent 12px),
    var(--paper-2);
  color: var(--warm-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--gold-line);
  overflow: hidden;
  min-height: 320px;
}
.img-placeholder.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(184, 153, 104, 0.08) 0,
      rgba(184, 153, 104, 0.08) 1px,
      transparent 1px,
      transparent 14px),
    var(--ink-1);
  color: var(--warm-300);
  border-color: rgba(184, 153, 104, 0.2);
}
.img-placeholder .label {
  position: relative;
  padding: 8px 14px;
  background: rgba(244, 239, 229, 0.7);
  border: 1px solid var(--gold-line);
  letter-spacing: 0.16em;
}
.img-placeholder.dark .label {
  background: rgba(12, 11, 9, 0.7);
  color: var(--gold-2);
}

/* -------- Footer -------- */
.footer {
  background: var(--ink);
  color: var(--paper-2);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(184, 153, 104, 0.2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-grid a {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--warm-100);
  padding: 6px 0;
  transition: color 200ms var(--ease);
}
.footer-grid a:hover { color: var(--gold-2); }
.footer-brand-mark {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-bottom: 24px;
}
.footer-brand-mark img {
  height: 100%;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.15);
}
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--paper-2);
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 28ch;
}
.footer-bottom {
  border-top: 1px solid rgba(184, 153, 104, 0.18);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--warm-300);
  letter-spacing: 0.02em;
}

/* -------- Cards -------- */
.card {
  background: var(--paper);
  border: 1px solid rgba(28, 26, 22, 0.08);
  padding: 32px;
  transition: all 280ms var(--ease);
}
.card.with-rule { border-top: 2px solid var(--gold); }
.card.dark { background: var(--ink-1); color: var(--paper); border-color: rgba(184, 153, 104, 0.16); }

/* -------- Forms -------- */
.field { display: grid; gap: 8px; margin-bottom: 24px; }
.field label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-500);
}
.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid rgba(28, 26, 22, 0.18);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color 200ms var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 120px; resize: vertical; }
.dark .field label { color: var(--warm-100); }
.dark .field input,
.dark .field textarea,
.dark .field select { color: var(--paper); border-color: rgba(184, 153, 104, 0.25); }

.radio-group { display: grid; gap: 12px; }
.radio-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(28, 26, 22, 0.12);
  cursor: pointer;
  transition: all 200ms var(--ease);
  font-family: var(--sans);
  font-size: 15px;
}
.radio-row:hover { border-color: var(--gold); background: var(--gold-soft); }
.radio-row input { accent-color: var(--gold); }

/* Utility */
.spacer-8 { height: 8px; }
.spacer-16 { height: 16px; }
.spacer-24 { height: 24px; }
.spacer-32 { height: 32px; }
.spacer-48 { height: 48px; }
.spacer-64 { height: 64px; }

.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.wrap-flex { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
