:root {
  color-scheme: light;
  --bg: #f7f5f1;
  --paper: #fffefb;
  --ink: #20201d;
  --muted: #68645d;
  --line: #ded8ce;
  --accent: #206a6a;
  --accent-soft: #dceceb;
  --warm: #a64f2a;
  --shadow: 0 16px 48px rgb(42 34 24 / 10%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.site-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.site-nav,
.back-link {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.site-nav {
  display: flex;
  gap: 14px;
}

.site-nav a {
  font-weight: 800;
  text-decoration: none;
}

.back-link {
  text-decoration: none;
}

.home-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.entry-card {
  min-height: 210px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.entry-card a {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  height: 100%;
  padding: 24px;
  text-decoration: none;
}

.entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.entry-meta span {
  color: var(--accent);
}

.entry-card h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.entry-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.gear-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.gear-header {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.gear-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
}

.gear-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.gear-section {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.gear-section h2 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 18px;
}

.gear-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 236px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.gear-photo {
  display: grid;
  gap: 6px;
  align-content: start;
  width: 168px;
  margin: 0;
}

.gear-photo img {
  display: block;
  width: 168px;
  height: 168px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.gear-photo figcaption {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.gear-photo a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gear-card-main {
  display: grid;
  gap: 8px;
}

.gear-card-meta,
.gear-use-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gear-card-meta span,
.gear-use-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.gear-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: 0;
}

.gear-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.gear-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.gear-link span {
  color: var(--muted);
}

.results-layout {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.results-header {
  display: grid;
  gap: 6px;
  margin-bottom: 24px;
}

.results-header h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: 0;
}

.results-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.results-list {
  display: grid;
  gap: 14px;
}

.result-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.result-date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.result-main {
  display: grid;
  gap: 12px;
}

.result-kind {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.result-main h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.result-main p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.result-stats {
  display: grid;
  gap: 8px;
  margin: 0;
}

.result-stats div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.result-stats dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.3;
}

.post-layout {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.post-article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.post-header {
  display: grid;
  gap: 16px;
  padding: 42px 42px 28px;
  border-bottom: 1px solid var(--line);
}

.post-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
  letter-spacing: 0;
}

.post-header p {
  margin: 0;
  color: var(--muted);
}

.post-body {
  padding: 22px 42px 52px;
}

.post-body .article-title {
  margin: 16px 0 32px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.4;
}

.post-body h2 {
  margin: 42px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
}

.post-body h3 {
  margin: 30px 0 10px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0;
}

.post-body p,
.post-body li {
  font-size: 16px;
}

.post-body p {
  margin: 12px 0;
}

.post-body ul,
.post-body ol {
  padding-left: 1.4em;
}

.post-body strong {
  font-weight: 800;
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    width: min(100% - 28px, 1120px);
  }

  .home-layout,
  .gear-layout,
  .results-layout,
  .post-layout {
    width: min(100% - 28px, 1120px);
    padding-top: 34px;
  }

  .post-header,
  .post-body {
    padding-left: 22px;
    padding-right: 22px;
  }

  .gear-card {
    grid-template-columns: 1fr;
  }

  .gear-photo,
  .gear-photo img {
    width: 100%;
  }

  .gear-photo img {
    height: 220px;
  }

  .result-card {
    grid-template-columns: 1fr;
  }
}
