:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 48px 0 32px;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

main {
  padding-bottom: 64px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.archive-list {
  display: grid;
  gap: 12px;
}

.archive-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.archive-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  text-decoration: none;
}

.archive-date {
  font-weight: 600;
  color: var(--text);
}

.archive-arrow {
  color: var(--muted);
  font-size: 1.2rem;
}

.digest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 5vw, 40px);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.digest h1 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  letter-spacing: -0.03em;
}

.digest-date {
  margin: 4px 0 32px;
  color: var(--muted);
}

.digest-section {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.digest-section:first-of-type {
  border-top: 0;
}

.digest-section h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.value {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  header {
    padding-top: 32px;
  }

  .archive-card {
    padding: 16px;
  }

  .digest {
    border-radius: 12px;
  }
}
