/* Strange the Poet — sketchbook look */
@import url('https://fonts.googleapis.com/css2?family=Cabin+Sketch:wght@400;700&family=Special+Elite&family=Libre+Baskerville:ital@0;1&display=swap');

:root {
  --paper: #f4efe4;
  --ink: #1d1a17;
  --pencil: #6e675e;
  --accent: #b23a2e;
  --rule: #cfc6b6;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Libre Baskerville', Georgia, serif;
}

h1, h2, h3, .navbar-title, .card-title {
  font-family: 'Cabin Sketch', 'Special Elite', cursive;
  letter-spacing: .02em;
}

a { color: var(--accent); }
.navbar-nav .nav-link, .navbar-title { font-family: 'Special Elite', monospace; }

/* ---------- Home header ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 2rem 1rem .5rem;
  max-width: 900px;
  margin: 0 auto;
}
.hero-title {
  font-family: 'Cabin Sketch', cursive;
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: .95;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.hero-title span { display: block; }
.hero-title .small { font-size: .5em; }
.hero-title:hover { color: var(--accent); }
.about-arrow {
  font-family: 'Special Elite', monospace;
  font-size: .95rem;
  color: var(--pencil);
  margin-top: .5rem;
}

.tagline {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: .6rem 1rem;
  margin: 1.5rem auto 2rem;
  text-align: center;
  font-family: 'Special Elite', monospace;
  font-size: 1.15rem;
  max-width: 1100px;
}
.tagline sub { font-size: .7em; color: var(--pencil); }

/* ---------- Three columns ---------- */
.columns-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto 3rem;
}
.col {
  padding: 0 1.5rem;
  border-right: 2px solid var(--rule);
}
.col:last-child { border-right: none; }
.col-label {
  font-family: 'Special Elite', monospace;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .15em;
  color: var(--pencil);
  margin-bottom: .75rem;
}
@media (max-width: 768px) {
  .columns-3 { grid-template-columns: 1fr; }
  .col { border-right: none; border-bottom: 2px solid var(--rule); padding: 1.5rem 0; }
  .col:last-child { border-bottom: none; }
}

/* sketch-box tiles */
.tile {
  display: block;
  border: 2px solid var(--ink);
  background: #fffdf8;
  padding: .5rem;
  margin-bottom: 1.75rem;
  color: var(--ink);
  text-decoration: none;
  transform: rotate(-.6deg);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.tile:nth-child(even) { transform: rotate(.7deg); }
.tile:hover { transform: rotate(0) translate(-2px,-2px); box-shadow: 6px 6px 0 var(--accent); color: var(--ink); }
.tile img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.tile h3 { margin: .5rem 0 .1rem; font-size: 1.5rem; }
.tile .caption { font-style: italic; font-size: .9rem; color: var(--pencil); margin: 0; }

/* gallery strip in the middle column */
.gallery-item { margin-bottom: 1.5rem; }
.gallery-item img { width: 100%; border: 2px solid var(--ink); aspect-ratio: 1; object-fit: cover; }
.gallery-item p { font-style: italic; font-size: .9rem; margin: .4rem 0 0; }

/* ---------- Inner pages ---------- */
.poem {
  font-family: 'Libre Baskerville', serif;
  white-space: pre-line;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0 2.5rem;
}
.page-intro { font-family: 'Special Elite', monospace; color: var(--pencil); }
.quarto-figure img, .grid img { border: 2px solid var(--ink); }

.nav-footer { background: var(--paper); border-top: 2px solid var(--ink); font-family: 'Special Elite', monospace; }

.tagline p { margin: 0; }
.tagline { margin: 1rem auto 2.5rem; }

/* ---------- Drive-fed content ---------- */
.drive-grid { column-count: 3; column-gap: 2rem; }
@media (max-width: 992px) { .drive-grid { column-count: 2; } }
@media (max-width: 576px) { .drive-grid { column-count: 1; } }
.drive-item { break-inside: avoid; margin-bottom: 2rem; }
.drive-item img { width: 100%; height: auto; border: 2px solid var(--ink); }
.drive-item .quarto-figure, .drive-item figure, .drive-item p { margin-bottom: 0; }
.drive-title { font-size: 1.35rem; margin: .6rem 0 .2rem; }
.drive-caption { font-style: italic; color: var(--pencil); white-space: pre-line; margin: 0; }
.video { position: relative; aspect-ratio: 16/9; border: 2px solid var(--ink); background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poem-title { margin-top: 2rem; }
.poem-preview { white-space: pre-line; font-size: .9rem; margin-top: .5rem; border-left: 2px solid var(--accent); padding-left: .75rem; }
.empty-note { font-family: 'Special Elite', monospace; color: var(--pencil); border: 2px dashed var(--rule); padding: 1rem; }
.more-link { font-family: 'Special Elite', monospace; }
.tile img { aspect-ratio: 4/3; object-fit: cover; }
.gallery-item p { white-space: pre-line; }
