:root {
  --paper: #f5f4f1;
  --ink: #111110;
  --soft: #6f6e6a;
  --line: #d8d6cf;
  --hair: #e6e4dd;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.back {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--soft);
  transition: color 0.2s ease;
}
.back:hover { color: var(--ink); }

/* ── index ─────────────────────────────────────── */
.index {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 40px 28px 32px;
}
.head { text-align: center; margin-bottom: auto; }
.head .back {
  display: inline-block;
  margin-bottom: 56px;
}
.masthead {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 6vw, 42px);
  letter-spacing: -0.01em;
  margin: 0;
}
.masthead i { font-style: italic; color: var(--soft); }

.entries {
  list-style: none;
  margin: 56px auto auto;
  padding: 0;
  width: 100%;
  border-top: 1px solid var(--hair);
}
.entry a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--hair);
  transition: padding-left 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.entry a:hover { padding-left: 12px; }
.e-date {
  grid-column: 1 / -1;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
}
.e-title {
  font-family: "Fraunces", serif;
  font-style: normal;
  font-size: 22px;
  line-height: 1.25;
}
.e-go { color: var(--soft); font-size: 14px; }

/* ── single post (calm, centered, ~one screen) ─── */
.post {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
  padding: 88px 28px;
}
.meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0;
}
.say { margin: 0; max-width: 30ch; }
.say .tr {
  font-family: "Fraunces", Georgia, serif;
  font-style: normal;
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 29px);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 0;
}
.say .en {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--soft);
  margin: 22px auto 0;
  padding-top: 20px;
  max-width: 34ch;
  position: relative;
}
.say .en::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 1px;
  background: var(--line);
}

.gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery img {
  height: 190px;
  width: auto;
  max-width: 30vw;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  background: #e9e8e3;
}

.post .back { margin-top: 8px; }

/* ── footer (index) ────────────────────────────── */
footer {
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--soft);
}

@media (max-width: 560px) {
  .index, .post { padding-left: 22px; padding-right: 22px; }
  .gallery img { height: 150px; max-width: 42vw; }
  .post { gap: 32px; padding-top: 72px; padding-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
