:root {
  --paper: #f6f0e4;
  --ink: #26221d;
  --muted: #665f55;
  --rule: #c8b99f;
  --burgundy: #6e1f2a;
  --burgundy-dark: #4e141d;
  --gold: #a77a2f;
  --card: rgba(255, 252, 245, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(246, 240, 228, 0.94), rgba(246, 240, 228, 0.94)),
    repeating-linear-gradient(0deg, transparent 0, transparent 29px, rgba(110, 31, 42, 0.025) 30px);
}

a {
  color: var(--burgundy);
}

.page {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.masthead {
  text-align: center;
  border-top: 4px double var(--gold);
  border-bottom: 1px solid var(--rule);
  padding: 34px 18px 30px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 8vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
}

.subtitle {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.6;
}

.card {
  margin: 36px 0;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(38, 34, 29, 0.08);
}

h2 {
  margin: 0 0 14px;
  color: var(--burgundy-dark);
  font-size: 1.65rem;
}

p {
  line-height: 1.68;
}

.actions {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.button {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--burgundy);
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
}

.button.primary {
  background: var(--burgundy);
  color: white;
}

.button.primary:hover,
.button.primary:focus {
  background: var(--burgundy-dark);
}

.button.secondary {
  background: transparent;
  color: var(--burgundy);
}

.feed-label {
  margin: 25px 0 8px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  background: #eee4d3;
  border-radius: 3px;
  font-size: 0.9rem;
}

details {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

summary {
  cursor: pointer;
  color: var(--burgundy-dark);
  font-weight: 700;
}

.content {
  padding: 8px 8px 26px;
}

footer {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

footer p {
  margin: 5px 0;
}

@media (max-width: 560px) {
  .page {
    padding-top: 28px;
  }

  .masthead {
    padding-inline: 4px;
  }

  .card {
    padding: 22px;
  }
}
