/* =========
   Design tokens (modern, soft sans)
   ========= */

:root {
  --bg: #fbfbfb;
  --line: rgba(0, 0, 0, 0.10);
  --text: #121212;
  --muted: rgba(0, 0, 0, 0.55);
  --accent: #121212;

  --radius-sm: 10px;
  --max-width: 1080px;

  /* Softer system stack */
  --sans:
    -apple-system,
    BlinkMacSystemFont,
    "Inter",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

/* =========
   Reset
   ========= */

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* =========
   Layout
   ========= */

.wrap {
  max-width: var(--max-width);
  margin: auto;
  padding: 44px 28px;
}

@media (max-width: 520px) {
  .wrap { padding: 32px 20px; }
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

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

/* =========
   Typography
   ========= */

h1, h2, h3 {
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 40px 0 18px;
}

h1 {
  font-size: clamp(36px, 5vw, 64px);
}

h2 {
  font-size: clamp(22px, 2.2vw, 30px);
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 16px;
  max-width: 68ch;
}

.meta {
  font-size: 14px;
  color: var(--muted);
}

/* =========
   Links
   ========= */

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 2px;
  transition: border-color .15s ease;
}

a:hover {
  border-color: rgba(0, 0, 0, 0.45);
}

/* =========
   Remove card feel
   ========= */

.card {
  background: transparent;
  border: 0;
  padding: 0;
  transition: none;
}

.card:hover { transform: none; }

/* =========
   Photo grid
   ========= */

.grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
}

@media (max-width: 820px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}

.thumb {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform .2s ease;
}

a:hover .thumb {
  transform: scale(1.015);
}

/* =========
   Set filters
   ========= */

.setbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  font-size: 14px;
  color: var(--muted);
}

.pill:hover {
  color: var(--text);
}

/* Hide filtered items cleanly */
[hidden] { display: none !important; }

/* Filter pill active state */
.pill.is-active,
.pill[aria-pressed="true"] {
  color: var(--text);
}


/* =========
   Poems
   ========= */


/* --- Print-like poem typography --- */
:root{
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Garamond, Georgia, serif;
  --ink: #111;
  --paper: #fbfaf7;
}

/* Optional: make poem pages feel like paper */
.poem{
  max-width: 60ch;
  margin: 0 auto;
  padding: 0;
  color: var(--ink);
}

.poem .meta{
  color: rgba(0,0,0,0.55);
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* The main reading experience */
.poem-body{
  font-family: var(--serif);
  font-size: clamp(18px, 1.05vw + 14px, 21px);
  line-height: 1.85;
  letter-spacing: 0.005em; /* subtle, not “webby” */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures discretionary-ligatures;
  font-feature-settings: "liga" 1, "kern" 1, "onum" 1; /* oldstyle numerals when available */
}

/* Stanzas */
.poem-body p{
  margin: 0 0 1.35em;
}

/* If you use hard_wrap:true in kramdown, lines become <br>.
   This sets stanza line rhythm without adding “air” between lines. */
.poem-body br{
  line-height: 1.9;
}

/* Title: understated book-style */
.poem h1{
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(30px, 2.2vw + 18px, 44px);
  margin: 0 0 8px;
}

/* Optional: a quiet divider under title */
.poem h1::after{
  content: "";
  display: block;
  height: 1px;
  width: 72px;
  background: rgba(0,0,0,0.12);
  margin-top: 14px;
}

/* Optional: make just poem pages slightly warmer */
body.poem-page{
  background: var(--paper);
}


/* =========
   Footer
   ========= */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
