:root {
  --bg: #fff8f5;
  --bg-blush: #fde8ea;
  --fg: #2e1f26;
  --muted: #8a7179;
  --line: #f1d9dc;
  --rose: #c8456b;
  --rose-deep: #9e2f52;
  --card: #ffffff;
  --serif-latin: "Cormorant Garamond", "Times New Roman", serif;
  --serif-ja: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  padding: 0 16px 72px;
  background:
    radial-gradient(ellipse 80% 420px at 50% -120px, var(--bg-blush), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

header, main, footer {
  max-width: 42rem;
  margin: 0 auto;
}

/* ---- header ---- */

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 0;
}

.site {
  font-family: var(--serif-latin);
  font-style: italic;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.01em;
  color: var(--rose-deep);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

nav a {
  font-family: var(--serif-latin);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover { color: var(--rose); }

.age {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--rose);
  border: 1px solid var(--rose);
  border-radius: 999px;
  padding: 1px 10px;
}

main { padding: 40px 0 24px; }

/* ---- index ---- */

.hero { margin: 8px 0 44px; }

.hero h1 {
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  line-height: 1.5;
  margin: 0 0 14px;
}

.hero h1 em {
  font-style: normal;
  color: var(--rose);
  background: linear-gradient(transparent 62%, var(--bg-blush) 62%);
}

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

.posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.posts li + li { margin-top: 12px; }

.posts a {
  display: block;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.posts a:hover {
  border-color: var(--rose);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -12px rgba(200, 69, 107, 0.55);
}

.posts time {
  display: block;
  font-size: 0.78rem;
  color: var(--rose);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.posts .t {
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---- article ---- */

main > h1 {
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: clamp(1.45rem, 5vw, 1.9rem);
  line-height: 1.5;
  margin: 0 0 12px;
}

.meta {
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.8;
}

h2 {
  font-family: var(--serif-ja);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 44px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  flex: none;
}

p { margin: 0 0 1.1em; }

strong {
  font-weight: 500;
  background: linear-gradient(transparent 60%, var(--bg-blush) 60%);
}

a { color: var(--rose-deep); }

/* ---- footer ---- */

footer {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.8;
}

footer p { margin: 0 0 4px; }

/* ---- 作品ページへのリンク ---- */

.buy { margin: 44px 0 8px; }

.buy a {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 8px 22px -12px rgba(200, 69, 107, 0.9);
  transition: background 0.2s, transform 0.2s;
}

.buy a:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
}
