:root {
  color-scheme: light;
  --ink: #1d1a17;
  --muted-ink: #5b5148;
  --paper: #f5eddd;
  --paper-deep: #eadbc0;
  --rule: #2a241e;
  --accent: #8f2f21;
  --accent-soft: #f3d7c9;
  --shadow: rgba(56, 41, 26, 0.18);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background:
    radial-gradient(circle at top left, rgba(143, 47, 33, 0.12), transparent 34rem),
    linear-gradient(135deg, #d7c4a1, #f9f2e7 44%, #cfb48a);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family:
    "Songti SC",
    "STSong",
    "Noto Serif CJK SC",
    "Source Han Serif SC",
    "Times New Roman",
    serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.newspaper {
  width: min(calc(100% - 32px), var(--max-width));
  margin: clamp(16px, 4vw, 48px) auto;
  padding: clamp(18px, 4.2vw, 56px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      90deg,
      rgba(64, 47, 30, 0.018) 0,
      rgba(64, 47, 30, 0.018) 1px,
      transparent 1px,
      transparent 7px
    ),
    var(--paper);
  border: 1px solid rgba(42, 36, 30, 0.34);
  box-shadow: 0 24px 70px var(--shadow);
}

.masthead {
  text-align: center;
  border-top: 5px double var(--rule);
  border-bottom: 5px double var(--rule);
  padding: clamp(14px, 3vw, 28px) 0 clamp(16px, 3vw, 30px);
}

.masthead__topline,
.masthead__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  color: var(--muted-ink);
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  letter-spacing: 0.08em;
}

.masthead__topline span:not(:last-child)::after,
.masthead__meta span:not(:last-child)::after,
.masthead__meta a::after {
  content: "•";
  margin-left: 18px;
  color: var(--accent);
}

.masthead h1 {
  margin: clamp(8px, 2vw, 18px) 0 0;
  font-size: clamp(3.4rem, 14vw, 9rem);
  line-height: 0.94;
  letter-spacing: clamp(0.01em, 0.5vw, 0.08em);
  font-weight: 900;
}

.roman-title {
  width: fit-content;
  margin: 8px auto clamp(12px, 2vw, 20px);
  padding: 4px 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.88rem, 2.2vw, 1.15rem);
  letter-spacing: 0.24em;
}

.masthead__meta a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.statement {
  margin: clamp(16px, 3vw, 28px) 0;
  padding: 12px 16px;
  border: 1px solid rgba(42, 36, 30, 0.48);
  background: rgba(255, 255, 255, 0.28);
  font-size: clamp(0.94rem, 2vw, 1rem);
}

.statement p,
.columns p,
.recruitment p {
  margin: 0;
}

.front-page {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
}

.headline-block {
  text-align: center;
  border-bottom: 3px solid var(--rule);
  padding-bottom: clamp(16px, 3vw, 26px);
}

.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  background: var(--rule);
  color: var(--paper);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
}

.headline-block h2 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section-rule {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--rule);
}

.section-rule h3 {
  margin: 0;
  font-size: clamp(1.35rem, 3.6vw, 2.25rem);
  line-height: 1.2;
}

.section-rule p {
  margin: 0 0 5px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.member-card {
  min-height: 100%;
  border: 1px solid rgba(42, 36, 30, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0.12)),
    var(--paper-deep);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.member-card:focus-within,
.member-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 26px rgba(75, 48, 29, 0.16);
}

.member-card__link {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  text-decoration: none;
}

.member-card__avatar-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(42, 36, 30, 0.45);
  background:
    linear-gradient(135deg, rgba(143, 47, 33, 0.12), transparent),
    var(--paper);
}

.member-card__avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(29, 26, 23, 0.08) 0,
      rgba(29, 26, 23, 0.08) 1px,
      transparent 1px,
      transparent 5px
    ),
    rgba(245, 237, 221, 0.12);
  mix-blend-mode: multiply;
}

