/* ============================================
   Out of Ten — magazine-style Ghost theme
   ============================================ */

:root {
  --cream: #faf6f0;
  --cream-dark: #f2ebde;
  --teal: #0e3b40;
  --teal-dark: #082729;
  --teal-mid: #1c5a60;
  --terracotta: #c1512b;
  --terracotta-dark: #9a3d1f;
  --gold: #c9993f;
  --ink: #1a1a1a;
  --grey: #6b6b6b;
  --grey-light: #d9d1c3;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --container: 1200px;
  --container-narrow: 720px;
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--terracotta); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
  margin: 1.5em 0 0.5em;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

blockquote {
  border-left: 3px solid var(--terracotta);
  margin: 1.5em 0;
  padding: 0.5em 1.2em;
  font-style: italic;
  color: var(--teal);
  background: var(--cream-dark);
}

hr {
  border: none;
  height: 1px;
  background: var(--grey-light);
  margin: 2.5em 0;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--grey-light);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(250, 246, 240, 0.92);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-brand img {
  height: 52px;
  width: auto;
}

.site-brand-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--teal);
  font-style: italic;
  font-weight: 700;
}
.site-brand-text .slash10 { color: var(--terracotta); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav ul,
.site-nav ul.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav ul li { margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.site-nav a:hover,
.site-nav a.nav-current {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--teal);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 780px) {
  .site-brand img { height: 40px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 24px;
    background: var(--cream);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border: 1px solid var(--grey-light);
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(14, 59, 64, 0.12);
    min-width: 200px;
  }
  .site-nav.open { display: flex; }
  .site-nav ul,
  .site-nav ul.nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .site-nav ul li { width: 100%; }
  .site-nav a {
    padding: 12px 20px;
    border-bottom: 1px solid var(--grey-light);
    width: 100%;
  }
  .site-nav a:last-child { border-bottom: none; }
}

/* ---------- Hero ---------- */

.site-hero {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--grey-light);
}
.site-hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--teal);
  margin: 0 0 0.3em;
  font-style: italic;
  font-weight: 700;
}
.site-hero-title .slash10 { color: var(--terracotta); font-style: italic; }
.site-hero-tagline {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--teal-mid);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 1em;
}
.site-hero-meta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (max-width: 780px) {
  .site-hero { padding: 40px 0 28px; }
  .site-hero-title { font-size: 2.2rem; }
  .site-hero-tagline { font-size: 1.05rem; }
}

/* ---------- Post grid ---------- */

.post-feed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 50px 0 80px;
}

.post-feed .post-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.post-feed .post-card:first-child .post-card-image {
  height: 460px;
}
.post-feed .post-card:first-child .post-card-title {
  font-size: 2.6rem;
}
.post-feed .post-card:first-child .post-card-excerpt {
  font-size: 1.05rem;
  display: block;
}

@media (max-width: 1000px) {
  .post-feed { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .post-feed .post-card:first-child {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .post-feed .post-card:first-child .post-card-image { height: 340px; }
  .post-feed .post-card:first-child .post-card-title { font-size: 1.9rem; }
}
@media (max-width: 620px) {
  .post-feed { grid-template-columns: 1fr; gap: 28px; padding: 32px 0 60px; }
  .post-feed .post-card:first-child .post-card-image { height: 220px; }
  .post-feed .post-card:first-child .post-card-title { font-size: 1.6rem; }
}

/* Post cards */

.post-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.post-card a { color: inherit; }

.post-card-image {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--cream-dark);
  border-radius: 6px;
  margin-bottom: 16px;
  position: relative;
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--teal);
  color: var(--cream);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 6px 12px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(14, 59, 64, 0.25);
}
.post-card-badge .slash10 {
  color: var(--terracotta);
  font-size: 0.85em;
  opacity: 0.9;
}

.post-card-meta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terracotta);
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.post-card-meta .dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--grey-light);
}
.post-card-meta .date { color: var(--grey); }

.post-card-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 0 0 8px;
}
.post-card:hover .post-card-title { color: var(--terracotta); }

.post-card-excerpt {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
  display: none;
}

