:root {
  --color-bg: #f7f7f7;
  --color-bg-sub: #efefef;
  --color-surface: #ffffff;
  --color-primary: #b71c2b;
  --color-text: #2f3136;
  --color-muted: #666b72;
  --color-line: #dedede;
  --color-cream: #f4e8d0;
  --color-plant: #6d8c5b;
  --color-pink: #f3d7d9;
  --shadow-card: 0 12px 28px rgba(47, 49, 54, 0.08);
  --shadow-card-hover: 0 16px 34px rgba(47, 49, 54, 0.12);
  --radius-card: 12px;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.75;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  max-width: 11em;
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 7vw, 4.7rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

p {
  margin-bottom: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-width {
  width: min(100% - 40px, var(--content-width));
  margin: 0 auto;
}

.section {
  padding: 86px 0;
}

.section-band {
  background: var(--color-bg-sub);
}

.section__header {
  max-width: 760px;
  margin-bottom: 34px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(47, 49, 54, 0.08);
  background: rgba(247, 247, 247, 0.94);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--content-width));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.site-logo__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-primary);
  font-weight: 800;
}

.site-logo__name,
.site-logo__sub {
  display: block;
}

.site-logo__sub {
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--color-muted);
  font-size: 0.94rem;
  font-weight: 700;
  transition: color 220ms ease, background-color 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
  background: #ffffff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--color-text);
}

.hero {
  padding: 54px 0 76px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: 48px;
}

.hero__lead {
  max-width: 590px;
  color: var(--color-muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 800;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 10px 22px rgba(183, 28, 43, 0.2);
}

.button--secondary {
  border-color: var(--color-line);
  color: var(--color-text);
  background: var(--color-surface);
}

.hero__visual {
  margin: 0;
}

.hero__visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.hero__visual figcaption {
  max-width: 560px;
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card-grid--featured {
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
}

.record-card,
.tool-card,
.compact-grid article,
.note-list article,
.tenko-note {
  border: 1px solid rgba(47, 49, 54, 0.07);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.record-card,
.tool-card,
.compact-grid article,
.note-list article {
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.record-card:hover,
.tool-card:hover,
.compact-grid article:hover,
.note-list article:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.record-card {
  overflow: hidden;
}

.record-card__body,
.tool-card,
.compact-grid article,
.note-list article {
  padding: 24px;
}

.record-card__meta,
.tag-list {
  color: var(--color-plant);
  font-size: 0.83rem;
  font-weight: 800;
}

.record-card p:not(.record-card__meta),
.tool-card p:not(.tag-list),
.compact-grid p,
.note-list p,
.about-panel p {
  color: var(--color-muted);
}

.image-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: rgba(47, 49, 54, 0.54);
  font-size: 0.86rem;
  font-weight: 800;
}

.image-placeholder--plant {
  background:
    radial-gradient(circle at 24% 30%, rgba(109, 140, 91, 0.34), transparent 24%),
    radial-gradient(circle at 72% 42%, rgba(244, 232, 208, 0.74), transparent 28%),
    linear-gradient(135deg, #ffffff, #edf2ea);
}

.image-placeholder--plant-small {
  min-height: 180px;
  background:
    radial-gradient(circle at 70% 32%, rgba(109, 140, 91, 0.24), transparent 26%),
    linear-gradient(135deg, #ffffff, #f4e8d0);
}

.tool-card__screen {
  display: grid;
  gap: 10px;
  min-height: 130px;
  margin-bottom: 22px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(180deg, #fafafa, #f2f2f2);
}

.tool-card__screen span {
  display: block;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
}

.tool-card__screen span:nth-child(2) {
  width: 72%;
  background: rgba(109, 140, 91, 0.18);
}

.tool-card__screen span:nth-child(3) {
  width: 48%;
  background: rgba(183, 28, 43, 0.1);
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 42px;
}

.note-list {
  display: grid;
  gap: 16px;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 34px;
}

.tenko-note {
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, var(--color-cream));
}

.tenko-note__label {
  margin-bottom: 8px;
  color: var(--color-primary);
  font-weight: 800;
}

.text-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mini-link-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.mini-link-list a {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.archive-hero {
  max-width: 860px;
}

.article-card {
  max-width: 860px;
  border: 1px solid rgba(47, 49, 54, 0.07);
  border-radius: var(--radius-card);
  padding: 34px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.article-card h2 {
  max-width: none;
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.article-card h3 {
  margin-top: 34px;
  margin-bottom: 12px;
  color: var(--color-text);
  font-size: 1.28rem;
}

.article-card p,
.article-card li {
  color: var(--color-muted);
}

.article-card p + p,
.article-card ul + p,
.article-card p + ul {
  margin-top: 14px;
}

.article-card ul {
  margin: 14px 0 0;
  padding-left: 1.4em;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 66px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-card);
    padding: 10px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .hero__inner,
  .split-section,
  .about-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero__visual {
    order: -1;
  }

  .card-grid,
  .card-grid--featured,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .about-panel {
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .content-width,
  .site-header__inner {
    width: min(100% - 28px, var(--content-width));
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    padding-bottom: 58px;
  }

  .hero__actions,
  .site-footer__inner {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .record-card__body,
  .tool-card,
  .compact-grid article,
  .note-list article,
  .tenko-note,
  .article-card {
    padding: 20px;
  }
}
