@font-face {
    font-family: engraversmt;
    src: url(assets/fonts/engraversmt.ttf);
}

:root {
  --rust: #c12d00;
  --rust-light: #cc512c;
  --white: #ffffff;
  --black: #000000;
  --blue: #353d8c;
  --blue-light: #585fa0;
  --green: #287740;
  --green-light: #4e8e61;
  --red: #a81313; 
  --red-light: #b73c3c;
  --yellow: #ffab4a;
  --yellow-light: #ffba6a;

  --serif: 'EngraversMT', 'Times New Roman', serif;
  --type: 'Special Elite', 'Courier New', monospace;

  --max-width: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--type);
  background: var(--rust);
  color: var(--black);
  line-height: 1.6;
  padding: 3rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
}

header { text-align: center; margin-bottom: 2.5rem; }

.wheel {
  width: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  color: var(--white);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.subhead {
  font-family: var(--type);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
}

.divider {
  border: none;
  border-top: 2px solid var(--rust);
  margin: 2.5rem 0;
}

.catalog { display: flex; flex-direction: column; gap: 2.25rem; }

.entry { display: flex; flex-direction: column; gap: 1rem; }

.entry-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  font-family: var(--type);
  font-size: 0.95rem;
  line-height: 1.5;
}

.entry-meta .date { color: var(--white); }
.entry-meta .code { color: var(--white); font-weight: 700; letter-spacing: 0.1em; }
.entry-meta .title { font-style: italic; color: var(--white); }
.entry-meta .type {
  font-size: 0.8rem;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.entry-detail {
  margin-top: 0.5rem;
  padding: 1.5rem;
  background: var(--rust);
  border: 1px solid var(--white);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.entry-detail img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--white);
  display: block;
}

.entry-detail p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-self: flex-start;
}

.download {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--white);
  color: var(--rust);
  text-decoration: none;
  font-family: var(--type);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid var(--white);
  transition: background 0.15s, color 0.15s;
  align-self: flex-start;
}

.download:hover { background: var(--rust); color: var(--white); }

.entry.forthcoming { opacity: 0.55; }

footer {
  margin-top: 3rem;
  font-family: var(--type);
  font-size: 0.85rem;
  color: var(--white);
  text-align: center;
  line-height: 1.9;
}

footer a { color: var(--rust); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Wider layout on tablet/desktop */
@media (min-width: 720px) {
  .entry-meta {
    grid-template-columns: 110px 130px 1fr auto;
    gap: 0 1.5rem;
    align-items: baseline;
  }
  .entry-meta .title { font-size: 1.05rem; }
  .entry-meta .type { text-align: right; }
}

/* Print stylesheet — someone can ⌘P the catalog and get a printable register */
@media print {
  body { background: white; color: black; padding: 1cm; max-width: none; }
  .wheel { color: #000000; }
  .download { display: none; }
  .entry-detail { background: none; border: 1px solid #999; }
  .divider { border-top-color: black; }
  .subhead, .entry-meta .code, .entry-meta .date, footer a { color: black; }
}