/* Farrago Discord Companion — landing page styling.
   Mirrors the design tokens from the main app's
   design-system/colors_and_type.css (cream paper, iron-gall ink,
   cinnabar accents, IM Fell English SC display, IM Fell English
   italic for body). Self-contained — no @import from the main app
   since this is hosted on a different port. */

:root {
  --paper:         #f4ead7;
  --paper-aged:    #e9dcc1;
  --paper-deep:    #ddca9f;
  --ink:           #3a2a1a;
  --ink-strong:    #2a1d10;
  --ink-faded:     #5a4a36;
  --sepia:         #8a6f4a;
  --sepia-soft:    #b89a6f;
  --rubric:        #a52a2a;
  --rubric-deep:   #7a1f1f;
  --verdigris:     #4a7556;
  --verdigris-deep:#365a40;
  --font-display:  "IM Fell English SC", Georgia, serif;
  --font-italic:   "IM Fell English", Georgia, serif;
  --shadow-1:      0 1px 2px rgba(58, 42, 26, 0.08);
  --shadow-2:      0 6px 24px rgba(58, 42, 26, 0.10);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(ellipse at top left,  #f7eedb 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #e9dcc1 0%, transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-italic);
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 16px 0 32px;
}
.hero-fleuron {
  font-family: var(--font-display);
  color: var(--rubric);
  font-size: 56px;
  line-height: 1;
  margin-bottom: 10px;
  user-select: none;
}
.hero-title {
  font-family: var(--font-display);
  color: var(--ink-strong);
  font-size: 64px;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
  font-weight: 400;
}
.hero-subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--ink-faded);
  font-size: 18px;
  margin: 0 0 24px;
}
.hero-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.hero-rule-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--sepia);
}
.hero-rule-glyph {
  font-family: var(--font-display);
  color: var(--sepia);
  font-size: 18px;
  line-height: 1;
}

/* ── Cards ── */
.card {
  background: var(--paper-aged);
  border: 1px solid var(--sepia-soft);
  border-radius: 4px;
  padding: 28px 28px 24px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-2);
  position: relative;
}
.card::before {
  /* Quill flourish in the top-left margin */
  content: "\2766";
  position: absolute;
  top: 16px;
  left: -22px;
  color: var(--rubric);
  font-family: var(--font-display);
  font-size: 18px;
  opacity: 0.6;
}
.card--muted {
  background: rgba(244, 234, 215, 0.5);
  box-shadow: var(--shadow-1);
}
.card-title {
  font-family: var(--font-display);
  color: var(--ink-strong);
  font-size: 22px;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  font-weight: 400;
}
.card-body {
  margin: 0 0 18px;
  color: var(--ink);
}
.card-note {
  font-size: 13px;
  color: var(--ink-faded);
  font-style: italic;
  margin: 14px 0 0;
  min-height: 18px;
}
.card-note .dim { opacity: 0.7; }

/* ── Invite button ── */
.invite-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: var(--rubric);
  color: var(--paper);
  border: 1px solid var(--rubric-deep);
  border-radius: 3px;
  padding: 10px 22px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.07em;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 2px 4px rgba(122, 31, 31, 0.25);
}
.invite-btn:hover {
  background: var(--rubric-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(122, 31, 31, 0.32);
}
.invite-btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.invite-btn-arrow {
  font-family: var(--font-italic);
  font-size: 19px;
}

/* ── Status grid ── */
.status-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 6px 18px;
  margin: 4px 0 0;
  font-size: 14px;
}
.status-grid dt {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--ink-faded);
  text-transform: uppercase;
  font-size: 11px;
  align-self: center;
}
.status-grid dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-italic);
}
.status-mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12px; color: var(--ink-faded); }
.status-pending { color: var(--ink-faded); font-style: italic; }
.status-ok      { color: var(--verdigris-deep); font-weight: 600; }
.status-bad     { color: var(--rubric); font-weight: 600; }

/* ── Footer ── */
.page-footer {
  text-align: center;
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--sepia);
  letter-spacing: 0.1em;
}
