@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Bebas+Neue&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --ink: #0d0c0b;
  --paper: #f4f0e8;
  --red: #b91c1c;
  --muted: #5a5047;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Crimson Pro', Georgia, serif;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.8;
}

.page {
  max-width: 68ch;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* ── HEADER ── */
header {
  border-bottom: 3px double var(--ink);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.eyebrow a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.eyebrow a:hover {
  color: var(--red);
  border-color: var(--red);
}

h1 {
  font-family: 'IM Fell English', serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: normal;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

h1 em { color: var(--red); }

.subtitle {
  font-style: italic;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.meta {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meta .red { color: var(--red); }

/* ── SECTIONS ── */
section { margin-bottom: 3rem; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.3rem;
  margin-bottom: 1.1rem;
}

.num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--red);
}

h2 {
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

p { margin-bottom: 1em; text-align: justify; hyphens: auto; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { color: var(--muted); }

/* ── CTA ── */
.cta {
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.cta-title {
  font-family: 'IM Fell English', serif;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  color: var(--red);
  margin-bottom: 0.6rem;
}

/* ── FOOTER ── */
footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--muted);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.3rem;
}

footer a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

footer a:hover { border-color: var(--red); }

/* ── LINKS ── */
a { color: var(--ink); transition: color 0.2s; }
a:hover { color: var(--red); }

/* ── FEEDBACK FORM ── */
.feedback-form {
  margin-top: 2rem;
}

.feedback-form label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

.feedback-form textarea {
  width: 100%;
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid var(--muted);
  background: transparent;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s;
}

.feedback-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.feedback-form textarea::placeholder {
  color: var(--muted);
  font-style: italic;
}

.btn {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: 0.6em 1.5em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
  display: inline-block;
  margin-top: 1rem;
}

.btn:hover {
  color: var(--paper);
  background: var(--ink);
}

.btn-red {
  border-color: var(--red);
  color: var(--red);
}

.btn-red:hover {
  background: var(--red);
  color: var(--paper);
}

.btn-small {
  font-size: 0.6rem;
  padding: 0.4em 1em;
  margin-top: 0;
}

/* ── MAGIC LINK BOX ── */
.magic-link-box {
  border: 3px double var(--ink);
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.magic-link-box .link-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  margin-bottom: 0.8rem;
  display: block;
}

.magic-link-box a {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  color: var(--red);
  word-break: break-all;
  border-bottom: 1px solid var(--red);
  text-decoration: none;
  transition: color 0.2s;
}

.magic-link-box .note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

/* ── STATUS BADGES ── */
.status-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  padding: 0.2em 0.7em;
  border: 1px solid;
  display: inline-block;
}

.status-pending {
  color: var(--muted);
  border-color: var(--muted);
}

.status-acknowledged {
  color: var(--ink);
  border-color: var(--ink);
}

.status-published {
  color: var(--red);
  border-color: var(--red);
}

/* ── FEEDBACK LIST ── */
.feedback-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feedback-card {
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1.5rem;
}

.feedback-card .card-meta {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.feedback-card .card-body {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.feedback-card .card-body p:last-child {
  margin-bottom: 0;
}

.feedback-card a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.feedback-card a:hover {
  border-bottom-color: var(--red);
}

/* ── COMMENT THREAD ── */
.comment-thread {
  margin-top: 2rem;
}

.thread-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1rem;
  display: block;
}

.comment {
  padding: 1rem 0;
  border-top: 1px solid var(--muted);
}

.comment:last-child {
  border-bottom: 1px solid var(--muted);
}

.comment-meta {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.comment-author-admin {
  color: var(--red);
}

.comment-author-giver {
  color: var(--ink);
}

.comment-author-public {
  color: var(--muted);
}

.comment-body {
  font-size: 1rem;
  line-height: 1.7;
}

.comment-body p:last-child { margin-bottom: 0; }

.comment.moderation-pending {
  opacity: 0.5;
}

/* ── COMMENT FORM ── */
.comment-form {
  margin-top: 1.5rem;
}

.comment-form textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.8rem;
  border: 1px solid var(--muted);
  background: transparent;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.2s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.comment-form input[type="text"] {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--muted);
  background: transparent;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  margin-top: 0.5rem;
  transition: border-color 0.2s;
}

.comment-form input[type="text"]:focus {
  outline: none;
  border-color: var(--ink);
}

.comment-form label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
  margin-top: 0.8rem;
}

.comment-form label:first-child {
  margin-top: 0;
}

/* ── ADMIN CONTROLS ── */
.admin-controls {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── ALERTS / FLASH MESSAGES ── */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  border: 1px solid;
}

.alert-success {
  color: #166534;
  border-color: #166534;
}

.alert-error {
  color: var(--red);
  border-color: var(--red);
}

/* ── LOGIN / REGISTER FORM ── */
.auth-form {
  margin-top: 2rem;
}

.auth-form input[type="email"] {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--muted);
  background: transparent;
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  transition: border-color 0.2s;
}

.auth-form input[type="email"]:focus {
  outline: none;
  border-color: var(--ink);
}

.auth-form label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── INVITE BOX ── */
.invite-box {
  border: 3px double var(--ink);
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.invite-box .link-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  margin-bottom: 0.8rem;
  display: block;
}

.invite-box code {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 0.95rem;
  color: var(--red);
  word-break: break-all;
}

/* ── EMPTY STATE ── */
.empty {
  font-style: italic;
  color: var(--muted);
  margin-top: 2rem;
}

/* ── PRINT ── */
@media print {
  .eyebrow,
  footer,
  .admin-controls,
  .comment-form,
  .feedback-form,
  .btn {
    display: none;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }

  .page {
    max-width: 100%;
    padding: 0;
  }

  header {
    border-bottom: 2px solid #000;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
