/* ── tokens ──────────────────────────────────────────────── */
:root {
  --ink-navy:        #1F2A37;
  --ink-navy-soft:   #2A3744;
  --deep-slate:      #333A44;
  --stone-gray:      #6B6F76;
  --stone-soft:      #9A9DA3;
  --warm-ivory:      #F3F1EC;
  --ivory-card:      #FAF8F2;
  --ivory-border:    #E2DDD2;
  --ivory-line:      #D8D2C5;
  --muted-burgundy:  #6B3A3A;
  --burgundy-soft:   #8C5252;
  --sage:            #5B8068;
  --amber:           #B98A3D;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--warm-ivory);
  color: var(--deep-slate);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.43 0 0 0 0 0.39 0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--muted-burgundy); color: var(--warm-ivory); }

/* ── shell ───────────────────────────────────────────────── */
.shell { max-width: 1340px; margin: 0 auto; padding: 0 56px; }

/* ── eyebrow ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--stone-gray);
  font-weight: 500;
}

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink-navy);
  color: var(--warm-ivory);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid var(--ink-navy);
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}
.btn:hover { background: var(--ink-navy-soft); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--ink-navy);
  border: 1px solid var(--ink-navy);
}
.btn-secondary:hover { background: rgba(31,42,55,0.04); }
.btn-ghost {
  background: transparent;
  color: var(--stone-gray);
  border: 1px solid var(--ivory-border);
}
.btn-ghost:hover { color: var(--ink-navy); border-color: var(--ink-navy); }

/* ── tagline band (top of /Today, /Proffer/New) ──────────
   Quiet epigraph between the topbar and page content. Opt-in via
   ViewBag.ShowTagline = true in the view. Italic serif treatment so it
   reads as voice/brand rather than UI chrome. */
.app-tagline-band {
  border-bottom: 1px solid var(--ivory-line);
  padding: 18px 0 16px;
  background: var(--ivory-card);
}
.app-tagline {
  text-align: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: var(--stone-gray);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.app-tagline em {
  font-style: italic;
  color: var(--muted-burgundy);
}

/* ── footer ─────────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--ivory-line);
  padding: 64px 0 72px;
  text-align: center;
}
.site-foot .foot-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  letter-spacing: 0.28em;
  color: var(--ink-navy);
  margin-bottom: 10px;
  font-weight: 500;
}
.site-foot .foot-logo {
  display: block;
  height: 26px;
  width: auto;
  margin: 0 auto 12px;
}
.site-foot .foot-tag {
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--stone-gray);
}
.site-foot .foot-links {
  margin-top: 22px;
  font-size: 12px;
  color: var(--stone-gray);
  display: inline-flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-foot .foot-links a:hover { color: var(--ink-navy); }

/* ── settle animation ───────────────────────────────────── */
@keyframes settle {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.settle-1 { animation: settle 700ms cubic-bezier(0.2,0.6,0.2,1) 60ms both; }
.settle-2 { animation: settle 700ms cubic-bezier(0.2,0.6,0.2,1) 200ms both; }
.settle-3 { animation: settle 700ms cubic-bezier(0.2,0.6,0.2,1) 260ms both; }
.settle-4 { animation: settle 700ms cubic-bezier(0.2,0.6,0.2,1) 340ms both; }

/* ── section heads ──────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 24px;
}
.section-head h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 30px;
  color: var(--ink-navy);
  line-height: 1.1;
}
.section-head .meta {
  font-size: 11px;
  color: var(--stone-gray);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-head .head-link {
  font-size: 12px;
  color: var(--ink-navy);
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--stone-soft);
  padding-bottom: 1px;
  transition: border-color 150ms ease, color 150ms ease;
}
.section-head .head-link:hover { color: var(--muted-burgundy); border-color: var(--muted-burgundy); }

/* ── mark divider ───────────────────────────────────────── */
.mark-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 56px 0;
}

/* ── card primitive ─────────────────────────────────────── */
.card {
  background: var(--ivory-card);
  border: 1px solid var(--ivory-border);
  padding: 24px;
  border-radius: 3px;
}

/* ── status pill (used in proffer rows) ─────────────────── */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-gray);
  margin-bottom: 10px;
  font-weight: 500;
}
.status::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--stone-soft);
  display: inline-block;
}
.status.awaiting::before    { background: var(--amber); }
.status.collecting::before  { background: var(--muted-burgundy); }
.status.booked::before      { background: var(--sage); }
.status.draft::before       { background: var(--stone-soft); }
.status.expired::before     { background: var(--stone-soft); opacity: 0.5; }

/* ── proffer list rows (dashboard + Proffers list) ──────── */
.proffer-list {
  border-top: 1px solid var(--ivory-line);
}
.proffer-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding: 24px 8px;
  border-bottom: 1px solid var(--ivory-line);
  align-items: start;
  transition: background 180ms ease;
  margin: 0 -8px;
}
.proffer-row:hover { background: rgba(31,42,55,0.02); }

.proffer-row .title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink-navy);
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.25;
}
.proffer-row .recipient {
  font-size: 14px;
  color: var(--deep-slate);
}
.proffer-row .recipient strong { color: var(--ink-navy); font-weight: 500; }
.proffer-row .meta-line {
  font-size: 12px;
  color: var(--stone-gray);
  margin-top: 8px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.proffer-row .right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  white-space: nowrap;
}
.proffer-row .right .view {
  font-size: 13px;
  color: var(--ink-navy);
  border-bottom: 1px solid var(--stone-soft);
  padding-bottom: 1px;
  transition: border-color 180ms ease, color 180ms ease;
}
.proffer-row .right .view:hover { color: var(--muted-burgundy); border-color: var(--muted-burgundy); }
.proffer-row .right .ts {
  font-size: 11px;
  color: var(--stone-gray);
  letter-spacing: 0.06em;
}

/* ── vote pills (group proffer rows) ────────────────────── */
.votes {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  flex-wrap: wrap;
}
.vote-pill {
  font-size: 11px;
  color: var(--stone-gray);
  background: var(--warm-ivory);
  border: 1px solid var(--ivory-border);
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.02em;
  font-weight: 400;
}
.vote-pill.strong {
  color: var(--muted-burgundy);
  border-color: var(--burgundy-soft);
  background: rgba(107,58,58,0.04);
}

/* ── responsive baseline ────────────────────────────────── */
@media (max-width: 880px) {
  .shell { padding: 0 24px; }
}
