@font-face { font-family: 'Instrument Serif'; src: url('/fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url('/fonts/instrument-sans.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono.woff2') format('woff2'); font-weight: 400; font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; background: #f8f8f6; color: #20291f; font-family: 'Instrument Sans', sans-serif; }
a { color: inherit; }
button, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid #246d45; outline-offset: 5px; }
.masthead, main, footer { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.masthead { padding-block: 30px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d6d9d3; }
.wordmark { font-size: 1.4rem; text-decoration: none; letter-spacing: -.06em; }
.home-link, .eyebrow, .section-heading > span, footer, .hint, .category { color: #5c665e; font-size: .875rem; }
.intro { padding: 76px 0 62px; }
.eyebrow { margin: 0 0 22px; }
h1 { margin: 0; font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(4.5rem, 9vw, 7.5rem); font-weight: 400; line-height: .95; letter-spacing: -.04em; }
.description { margin-top: 28px; font-size: 1.05rem; color: #5c665e; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
h2 { margin: 0; font-size: 1rem; font-weight: 400; }
.playground { padding: 28px; border: 1px solid #cbd2c8; background: #eaf0e6; }
.controls { display: flex; align-items: end; gap: 32px; padding: 25px 0 30px; }
.controls label { display: grid; gap: 10px; font-size: .875rem; }
.font-control { min-width: 240px; }
select { width: 100%; min-height: 44px; padding: 10px 34px 10px 12px; background: #f8faf6; border: 1px solid #bbc6b6; border-radius: 2px; }
.size-control { flex: 1; grid-template-columns: 1fr auto; }
.size-control input { grid-column: 1 / -1; width: 100%; min-height: 24px; margin: 0 0 10px; accent-color: #3e6344; }
output { color: #5c665e; font-variant-numeric: tabular-nums; }
#reset { min-height: 44px; padding-inline: 17px; border: 1px solid #bbc6b6; border-radius: 2px; background: transparent; }
.sample-label { display: block; margin-bottom: 12px; font-size: .875rem; }
#sample { display: block; width: 100%; min-height: 220px; padding: 0; border: 0; border-radius: 0; resize: vertical; background: transparent; font-family: 'Instrument Serif', Georgia, serif; font-size: 72px; line-height: 1.1; }
.hint { margin-bottom: 0; }
.collection { padding-block: 48px 70px; }
.font-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; border: 1px solid #d6d9d3; }
.font-card { display: grid; gap: 8px; min-width: 0; padding: 26px; text-align: left; background: transparent; border: 0; border-right: 1px solid #d6d9d3; }
.font-card:last-child { border-right: 0; }
.font-card:hover { background: #edf0e9; }
.glyph { display: block; margin-block: 5px 30px; font-size: 6rem; line-height: 1; letter-spacing: -.06em; }
.serif .glyph { font-family: 'Instrument Serif', serif; }
.sans .glyph { font-family: 'Instrument Sans', sans-serif; }
.mono .glyph { font-family: 'IBM Plex Mono', monospace; }
.font-name { font-size: 1rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding-block: 25px; border-top: 1px solid #d6d9d3; }
@media (max-width: 600px) {
  .masthead, main, footer { width: calc(100% - 36px); }
  .intro { padding-block: 56px 44px; }
  .playground { padding: 20px; }
  .controls { flex-wrap: wrap; gap: 18px; }
  .font-control { min-width: 100%; }
  .size-control { min-width: 55%; }
  .font-grid { grid-template-columns: 1fr; }
  .font-card { border-right: 0; border-bottom: 1px solid #d6d9d3; }
  .font-card:last-child { border-bottom: 0; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
