:root {
  color: #1c2e2e;
  background: #f3f0e8;
  font-family:
    "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo,
    sans-serif;
  font-synthesis: none;
  --ink: #1c2e2e;
  --ink-soft: #455a56;
  --muted: #697974;
  --green: #176d66;
  --green-dark: #10524e;
  --green-soft: #e2eee9;
  --paper: #fffaf0;
  --paper-bright: #fffdf8;
  --line: #d6ddd7;
  --rose: #9b5c72;
  --gold: #c0832e;
  --shadow: 0 20px 55px rgb(35 57 53 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 93% 9rem, rgb(188 216 203 / 45%), transparent 28rem),
    radial-gradient(circle at 5% 48rem, rgb(238 205 183 / 36%), transparent 25rem),
    #f3f0e8;
  line-height: 1.85;
}

img {
  max-width: 100%;
}

a {
  color: var(--green);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green-dark);
}

a:focus-visible {
  outline: 3px solid rgb(23 109 102 / 35%);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-dark);
  transform: translateY(-150%);
}

.skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgb(199 208 202 / 76%);
  background: rgb(255 253 248 / 90%);
  backdrop-filter: blur(12px);
}

.site-header__inner,
.blog-hero,
.blog-main,
.article-main,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
}

.site-header__inner {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  display: block;
  width: 146px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  font-size: 13px;
  font-weight: 800;
}

.site-nav a {
  color: #3f5551;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.blog-hero {
  padding: clamp(72px, 12vw, 132px) 0 clamp(62px, 9vw, 104px);
  position: relative;
}

.blog-hero::before {
  content: "";
  width: clamp(160px, 28vw, 330px);
  aspect-ratio: 1;
  position: absolute;
  z-index: -1;
  top: 40px;
  right: 2%;
  border: 1px solid rgb(23 109 102 / 12%);
  border-radius: 56% 44% 52% 48% / 45% 54% 46% 55%;
  background:
    radial-gradient(circle at 70% 30%, rgb(228 181 95 / 58%) 0 7%, transparent 7.5%),
    linear-gradient(145deg, rgb(255 255 255 / 55%), rgb(209 229 219 / 78%));
  box-shadow: var(--shadow);
  transform: rotate(-6deg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(44px, 7vw, 78px);
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.blog-hero > p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
}

.blog-main {
  padding-bottom: clamp(80px, 11vw, 130px);
}

.featured,
.updates,
.related {
  padding: clamp(58px, 8vw, 92px) 0;
  border-top: 1px solid rgb(181 195 187 / 68%);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.4;
}

.rss-link {
  padding: 8px 0;
  font-size: 12px;
  font-weight: 800;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgb(255 253 248 / 93%);
  box-shadow: 0 14px 38px rgb(38 59 55 / 7%);
}

.post-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: start;
}

.post-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: #e6e5dc;
}

.post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: filter 180ms ease;
}

.post-card__image:hover img {
  filter: brightness(0.98);
}

.post-card--featured .post-card__image {
  align-self: center;
}

.post-card__body {
  display: flex;
  min-height: 280px;
  padding: clamp(24px, 4vw, 38px);
  flex-direction: column;
}

.post-card--featured .post-card__body {
  min-height: 0;
  justify-content: center;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.post-meta > span:first-child {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--green-dark);
  background: var(--green-soft);
}

.post-card h2 {
  margin: 17px 0 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.55;
}

.post-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--green-dark);
}

.post-card__body > p {
  margin: 15px 0 24px;
  color: var(--ink-soft);
  font-size: 14px;
}

.text-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgb(255 253 248 / 65%);
}

.article-main {
  padding: 34px 0 clamp(90px, 12vw, 140px);
}

.breadcrumb {
  display: flex;
  margin-bottom: 42px;
  flex-wrap: wrap;
  gap: 7px 10px;
  color: var(--muted);
  font-size: 11px;
}

.article {
  width: min(820px, 100%);
  margin: 0 auto;
}

.article-header {
  padding-top: clamp(18px, 4vw, 44px);
}

.article-header h1 {
  margin: 24px 0 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(34px, 5.4vw, 58px);
  letter-spacing: 0.01em;
  line-height: 1.42;
}

.article-lead {
  margin: 25px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}

.article-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(36px, 7vw, 64px);
  border: 1px solid rgb(117 132 125 / 22%);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.article-body {
  width: min(700px, 100%);
  margin: clamp(54px, 8vw, 82px) auto 0;
  color: #304642;
  font-size: 16px;
  line-height: 2.05;
}

.article-body h2 {
  margin: 3.2em 0 0.85em;
  padding-top: 0.35em;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(25px, 3.5vw, 34px);
  line-height: 1.55;
}

.article-body h3 {
  margin: 2.4em 0 0.7em;
  color: var(--ink);
  font-size: 20px;
}

.article-body p {
  margin: 1.3em 0;
}

.article-body ul,
.article-body ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

.article-body li {
  margin: 0.5em 0;
  padding-left: 0.25em;
}

.article-body blockquote {
  margin: 2em 0;
  padding: 15px 22px;
  border-left: 4px solid var(--rose);
  color: #5d5055;
  background: rgb(250 238 240 / 62%);
}

.article-body blockquote p {
  margin: 0;
}

.article-body code {
  padding: 0.12em 0.36em;
  border-radius: 5px;
  background: #e7ece8;
  font-size: 0.9em;
}

.article-actions {
  display: flex;
  width: min(700px, 100%);
  margin: clamp(55px, 8vw, 82px) auto 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 18px;
}

.article-actions p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
}

.share-button {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #101817;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #101817;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.share-button:hover {
  color: #101817;
  background: transparent;
}

.article-actions .text-link {
  margin: 0 0 0 auto;
}

.related {
  margin-top: clamp(72px, 10vw, 118px);
}

.site-footer {
  padding: 46px 0;
  color: #b6c2bf;
  background: #14201f;
}

.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 24px;
  font-size: 12px;
}

.site-footer a {
  color: #e3eae8;
}

.site-footer p {
  margin: 0;
  color: #8fa09c;
  font-size: 10px;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .post-card--featured {
    grid-template-columns: 1fr;
  }

  .post-card--featured .post-card__body {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .site-header__inner {
    min-height: auto;
    padding: 15px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand img {
    width: 128px;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 4px;
    justify-content: flex-start;
    gap: 13px 20px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .blog-hero::before {
    opacity: 0.55;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  .blog-hero,
  .blog-main,
  .article-main,
  .site-footer__inner {
    width: min(100% - 28px, 1120px);
  }

  .blog-hero {
    padding-top: 62px;
  }

  .section-heading--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .post-card {
    border-radius: 18px;
  }

  .post-card__body {
    min-height: 0;
    padding: 23px;
  }

  .article-cover {
    border-radius: 15px;
  }

  .article-body {
    font-size: 15px;
    line-height: 2;
  }

  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .share-button {
    width: 100%;
  }

  .article-actions .text-link {
    margin: 6px 0 0;
    text-align: center;
  }

  .site-footer p {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .post-card__image img {
    transition: none;
  }
}
