:root {
  --bg: #f6f3ee;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --accent: #c2410c;
  --accent-soft: #fff7ed;
  --shadow: 0 12px 40px rgba(28, 25, 23, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #fde8d8 0%, transparent 28%),
    radial-gradient(circle at bottom right, #e7f0ff 0%, transparent 24%),
    var(--bg);
  min-height: 100vh;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4.5rem;
}

.hero {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.intro {
  margin: 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
}

.living-note {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.panel-header h2 {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.count {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.status {
  display: none;
  margin: 1rem 1.5rem 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
}

.status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
}

thead th {
  text-align: left;
  padding: 0.9rem 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fafaf9;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: #fffaf5;
}

.date-cell {
  width: 11rem;
  white-space: nowrap;
  color: var(--muted);
}

.link-cell a {
  color: var(--text);
  text-decoration: none;
  word-break: break-all;
  line-height: 1.5;
}

.link-cell a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.placeholder {
  color: var(--muted);
  text-align: center;
}

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  box-shadow: 0 -4px 20px rgba(28, 25, 23, 0.06);
}

.site-footer code {
  font-size: 0.8rem;
  background: #f5f5f4;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.seo-content {
  margin-top: 2.5rem;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.seo-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.seo-content h3 {
  margin: 1.75rem 0 0.75rem;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.seo-content p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.seo-content p:last-child {
  margin-bottom: 0;
}

.seo-content strong {
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 640px) {
  .page {
    padding-top: 2rem;
  }

  thead th,
  tbody td {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .date-cell {
    width: auto;
  }

  .seo-content {
    padding: 1.5rem 1.25rem;
  }
}