.member-card__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.62) saturate(0.68) contrast(1.08) brightness(0.96);
  transform: scale(1.01);
}

.member-card__name {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.2;
  font-weight: 800;
}

.member-card__url {
  overflow-wrap: anywhere;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.member-card__url::before {
  content: "[";
}

.member-card__url::after {
  content: "]";
}

.member-card__quote {
  color: var(--muted-ink);
  font-size: clamp(0.95rem, 2vw, 1rem);
}

.member-card--disabled {
  opacity: 0.62;
}

.columns {
  columns: 2 320px;
  column-gap: clamp(24px, 4vw, 48px);
  column-rule: 1px solid rgba(42, 36, 30, 0.3);
  font-size: clamp(1rem, 2vw, 1.08rem);
  text-align: justify;
}

.columns p + p {
  margin-top: 1em;
}

.columns--wide {
  columns: 1;
  padding: clamp(14px, 2.5vw, 22px) 0;
  border-top: 1px solid rgba(42, 36, 30, 0.34);
  border-bottom: 1px solid rgba(42, 36, 30, 0.34);
  font-size: clamp(1.05rem, 2.2vw, 1.18rem);
}

.member-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.member-section--later {
  padding-top: clamp(4px, 1vw, 12px);
  opacity: 0.94;
}

.member-section--later .section-rule {
  border-bottom-width: 1px;
}

.member-section--later .section-rule h3 {
  color: var(--muted-ink);
  font-size: clamp(1.08rem, 2.4vw, 1.55rem);
  font-weight: 700;
}

.member-card--later {
  border-color: rgba(42, 36, 30, 0.26);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.member-card--later:hover,
.member-card--later:focus-within {
  transform: translateY(-1px);
  border-color: rgba(143, 47, 33, 0.58);
  box-shadow: 0 8px 18px rgba(75, 48, 29, 0.1);
}

.member-card--later .member-card__link {
  justify-items: center;
  gap: 4px;
  padding: 12px 8px 10px;
  text-align: center;
}

.member-card--later .member-card__avatar-wrap {
  width: 72px;
  border-radius: 999px;
  opacity: 0.78;
}

.member-card--later .member-card__name {
  font-size: 0.98rem;
  font-weight: 700;
}

.member-card--later .member-card__url {
  max-width: 100%;
  color: var(--muted-ink);
  font-size: 0.76rem;
  line-height: 1.25;
}

.member-card--later .member-card__quote {
  color: var(--muted-ink);
  font-size: 0.76rem;
  line-height: 1.35;
}

.member-card--later .member-card__quote:empty {
  display: none;
}

.recruitment {
  display: grid;
  gap: 12px;
  padding: clamp(16px, 3vw, 24px);
  border: 2px solid var(--rule);
  background:
    linear-gradient(135deg, rgba(143, 47, 33, 0.12), transparent 52%),
    rgba(255, 255, 255, 0.26);
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
}

.recruitment strong {
  margin-right: 0.1em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .member-grid,
  .member-grid--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html {
    background: var(--paper);
  }

  .newspaper {
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 0;
    box-shadow: none;
  }

  .masthead__topline,
  .masthead__meta {
    gap: 5px 10px;
    letter-spacing: 0.04em;
  }

  .masthead__topline span:not(:last-child)::after,
  .masthead__meta span:not(:last-child)::after,
  .masthead__meta a::after {
    margin-left: 10px;
  }

  .masthead h1 {
    letter-spacing: 0;
  }

  .roman-title {
    letter-spacing: 0.13em;
  }

  .headline-block {
    text-align: left;
  }

  .headline-block h2 {
    letter-spacing: -0.03em;
  }

  .section-rule {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .section-rule p {
    margin-bottom: 8px;
  }

  .member-grid,
  .member-grid--primary {
    grid-template-columns: 1fr;
  }

  .member-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-card__link {
    padding: 15px 14px;
  }

  .columns {
    columns: 1;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
