/* /public/styles/vignette-ui.css */

/* ---------- TOKENS ---------- */
:root {
  --bg: #F9F8F7;
  --ink: #0D1A2D;
  --muted: #A18679;
  --line: #D8DDE4;
  --accent: #70724E;
  --danger: #b84a4a;

  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "DM Serif Display", "Times New Roman", serif;

  --radius-card: 16px;
  --radius-input: 10px;

  --shadow-soft: 0 2px 6px rgba(0,0,0,0.14);
}

/* ---------- GLOBAL ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font: 15px/1.6 var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ---------- HEADER (shared) ---------- */

header.v-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px; /* canonical height */
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-soft);
}

.v-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.v-header-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.v-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.v-header-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300; /* Inter Light */
  color: #410016;
  padding: 2px 0;
  text-decoration: none;
  transition: transform 0.08s ease, opacity 0.12s ease;
}

.v-header-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.v-header-nav a:hover {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.8;
}

.v-header-nav a:hover::before {
  opacity: 1;
}

.v-header-nav a:active {
  transform: translateY(1px) scale(0.97);
  opacity: 0.9;
}

/* ---------- LAYOUT HELPERS ---------- */

.v-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 96px 20px 48px; /* clears the fixed header */
}

@media (max-width: 640px) {
  .v-header-inner { padding: 12px 16px; }
  .v-shell { padding: 80px 16px 40px; }
}

/* ---------- TYPOGRAPHY ---------- */

.v-section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

h1.v-page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
}

h2.v-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  margin: 20px 0 6px;
  color: var(--ink);
}

p,
.v-body-text {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--ink);
}

ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

li {
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink);
}

/* ---------- BUTTONS ---------- */

.v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(65,0,22,.05), 0 6px 16px rgba(65,0,22,.10);
  transition: transform .08s ease, box-shadow .15s ease, opacity .12s ease;
}

.v-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 2px 0 rgba(65,0,22,.05), 0 10px 22px rgba(65,0,22,.14);
  opacity: 0.95;
}

.v-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 0 rgba(65,0,22,.04), 0 4px 12px rgba(65,0,22,.10);
}

/* Footer */

footer.v-footer {
  border-top: 1px solid rgba(216,221,228,0.8);
  padding: 18px 20px 26px;
  font-size: 13px;
  color: var(--muted);
}

.v-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
/* Vignette global UI system
   Single source of truth for static HTML pages.
   Pages may add small page-specific CSS on top (Option B).
*/

/* ---------- TOKENS ---------- */
:root {
  /* Core palette */
  --bg: #F9F8F7;        /* soft linen */
  --ink: #0D1A2D;       /* ink navy */
  --muted: #A18679;     /* warm taupe */
  --line: #D8DDE4;      /* mist */
  --accent: #70724E;    /* olive (not used in UI by default) */
  --danger: #b84a4a;

  /* Typography */
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "DM Serif Display", "Times New Roman", serif;

  /* Radius */
  --radius-card: 16px;
  --radius-input: 10px;
  --radius-btn: 10px;

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;

  /* Shadows */
  --shadow-soft: 0 2px 6px rgba(0,0,0,0.14);
  --shadow-btn: 0 1px 0 rgba(65,0,22,.05), 0 6px 16px rgba(65,0,22,.10);
  --shadow-btn-hover: 0 2px 0 rgba(65,0,22,.05), 0 10px 22px rgba(65,0,22,.14);
  --shadow-btn-active: 0 1px 0 rgba(65,0,22,.04), 0 4px 12px rgba(65,0,22,.10);
}

/* ---------- GLOBAL RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font: 13px/1.6 var(--font-body);
  font-weight: 300; /* Inter Light base */
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--muted);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

/* ---------- HEADER (shared for HTML pages) ---------- */
header.v-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px; /* canonical height */
  z-index: 50;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-soft);
}

.v-header-inner {
  max-width: 1280px; /* app width */
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.v-header-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.v-header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.v-header-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: #410016; /* plum */
  padding: 2px 0;
  text-decoration: none;
  transition: transform 0.08s ease, opacity 0.12s ease;
}

.v-header-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.v-header-nav a:hover {
  transform: translateY(-1px) scale(1.02);
  opacity: 0.8;
}

.v-header-nav a:hover::before { opacity: 1; }

.v-header-nav a:active {
  transform: translateY(1px) scale(0.97);
  opacity: 0.9;
}

/* ---------- LAYOUT HELPERS ---------- */
.v-shell {
  max-width: 960px; /* content width */
  margin: 0 auto;
  padding: 96px 20px 48px; /* clears fixed header */
}

@media (max-width: 640px) {
  .v-header-inner { padding: 12px 16px; }
  .v-shell { padding: 80px 16px 40px; }
}

/* ---------- TYPOGRAPHY UTILS ---------- */
.v-label,
.v-section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 4px;
}

.v-h1,
h1.v-page-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 8px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.v-h2,
h2.v-subtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  margin: 20px 0 6px;
  color: var(--ink);
}

.v-h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  margin: 16px 0 6px;
  color: var(--ink);
}

.v-text,
p,
.v-body-text,
ul,
li {
  font-size: 13px;
  color: var(--ink);
}

.v-small {
  font-size: 12px;
  color: var(--muted);
}

p, .v-text, .v-body-text { margin: 0 0 10px; }
ul { margin: 0 0 14px 20px; padding: 0; }
li { margin-bottom: 6px; }

/* ---------- BUTTONS ---------- */
.v-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, opacity .12s ease;
  box-shadow: var(--shadow-btn);
  will-change: transform, box-shadow;
}

.v-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: var(--shadow-btn-hover);
  opacity: 0.95;
}

.v-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: var(--shadow-btn-active);
}

/* Primary: Mist bg + Navy text */
.v-btn-primary {
  background: var(--line); /* Mist */
  color: var(--ink);       /* Navy */
  border-color: var(--line);
}

/* Secondary: White bg + Taupe text */
.v-btn-secondary {
  background: #fff;
  color: var(--muted);
  border-color: var(--line);
}

/* ---------- FOOTER (shared) ---------- */
footer.v-footer {
  margin-top: 28px;
  padding: 12px 20px 20px;
  border-top: 1px solid rgba(216,221,228,0.8);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  background: none;
}

.v-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

footer.v-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(161,134,121,0.35);
  font-size: 13px;
  font-weight: 300;
}

footer.v-footer a:hover {
  border-bottom-color: rgba(161,134,121,0.7);
}