.post-card-verdict {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 3px;
}
.verdict-yes { background: #d5e5cf; color: #2f5522; }
.verdict-maybe { background: #f4e2c4; color: #6b4818; }
.verdict-no { background: #f0d0c4; color: #7a2c14; }

/* ---------- Manifesto strip ---------- */

.manifesto-strip {
  background: var(--teal);
  color: var(--cream);
  padding: 44px 0;
  text-align: center;
}
.manifesto-strip .container-narrow { padding: 0 32px; }
.manifesto-strip p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0;
  color: var(--cream);
}
.manifesto-strip .attribution {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Single post ---------- */

.post-full {
  padding: 40px 0 80px;
}
.post-full-header {
  max-width: var(--container-narrow);
  margin: 0 auto 30px;
  padding: 0 24px;
  text-align: center;
}
.post-full-meta {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--terracotta);
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.post-full-meta .dot {
  width: 3px; height: 3px; border-radius: 50%; background: var(--grey-light);
}
.post-full-meta .date { color: var(--grey); }
.post-full-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.15;
  color: var(--teal);
  margin: 0 0 20px;
  font-weight: 700;
}
.post-full-excerpt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--teal-mid);
  line-height: 1.5;
  margin: 0 0 24px;
}
.post-full-image {
  max-width: var(--container);
  margin: 0 auto 40px;
  padding: 0 24px;
}
.post-full-image img {
  width: 100%;
  border-radius: 8px;
  max-height: 620px;
  object-fit: cover;
}
.post-full-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.post-full-content h2 { margin-top: 2em; }
.post-full-content h3 { margin-top: 1.8em; }
.post-full-content img { border-radius: 6px; margin: 1.5em 0; }
.post-full-content figure { margin: 1.5em 0; }
.post-full-content figcaption {
  font-size: 0.85rem;
  color: var(--grey);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

@media (max-width: 780px) {
  .post-full-title { font-size: 1.9rem; }
  .post-full-excerpt { font-size: 1.05rem; }
  .post-full-content { font-size: 1rem; }
}

/* ---------- Scorecard (site-wide, used inside posts) ---------- */

.scorecard {
  background: var(--cream);
  border: 1px solid var(--teal);
  border-radius: 6px;
  padding: 28px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(14, 59, 64, 0.08);
}
.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--grey-light);
  padding-bottom: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.scorecard-title {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.35rem;
  margin: 0;
}
.scorecard-total {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--terracotta);
  font-size: 2.4rem;
  line-height: 1;
  font-style: italic;
}
.scorecard-total .small { color: var(--teal); font-size: 0.55em; opacity: 0.7; }

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  margin-bottom: 20px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dotted var(--grey-light);
  font-size: 0.95rem;
}
.score-label {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 500;
}
.score-value {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.05rem;
  min-width: 48px;
  text-align: right;
}
.score-value .max { color: var(--grey); font-size: 0.75em; font-weight: 400; }

