/* ============================================================
   Vipassana testimonials: shared theme
   Colours, type and components follow vipassana.quantumtaskai.org
   (light theme only).
   ============================================================ */

:root {
  color-scheme: light;

  --ivory: #FDFAF5;
  --ivory-2: #F2E5CE;
  --ivory-3: #E6EDE3;
  --paper: #FEFCF8;
  --paper-warm: #FBF8F2;
  --footer-bg: #EDE4D4;

  --gold: #9A7020;
  --gold-hover: #AE7E24;
  --gold-dim: #7A5810;
  --cream: #FDF6E8;
  --gold-wash: rgba(154, 112, 32, 0.08);
  --gold-line: rgba(154, 112, 32, 0.3);

  --sage: #4F6B52;
  --sage-light: #C8D4C5;
  --red: #A23B2A;
  --red-wash: #FBEDE9;

  --text-primary: #1C1812;
  --text-muted: #56504A;
  --text-faint: #8A8178;
  --line: rgba(0, 0, 0, 0.09);
  --line-strong: rgba(0, 0, 0, 0.2);

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 32px rgba(0, 0, 0, 0.13);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.18);

  --serif: 'Playfair Display', Georgia, serif;
  --script: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.011em;
  color: var(--text-primary);
  background: var(--paper);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

::selection { background: rgba(154, 112, 32, 0.22); color: var(--text-primary); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  display: block;
}

.muted { color: var(--text-muted); }
.small { font-size: 14px; line-height: 1.6; }

.gold-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.5;
  margin: 0 auto;
  max-width: 240px;
}

/* ---------- Brand lockup (same construction as the website header) ---------- */

.brandbar {
  border-top: 3px solid var(--gold);
  background: rgba(254, 252, 248, 0.94);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 24px 18px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { color: inherit; }

.brand img {
  height: 88px;
  width: auto;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }

.brand-name {
  font-family: var(--script);
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--text-primary);
}

.brand-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(154, 112, 32, 0.35), transparent);
}

.brand-sub {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.3;
}

.brand-sub2 {
  font-family: var(--script);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.06em;
  color: var(--gold-dim);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .brand { gap: 14px; padding: 16px 16px 14px; justify-content: flex-start; }
  .brand img { height: 56px; }
  .brand-name { font-size: 28px; letter-spacing: 0.03em; }
  .brand-sub { font-size: 9px; letter-spacing: 0.14em; }
  .brand-sub2 { font-size: 12px; }
  .brand-text { gap: 7px; }
}
@media (max-width: 480px) {
  .brand img { height: 46px; }
  .brand-name { font-size: 23px; }
  .brand-sub { font-size: 8px; letter-spacing: 0.1em; }
  .brand-sub2 { font-size: 11px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  background: none;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.btn:focus-visible { outline-offset: 4px; }
.btn:disabled { opacity: 0.5; cursor: default; transform: none !important; box-shadow: none !important; }

.btn-gold {
  background: var(--gold);
  color: var(--cream);
  box-shadow: 0 2px 12px rgba(154, 112, 32, 0.22);
}
.btn-gold:hover:not(:disabled) {
  background: var(--gold-hover);
  color: #fff;
  box-shadow: 0 6px 24px rgba(154, 112, 32, 0.32);
  transform: translateY(-2px);
}
.btn-gold:active:not(:disabled) { transform: translateY(0); }

.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline:hover:not(:disabled) {
  background: var(--gold);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-ivory {
  background: var(--paper);
  border-color: var(--gold-line);
  color: var(--text-primary);
}
.btn-ivory:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
}

.btn-quiet {
  padding: 8px 4px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 12px;
}
.btn-quiet:hover:not(:disabled) { color: var(--gold); }

.btn-small { padding: 9px 16px; font-size: 11.5px; }
.btn-danger { color: var(--red); border-color: rgba(162, 59, 42, 0.35); background: var(--paper); }
.btn-danger:hover:not(:disabled) { background: var(--red); border-color: var(--red); color: #fff; }

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: 12px; }
}

/* ---------- Cards ---------- */

.card {
  border-radius: var(--radius-lg);
  padding: 40px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}
@media (max-width: 768px) { .card { padding: 28px 20px; } }
@media (max-width: 480px) { .card { padding: 24px 16px; border-radius: 18px; } }

/* ---------- Form fields (underline style, as on the website) ---------- */

.field { margin-bottom: 28px; min-width: 0; }

.field > label, .label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.5;
}
.req { color: var(--gold); margin-left: 2px; }
.optional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-faint); font-size: 12px; margin-left: 6px; }

.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number],
.field input[type=password], .field input[type=search], .field input[type=url], .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-bottom-color 0.25s ease, box-shadow 0.25s ease;
}
.field select {
  cursor: pointer;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239A7020' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(42, 36, 32, 0.38);
  font-style: italic;
  font-weight: 300;
}
.field input:hover, .field select:hover { border-bottom-color: rgba(0, 0, 0, 0.4); }
.field input:focus, .field select:focus {
  border-bottom-color: var(--gold);
  box-shadow: inset 0 -1px 0 var(--gold);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }

.field textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }

.hint { font-size: 13px; line-height: 1.55; color: var(--text-faint); margin: 8px 0 0; }
.field.invalid input, .field.invalid select { border-bottom-color: var(--red); box-shadow: inset 0 -1px 0 var(--red); }
.field.invalid textarea { border-color: var(--red); }
.field-error { font-size: 13px; color: var(--red); margin: 8px 0 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* Check and radio rows */
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.55;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.check:hover { border-color: var(--gold-line); }
.check input { margin: 4px 0 0; width: 17px; height: 17px; accent-color: var(--gold); flex: none; cursor: pointer; }
.check:has(input:checked) { border-color: var(--gold); background: var(--cream); }
.check + .check { margin-top: 10px; }

/* Notices */
.notice {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.6;
  border: 1px solid var(--gold-line);
  background: var(--cream);
  color: var(--text-primary);
}
.notice.error { background: var(--red-wash); border-color: rgba(162, 59, 42, 0.3); color: #7C2A1D; }
.notice.ok { background: #EEF3EC; border-color: var(--sage-light); color: #2F4632; }
.notice strong { font-weight: 600; }

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--ivory-2);
  color: var(--gold-dim);
  white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.new { background: var(--cream); color: var(--gold-dim); box-shadow: inset 0 0 0 1px var(--gold-line); }
.pill.approved { background: #E8EEF3; color: #35566F; }
.pill.published { background: #E6EDE3; color: #2F5136; }
.pill.rejected { background: #F3E7E3; color: #8A3524; }
.pill.plain::before { display: none; }

/* Footer */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.footer .tagline { font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(42, 36, 32, 0.6); margin: 0 0 6px; }
.footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
