/* Broadsheet — design-system tokens (from the Claude Design project), plus
   the page layer for the 1a "新聞の一面" front page. */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;600&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #0088b0;
  --color-accent-2: #d6006c;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #e9f8ff;
  --color-accent-200: #cbeeff;
  --color-accent-300: #99e0ff;
  --color-accent-400: #62c5ee;
  --color-accent-500: #38a6cf;
  --color-accent-600: #1186ac;
  --color-accent-700: #006786;
  --color-accent-800: #004961;
  --color-accent-900: #0a303e;

  --color-accent-2-100: #fff1f4;
  --color-accent-2-200: #ffdee6;
  --color-accent-2-300: #ffc0d0;
  --color-accent-2-400: #ff90b1;
  --color-accent-2-500: #ff458e;
  --color-accent-2-600: #d82071;
  --color-accent-2-700: #aa0b56;
  --color-accent-2-800: #790e3d;
  --color-accent-2-900: #4b1528;

  --font-heading: 'Source Serif 4', 'Noto Serif JP', serif;
  --font-heading-weight: 600;
  --font-body: 'Source Serif 4', 'Noto Serif JP', serif;

  --space-1: 5px;
  --space-2: 10px;
  --space-3: 15px;
  --space-4: 20px;
  --space-6: 30px;
  --space-8: 40px;

  --radius-sm: 1px;
  --radius-md: 2px;
  --radius-lg: 4px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* — the sheet — */
.sheet {
  max-width: 1240px;
  margin: 0 auto;
  padding: 50px clamp(20px, 5vw, 60px) 70px;
}

/* — masthead: thick-thin rule pair under the title — */
.masthead { display: flex; flex-direction: column; gap: 15px; margin-bottom: 50px; }
.masthead h1 {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.masthead .rules {
  border-top: 4px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding: 8px 0;
  margin-top: 4px;
  box-shadow: 0 -7px 0 -6px var(--color-text);
}

.columns { display: flex; flex-wrap: wrap; gap: 70px; align-items: flex-start; }

/* — main column: article rows — */
.stories { flex: 2 1 560px; min-width: 0; max-width: 820px; display: flex; flex-direction: column; gap: 30px; }
.story-list { display: flex; flex-direction: column; gap: 30px; }

.story {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}
.story:hover { color: var(--color-accent-700); }
.story .thumb {
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  width: 100%;
  background: repeating-linear-gradient(135deg, var(--color-neutral-200) 0 6px, var(--color-neutral-300) 6px 7px);
}
.story .thumb-contain { object-fit: contain; }
.story .meta { display: flex; gap: 12px; font-size: 13px; }
.story .meta .service { font-weight: 600; }
.story .meta .date { color: var(--color-neutral-700); }
.story .headline { font-size: 21px; font-weight: 600; line-height: 1.35; text-wrap: pretty; }
.story .body { display: flex; flex-direction: column; gap: 6px; }

/* tinted fallback card when an item has no OGP image, dot-screened like
   newsprint */
.tintcard {
  aspect-ratio: 1200 / 630;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--color-text);
}
.tintcard::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.14) 30%, transparent 32%);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tintcard .service { position: relative; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.tintcard .title {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

/* service inks */
.service-hatena { color: var(--color-accent-700); }
.service-zenn { color: var(--color-accent-800); }
.service-speakerdeck { color: var(--color-accent-2-700); }
.tint-hatena, .tint-zenn { background: var(--color-accent-100); }
.tint-speakerdeck { background: var(--color-accent-2-100); }

/* — pager — */
.pager { display: flex; align-items: center; gap: 25px; font-size: 15px; margin-top: 10px; }
.pager button {
  all: unset;
  cursor: pointer;
  color: var(--color-accent);
}
.pager button:hover { color: var(--color-accent-600); }
.pager button:disabled { opacity: 0.3; cursor: default; }
.pager button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.pager .label { color: var(--color-neutral-700); font-variant-numeric: tabular-nums; }

.feed-status { font-size: 14px; color: var(--color-neutral-700); }

@media (max-width: 720px) {
  .sheet { padding-top: 32px; }
  .columns { gap: 50px; }
  .story { grid-template-columns: 120px minmax(0, 1fr); gap: 15px; }
  .story .headline { font-size: 17px; }
}
