:root {
  color-scheme: light;
  --background: #f8faf8;
  --surface: #ffffff;
  --text: #172019;
  --muted: #637067;
  --forest: #234f36;
  --forest-dark: #153421;
  --forest-light: #dfeae2;
  --line: #d9e1da;
  --link: #245d3d;
  --max-width: 920px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  color: var(--text);
  font-family:
    system-ui,
    -apple-ystem,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  line-height: 1.8;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(
      180deg,
      #ffffff 0,
      var(--background) 28rem
    );
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--forest-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
}

.site-header-inner {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.site-name {
  color: var(--forest-dark);
  font-family:
    Georgia,
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.site-navigation {
  display: flex;
  gap: 1rem;
}

.site-navigation a {
  font-size: 0.92rem;
}

.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.site-footer {
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
}

.home-page .site-header {
  display: none;
}

.home-hero {
  padding-top: 1rem;
  text-align: center;
}

.station-name {
  margin: 0 0 0.4rem;
  color: #2451a4;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-style: italic;
  letter-spacing: 0.03em;
}

.home-hero h1 {
  margin: 0 0 2rem;
  color: var(--forest-dark);
  font-family:
    Georgia,
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.forest-photo {
  display: flex;
  width: min(596px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #aeb9b0;
  background: #d6ded7;
  box-shadow:
    0 1.2rem 3rem rgb(23 48 31 / 18%);
}

.forest-photo img {
  display: block;
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  object-fit: cover;
}

.home-introduction {
  max-width: 38rem;
  margin: 2rem auto 0;
  color: var(--muted);
}

.home-blog-link {
  margin-top: 2rem;
}

.home-blog-link a {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--forest);
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  text-decoration: none;
}

.home-blog-link a:hover,
.home-blog-link a:focus-visible {
  background: var(--forest-dark);
  color: #fff;
}

.page-heading,
.entry-header {
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.25rem;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-heading h1,
.entry-header h1 {
  margin: 0;
  color: var(--forest-dark);
  font-family:
    Georgia,
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  line-height: 1.35;
}

.page-description,
.entry-date,
.article-count {
  color: var(--muted);
}

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

.article-summary {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.article-summary h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.55;
}

.article-date {
  color: var(--muted);
  font-size: 0.88rem;
}

.category-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.article-summary .category-list {
  grid-column: 2;
}

.category-list li,
.tag-list li {
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: var(--forest-light);
  color: var(--forest-dark);
  font-size: 0.75rem;
}

.blog-entry {
  max-width: 760px;
  margin: 0 auto;
}

.entry-content {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content h2,
.entry-content h3 {
  margin-top: 2.4rem;
  color: var(--forest-dark);
  line-height: 1.45;
}

.entry-content pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 0.35rem;
  background: #eef1ee;
  line-height: 1.5;
}

.entry-content code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}

.entry-content blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 0.25rem solid var(--forest-light);
  color: var(--muted);
}

.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
}

.legacy-embed-note {
  padding: 0.8rem 1rem;
  border-left: 0.25rem solid #b48738;
  background: #fff8e9;
  color: #695326;
}

.entry-footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 680px) {
  .site-header-inner {
    display: block;
  }

  .site-navigation {
    margin-top: 0.5rem;
  }

  .site-main {
    padding-top: 2rem;
  }

  .article-summary {
    display: block;
  }

  .article-summary h2 {
    margin-top: 0.25rem;
  }

  .article-summary .category-list {
    margin-top: 0.6rem;
  }

  .forest-photo img {
    width: 33.333%;
    height: auto;
  }
}