.scorecard-verdict {
  padding: 18px 20px;
  border-radius: 4px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.scorecard-verdict.verdict-yes { background: #d5e5cf; }
.scorecard-verdict.verdict-maybe { background: #f4e2c4; }
.scorecard-verdict.verdict-no { background: #f0d0c4; }

.verdict-label {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.4rem;
  font-style: italic;
  flex-shrink: 0;
}
.verdict-yes .verdict-label { color: #2f5522; }
.verdict-maybe .verdict-label { color: #6b4818; }
.verdict-no .verdict-label { color: #7a2c14; }

.verdict-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

@media (max-width: 620px) {
  .scorecard { padding: 20px; margin: 32px 0; }
  .scorecard-grid { grid-template-columns: 1fr; gap: 0 20px; }
  .scorecard-title { font-size: 1.15rem; }
  .scorecard-total { font-size: 2rem; }
  .scorecard-header { padding-bottom: 12px; margin-bottom: 14px; }
}

/* Legacy scorecard tables from imported posts — 4-column layout: crit / dots / num / note */
.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
  font-family: var(--font-sans);
  background: var(--cream);
  border: 1px solid var(--teal);
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
}
.scorecard-table th,
.scorecard-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--grey-light);
  vertical-align: middle;
  word-wrap: break-word;
}
.scorecard-table th {
  background: var(--teal);
  color: var(--cream);
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.scorecard-table tr:last-child td { border-bottom: none; }

.scorecard-table td.crit {
  width: 22%;
  font-weight: 600;
  color: var(--teal);
  font-family: var(--font-serif);
  font-size: 1rem;
}
.scorecard-table td.dots {
  width: 20%;
  color: var(--terracotta);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  font-family: 'Courier New', monospace;
  white-space: nowrap;
  line-height: 1;
}
.scorecard-table td.num {
  width: 10%;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--terracotta);
  text-align: center;
  font-size: 1.05rem;
}
.scorecard-table td.note {
  width: 48%;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
}
.scorecard-table tfoot td,
.scorecard-table .total-row td {
  background: var(--cream-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--teal);
  font-size: 1.1rem;
}

/* Mobile: stack each row as a card */
@media (max-width: 620px) {
  .scorecard-table {
    border: none;
    background: transparent;
    margin: 30px 0;
    display: block;
  }
  .scorecard-table thead { display: none; }
  .scorecard-table tbody { display: block; }
  .scorecard-table tr {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-areas:
      "crit dots num"
      "note note note";
    gap: 6px 12px;
    align-items: center;
    background: var(--cream);
    border: 1px solid var(--grey-light);
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
  }
  .scorecard-table td {
    border: none;
    padding: 0;
    width: auto !important;
  }
  .scorecard-table td.crit  { grid-area: crit; font-size: 0.95rem; }
  .scorecard-table td.dots  { grid-area: dots; font-size: 1rem; text-align: right; }
  .scorecard-table td.num   { grid-area: num;  text-align: right; }
  .scorecard-table td.note  { grid-area: note; font-size: 0.88rem; border-top: 1px dashed var(--grey-light); padding-top: 8px; margin-top: 4px; }
}

/* ---------- Sign-off ---------- */

.signoff {
  max-width: var(--container-narrow);
  margin: 60px auto 0;
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--grey-light);
}
.signoff p {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--teal-mid);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.signoff .attribution {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

/* ---------- Tags ---------- */

.post-tags {
  max-width: var(--container-narrow);
  margin: 30px auto 0;
  padding: 0 24px;
  text-align: center;
}
.post-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  background: var(--cream-dark);
  padding: 6px 14px;
  border-radius: 20px;
  margin: 4px;
  transition: background 0.15s, color 0.15s;
}
.post-tag:hover { background: var(--terracotta); color: var(--cream); }

/* ---------- Tag/archive header ---------- */

.tag-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--grey-light);
}
.tag-header .kicker {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  margin-bottom: 12px;
}
.tag-header h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--teal);
  margin: 0 0 12px;
  font-style: italic;
}
.tag-header .description {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--teal-mid);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 30px 0 60px;
  border-top: 1px solid var(--grey-light);
}
.pagination a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  padding: 10px 20px;
  border: 1px solid var(--grey-light);
  border-radius: 3px;
  transition: all 0.15s;
}
.pagination a:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
}
.pagination .page-number {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--grey);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--teal-dark);
  color: var(--cream);
  padding: 50px 0 30px;
  margin-top: 60px;
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.site-footer h4 {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cream);
  font-size: 1rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.site-footer p, .site-footer li {
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.9rem;
  line-height: 1.7;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--gold); }
.site-footer a:hover { color: var(--cream); }
.site-footer-brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--cream);
  margin: 0 0 8px;
  font-weight: 700;
}
.site-footer-brand .slash10 { color: var(--terracotta); }
.site-footer-copyright {
  border-top: 1px solid rgba(250, 246, 240, 0.15);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--cream);
  opacity: 0.7;
  text-align: center;
  letter-spacing: 0.06em;
}

