:root {
  --ink: #16131a;
  --mute: #5c564f;
  --paper: #f7f3ec;
  --card: #fff;
  --line: #e8dcce;
  --cobalt: #1d4ed8;
  --mint: #0f766e;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #eef2ff 0%, var(--paper) 40%);
  min-height: 100vh;
}

.sample-banner {
  margin: 0;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: #f5efe6;
}

main { max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin: 0 0 0.6rem;
}
h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
}
.lede {
  max-width: 38rem;
  color: var(--mute);
  line-height: 1.65;
  margin: 0.85rem 0 1.5rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.toolbar label { font-size: 0.85rem; font-weight: 700; }
select {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.45rem 0.7rem;
  font: inherit;
}
.status { font-size: 0.8rem; color: var(--mute); }

.grid {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.card {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 1.15rem;
  padding: 1.1rem 1.15rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover, .card:focus-visible {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  outline: none;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}
.card p { margin: 0; color: var(--mute); font-size: 0.9rem; line-height: 1.5; }
.tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--mint);
  background: #ccfbf1;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.detail {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 420px;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgb(22 19 26 / 0.12);
}
.detail.hidden { display: none; }
.detail h2 {
  margin: 0.5rem 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
}
.detail p { margin: 0; color: var(--mute); line-height: 1.55; }
.detail .meta { margin-top: 0.75rem; font-size: 0.8rem; color: var(--cobalt); font-weight: 700; }
.close {
  border: 0;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 0 1rem 2.5rem;
  font-size: 0.8rem;
  color: var(--mute);
}
footer a { color: var(--cobalt); }
