:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #161616;
  --muted: #6e6e68;
  --line: #dcdcd5;
  --soft-line: #ecece7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 max(24px, calc((100vw - 900px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.94);
  backdrop-filter: blur(12px);
}

.site-title {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.mailbox-link {
  display: inline-flex;
  min-height: 40px;
  max-width: min(64vw, 420px);
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mailbox-link small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.hero {
  max-width: none;
}

.eyebrow,
.issue-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
  white-space: nowrap;
}

.title-break-mobile {
  display: none;
}

.summary {
  width: 100%;
  max-width: 900px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-submit-link,
.hero-mystery-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.hero-mystery-link {
  background: transparent;
  color: var(--text);
}

.issue-list {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.issue-link {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--soft-line);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.issue-link:first-child {
  border-top: 0;
}

.issue-link small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.issue-link:hover span {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.articles {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.feature-article {
  max-width: 840px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}

.feature-article .issue-label {
  color: var(--muted);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.article-meta time {
  font: inherit;
  white-space: nowrap;
}

.article-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.article-copy {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(17px, 1.05vw, 19px);
  font-weight: 520;
  line-height: 1.82;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.article-toggle:checked ~ .article-copy {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.article-inline-link {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.read-toggle {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: clamp(17px, 1.05vw, 19px);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.read-close {
  display: none;
}

.article-toggle:checked ~ .read-toggle .read-open {
  display: none;
}

.article-toggle:checked ~ .read-toggle .read-close {
  display: inline;
}

.article-toggle:focus-visible ~ .read-toggle {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.read-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.image-tile {
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
}

.image-tile-wide {
  grid-column: span 3;
  max-height: 720px;
  background: var(--surface);
}

.image-tile-feature {
  grid-column: span 3;
  aspect-ratio: 1;
  background: var(--surface);
}

.image-tile-extra {
  display: none;
}

.article-toggle:checked ~ .image-gallery .image-tile-extra {
  display: block;
}

.image-tile-thumb {
  aspect-ratio: 1;
  background: var(--surface);
}

.image-tile a {
  display: block;
  width: 100%;
  height: 100%;
}

.image-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.article h2 {
  margin: 14px 0 16px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.1;
}

.article p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.site-title:focus-visible,
.mailbox-link:focus-visible,
.hero-submit-link:focus-visible,
.hero-mystery-link:focus-visible,
.issue-link:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
    padding: 0 16px;
  }

  .mailbox-link {
    max-width: 62vw;
  }

  .page {
    width: min(100% - 32px, 1040px);
    padding: 40px 0 56px;
  }

  h1 {
    font-size: 44px;
    line-height: 1.05;
    white-space: normal;
  }

  .title-break-mobile {
    display: block;
  }

  .summary {
    font-size: 16px;
  }

  .issue-list {
    margin-top: 34px;
  }

  .issue-link {
    font-size: 16px;
  }

  .articles {
    margin-top: 32px;
  }

  .feature-article {
    max-width: none;
    padding: 22px 18px 24px;
    border-radius: 0;
    margin-right: -16px;
    margin-left: -16px;
  }

  .article-copy,
  .read-toggle {
    font-size: 17px;
  }

  .article-copy {
    line-height: 1.78;
  }

  .read-toggle {
    font-weight: 700;
  }

  .image-gallery {
    gap: 6px;
  }
}
