:root {
  color-scheme: light;
  --paper: #ffffff;
  --page: #f7f8f4;
  --ink: #192c26;
  --muted: #52625b;
  --accent: #155b47;
  --line: #dbe3dc;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 1rem/1.65 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2279a6; outline-offset: 4px; }
.section-inner, .header-inner { width: min(100% - 64px, 1176px); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 3;
  top: .5rem;
  left: .5rem;
  transform: translateY(-160%);
  padding: .55rem 1rem;
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner, .brand, .nav { display: flex; align-items: center; }
.header-inner { min-height: 67px; justify-content: space-between; gap: 14px; }
.brand { gap: 10px; font-size: 1.04rem; font-weight: 800; white-space: nowrap; }
.brand-mark, .mini-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #e2eee8;
  color: var(--accent);
}
.brand-mark svg, .mini-icon svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav { gap: clamp(14px, 2.6vw, 34px); font-size: .875rem; font-weight: 700; }
.nav a { padding-block: 5px; }
.nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.home-hero { padding-top: 32px; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: 22px;
  background: #e6f0e9;
}
.hero-copy { align-self: center; padding: 32px clamp(24px, 4.2vw, 64px); }
.hero-topics { margin: 0 0 12px; color: var(--accent); font-size: .875rem; font-weight: 800; }
.hero-copy h1 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.45rem); line-height: 1.23; }
.hero-description { max-width: 29rem; margin: 16px 0 19px; color: #394c43; }
.hero-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 8px 17px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 750;
}
.hero-action:hover { background: #104333; }
.hero-image { width: 100%; height: 100%; min-height: 322px; max-height: 390px; object-fit: cover; object-position: 68% 57%; }

.stories, .browse-topics, .policy-band { padding-block: 43px; }
h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.125rem); line-height: 1.25; }
.list-heading { display: flex; gap: 12px; align-items: baseline; }
#story-count { font-size: .875rem; color: var(--muted); }
.story-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.story-filters button {
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 700;
}
.story-filters button:hover { border-color: var(--accent); }
.story-filters button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.stories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-filters[hidden] + .stories-grid { margin-top: 20px; }
.story {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 3px 10px #192c2609;
}
.story:hover { border-color: #91aa9a; box-shadow: 0 5px 16px #192c2614; }
.story:hover h3 { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.story-image { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #e6ede7; }
.story-copy { padding: 16px 17px 19px; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; color: var(--muted); font-size: .8125rem; }
.topic-label { border-radius: 4px; padding: 1px 7px; background: #e2efe8; color: #225b45; font-weight: 800; }
.money .topic-label { background: #e0efec; color: #255a56; }
.side .topic-label { background: #f5ebd8; color: #71501f; }
.career .topic-label { background: #f5e5e1; color: #87473c; }
.life .topic-label { background: #e5edf5; color: #325773; }
.tools .topic-label { background: #eee8f5; color: #554477; }
.story h3 { margin: 9px 0 6px; font-size: 1.125rem; line-height: 1.45; }
.story p { margin: 0; color: var(--muted); font-size: .9375rem; }

.browse-topics, .site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.topics-grid a {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.topics-grid a:hover { border-color: var(--accent); }
.topics-grid span { font-size: .875rem; color: var(--muted); }
.policy-band { border-top: 1px solid var(--line); }
.policy-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.policy-item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.policy-item p { margin: 3px 0 0; color: var(--muted); font-size: .875rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 23px; }
.footer-inner div div, .footer-links { font-size: .875rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 900px) {
  .section-inner, .header-inner { width: min(100% - 40px, 1176px); }
  .stories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .section-inner, .header-inner { width: calc(100% - 32px); }
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; gap: 6px; padding-block: 10px; }
  .nav { flex-wrap: wrap; gap: 2px 16px; }
  .home-hero { padding-top: 16px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); border-radius: 15px; }
  .hero-copy { padding: 23px 20px; }
  .hero-description { margin-block: 10px 14px; }
  .hero-image { min-height: 0; height: auto; aspect-ratio: 2.15; object-position: 67% 60%; }
  .stories, .browse-topics, .policy-band { padding-block: 30px; }
  .stories-grid, .policy-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-filters { gap: 6px; }
  .story-filters button { min-height: 40px; padding-inline: 11px; }
}

.topic-guide { margin: 15px 0 0; font-size: .875rem; }
.topic-guide a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
