/* 絵用例 eyorei.pages.dev — light, typographic directory */
:root {
  --bg: #f3eee4;
  --bg-elev: #fffdf8;
  --bg-tint: #ebe4d6;
  --ink: #161311;
  --ink-soft: #5a534a;
  --line: #d8d0c2;
  --accent: #a61b14;
  --accent-dark: #7c140f;
  --moss: #243f35;
  --moss-soft: #325447;
  --sponsor-bg: #efe7d6;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(22, 19, 17, 0.04);
  --max: 72rem;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans JP", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", "Noto Serif JP", "Times New Roman", serif;
  --mono: "SFMono-Regular", "Noto Sans Mono CJK JP", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; }
a { color: var(--moss); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-dark); }
code, pre { font-family: var(--mono); }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #1c1916;
  color: #f6f1e8;
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: #fff;
  padding: 0.4rem 0.7rem;
}

/* Sponsor bars */
.sponsor-bar {
  background: var(--sponsor-bg);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.sponsor-bar.footer-slot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
}
.sponsor-bar .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}
.sponsor-kicker {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--ink);
  padding: 0.05rem 0.4rem;
  border-radius: 2px;
  line-height: 1.4;
  flex: none;
}
.sponsor-bar a { color: inherit; text-decoration: none; }
.sponsor-bar a:hover { text-decoration: underline; }
.sponsor-bar .pitch { color: var(--ink-soft); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo .mark {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.logo .kana {
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  margin-top: 0.15rem;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--accent-dark);
  text-decoration: underline;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Hero */
.hero {
  padding: 2.6rem 0 1.6rem;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  max-width: 22em;
}
.hero p.lede {
  margin: 0;
  max-width: 42em;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.hero-meta {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: 2.2rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0;
  font-weight: 600;
}
.section-head .date { color: var(--ink-soft); font-size: 0.88rem; }

/* Entry list */
.entry-list { list-style: none; margin: 0; padding: 0; }
.entry-list > li { border-top: 1px solid var(--line); }
.entry-card, .entry-list article {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0.85rem 1rem;
  padding: 1.15rem 0.15rem;
}
.tool-badge {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: var(--moss);
  color: #f6f1e8;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.15;
  flex: none;
}
.tool-badge.t-mj { background: #1f3d4d; }
.tool-badge.t-cg { background: #1c3a32; }
.tool-badge.t-sd { background: #3a2a1c; }
.tool-badge.t-af { background: #5a2018; }
.tool-badge.t-gm { background: #2b3a5a; }
.tool-badge.t-cu { background: #3d3a2e; }
.tool-badge.t-generic { background: #3a3530; }

.entry-card h3, .entry-body h3, article.entry h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.entry-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  line-height: 1.45;
}
.entry-card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.entry-card h3 a:hover { color: var(--accent-dark); text-decoration: underline; }
.entry-card .summary {
  margin: 0 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  align-items: center;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 0.05rem 0.55rem;
  color: var(--ink);
}
.pill-new {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}
.entry-card .more {
  margin-top: 0.45rem;
  font-size: 0.88rem;
}

/* In-feed sponsor */
.sponsor-card {
  margin: 0.2rem 0;
  padding: 1.1rem 1.15rem;
  background: var(--sponsor-bg);
  border: 1px dashed #b7ad9a;
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
}
.sponsor-card .copy { margin: 0; }
.sponsor-card h3 { font-size: 1rem; margin: 0 0 0.15rem; font-family: var(--serif); }
.sponsor-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: #f6f1e8 !important;
  text-decoration: none !important;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  line-height: 1.3;
}
.btn:hover { background: var(--accent-dark); color: #fff !important; }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #f6f1e8 !important; }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); }

/* Newsletter */
.newsletter {
  background: var(--moss);
  color: #f3eee4;
  border-radius: calc(var(--radius) + 2px);
  padding: 1.6rem 1.5rem;
  margin: 0.5rem 0 0.2rem;
}
.newsletter h2 {
  font-family: var(--serif);
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  color: inherit;
}
.newsletter p { margin: 0 0 1rem; color: #d7e0db; }
.newsletter form, .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.newsletter input[type="email"],
input[type="email"],
input[type="text"],
input[type="url"],
select,
textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: #fff;
  color: var(--ink);
  min-width: 16rem;
  flex: 1;
}
.newsletter input[type="email"] {
  border-color: transparent;
  min-width: 18rem;
}
.newsletter .note, .form-note {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  color: #b9c6c0;
}
.form-note { color: var(--ink-soft); }

/* Categories */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.75rem;
}
.cat-card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.cat-card:hover { border-color: var(--moss); }
.cat-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.02rem;
  font-family: var(--serif);
}
.cat-card p { margin: 0; color: var(--ink-soft); font-size: 0.88rem; }
.cat-card .count { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.45rem; }

/* Article typography */
.page-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.4;
  margin: 2rem 0 0.6rem;
  font-weight: 600;
}
.lede, .page-desc { color: var(--ink-soft); max-width: 42em; }
.prose { max-width: 42em; padding-bottom: 3rem; }
.prose h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 2rem 0 0.7rem;
  font-weight: 600;
}
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ol, .prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.3rem; }
.source-list { font-size: 0.92rem; }
.source-list a { word-break: break-all; }

.crumb {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 1.3rem;
}
.crumb a { color: inherit; }

.prompt-box { margin: 1.3rem 0; }
.prompt-box figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}
.copy-row { margin-top: 0.5rem; }

/* Guides list */
.guide-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.guide-list li {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
}
.guide-list h2 { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 0.3rem; }
.guide-list h2 a { color: var(--ink); text-decoration: none; }
.guide-list h2 a:hover { text-decoration: underline; color: var(--accent-dark); }
.guide-list p { margin: 0; color: var(--ink-soft); }

/* About / sponsor pages */
.split {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 820px) {
  .split.two { grid-template-columns: 1.3fr 0.9fr; }
}
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}
.panel h2 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.6rem; }
.price {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0.2rem 0 0.4rem;
}
.muted { color: var(--ink-soft); }
.fine { font-size: 0.85rem; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.site-footer .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: inherit; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; }

.flash {
  display: none;
  margin-top: 0.8rem;
  padding: 0.6rem 0.75rem;
  background: #e7efe9;
  border-radius: 8px;
  color: var(--moss);
  font-size: 0.9rem;
}
.flash.show { display: block; }

@media (max-width: 640px) {
  .entry-card, .entry-list article {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.7rem;
  }
  .tool-badge { width: 2.5rem; height: 2.5rem; font-size: 0.68rem; }
  .newsletter input[type="email"], input[type="email"], input[type="text"] {
    min-width: 0;
    width: 100%;
  }
  .sponsor-card { grid-template-columns: 1fr; }
  .site-header .inner { flex-direction: column; }
}