@media (max-width: 780px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- KG (Ghost Koenig) card styles ---------- */

.kg-card { margin: 1.5em 0; }
.kg-image-card figcaption { text-align: center; font-size: 0.85rem; color: var(--grey); margin-top: 8px; font-style: italic; }
.kg-gallery-container { display: grid; gap: 8px; }
.kg-gallery-row { display: grid; gap: 8px; grid-auto-flow: column; grid-auto-columns: 1fr; }
.kg-callout-card { border-left: 4px solid var(--terracotta); background: var(--cream-dark); padding: 20px; margin: 1.5em 0; border-radius: 4px; }
.kg-toggle-card { border: 1px solid var(--grey-light); padding: 20px; margin: 1.5em 0; border-radius: 6px; }
.kg-bookmark-card { margin: 1.5em 0; }
.kg-bookmark-container { display: flex; border: 1px solid var(--grey-light); border-radius: 6px; overflow: hidden; text-decoration: none; }
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-family: var(--font-serif); color: var(--teal); font-weight: 700; }
.kg-bookmark-thumbnail { flex: 0 0 200px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Ghost content utility classes */
.kg-width-wide { max-width: 100%; margin-left: -10%; margin-right: -10%; }
.kg-width-full { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; max-width: 100vw; }

@media (max-width: 900px) {
  .kg-width-wide, .kg-width-full { margin-left: 0; margin-right: 0; width: 100%; }
}

/* ---------- About / static page ---------- */

.page-full {
  padding: 40px 0 80px;
}
.page-full-header {
  max-width: var(--container-narrow);
  margin: 0 auto 24px;
  padding: 0 24px;
  text-align: center;
}
.page-full-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--teal);
  margin: 0 0 12px;
  font-style: italic;
  font-weight: 700;
}
.page-full-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ---------- Error page ---------- */

.error-page {
  padding: 80px 0;
  text-align: center;
}
.error-code {
  font-family: var(--font-serif);
  font-size: 8rem;
  color: var(--terracotta);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}
.error-message {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--teal);
  margin: 0 0 30px;
  font-style: italic;
}

/* ---------- /links page (Linktree replacement) ---------- */

.links-page {
  min-height: calc(100vh - 60px);
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  padding: 60px 20px 40px;
  display: flex;
  justify-content: center;
}

.links-inner {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.links-brand {
  display: inline-block;
  margin-bottom: 24px;
}

.links-brand img {
  max-width: 220px;
  height: auto;
  display: inline-block;
}

.links-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--teal);
  margin: 0 0 16px;
  line-height: 1.3;
}

.links-bio {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--grey);
  max-width: 420px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

/* Style ALL anchors inside the content block as buttons */
.links-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.links-content p { margin: 0; }

.links-content a {
  display: block;
  padding: 16px 20px;
  background: var(--cream);
  border: 2px solid var(--teal);
  border-radius: 10px;
  color: var(--teal);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 0 var(--teal);
}

.links-content a:hover {
  background: var(--teal);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--teal-dark);
}

.links-content a:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--teal-dark);
}

/* Featured/primary link — highlighted */
.links-content h2 + p a,
.links-content .featured-link a,
.links-content a[href*="www.outoften.travel"] {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta-dark);
  box-shadow: 0 2px 0 var(--terracotta-dark);
}

.links-content h2 + p a:hover,
.links-content .featured-link a:hover,
.links-content a[href*="www.outoften.travel"]:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  color: var(--cream);
}

/* Section headings within the links list */
.links-content h2,
.links-content h3 {
  font-family: var(--font-serif);
  color: var(--teal);
  margin: 20px 0 4px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-style: normal;
  opacity: 0.7;
}

.links-content h2:first-child,
.links-content h3:first-child { margin-top: 0; }

.links-footer {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 40px;
}

/* On the /links page, hide the main site header/footer for a clean bio-page feel */
body.page-links .site-header,
body.page-links .site-footer,
body.page-links .site-nav { display: none; }

@media (max-width: 480px) {
  .links-page { padding: 40px 16px 30px; }
  .links-tagline { font-size: 1.15rem; }
  .links-bio { font-size: 0.92rem; }
  .links-content a { padding: 14px 18px; font-size: 0.95rem; }
}
