:root {
  --ink: #1f2937;
  --muted: #5b6472;
  --paper: #fffaf0;
  --card: #ffffff;
  --accent: #2563eb;
  --line: #d8c9a3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fff7d6, var(--paper));
  line-height: 1.5;
}

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1;
  margin: .25rem 0 1rem;
}

.lede {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.2rem;
}

.gallery {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.note-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--line);
  overflow: hidden;
}

.note-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--line);
}

.note-thumb {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center;
  padding: .75rem;
  background: #f8fafc;
  border-bottom: 3px solid var(--ink);
}

.note-card-body {
  padding: 1rem 1.1rem 1.25rem;
}

.badge {
  display: inline-block;
  color: white;
  background: var(--accent);
  border-radius: 999px;
  padding: .25rem .6rem;
  font-weight: 700;
  font-size: .85rem;
}

.note-card h2 {
  margin: .75rem 0 .4rem;
  font-size: 1.35rem;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.note-card--placeholder {
  opacity: 0.4;
  pointer-events: none;
}

.note-thumb--placeholder {
  background: var(--line);
}

.badge--placeholder {
  background: var(--muted);
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

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

  .note-thumb {
    height: 190px;
  }
}
