/* fistynine.com — type-first, paper-and-ink palette */

:root {
  --ink: #1c1a16;
  --paper: #f4ede0;
  --rule: #2a2620;
  --accent: #b03020;
  --muted: #5e5a52;
  --max: 64ch;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { background: var(--accent); color: var(--paper); border-bottom-color: var(--accent); }

h1, h2, h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.4rem; line-height: 1.1; margin-top: 0; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

p { margin: 0 0 1rem; max-width: var(--max); }

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.masthead {
  border-top: 4px double var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.masthead .title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0;
  line-height: 1;
}

.masthead .subtitle {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
  margin: 0.4rem 0 0.8rem;
}

.masthead nav {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.6rem;
}

.masthead nav a {
  margin: 0 0.6rem;
  border-bottom: none;
  color: var(--ink);
}
.masthead nav a:hover { color: var(--accent); background: none; }

.lede {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 2rem;
}

footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

footer p { margin: 0.4rem 0; max-width: none; }

/* Catalog grid */

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

.catalog .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--rule);
  padding: 1rem 0.75rem;
  background: #faf6ec;
  transition: transform 0.1s ease;
}

.catalog .card:hover { transform: translateY(-2px); border-color: var(--accent); background: none; }

.catalog .card a {
  border-bottom: none;
  color: var(--ink);
}
.catalog .card a:hover { background: none; color: var(--accent); }

.catalog .card svg,
.catalog .card img {
  width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
}

.catalog .name {
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.catalog .number {
  font-family: "Iowan Old Style", Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Position page */

.position .figure {
  margin: 1rem 0 2rem;
  border: 1px solid var(--rule);
  background: #faf6ec;
  padding: 1.5rem;
  text-align: center;
}

.position .figure svg,
.position .figure img {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.position .figure figcaption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 0.6rem;
}

.spec-table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0 2rem;
  font-size: 0.95rem;
}
.spec-table th, .spec-table td {
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0.6rem;
  text-align: left;
  vertical-align: top;
}
.spec-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  width: 12em;
  font-weight: 700;
}

.difficulty {
  letter-spacing: 0.4em;
  color: var(--accent);
}

.note {
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
  font-style: italic;
  color: var(--muted);
  margin: 1.5rem 0;
}

ul.bare {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
ul.bare li {
  padding: 0.3rem 0;
  border-bottom: 1px dotted var(--rule);
}
ul.bare li:last-child { border-bottom: none; }

.pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Age gate */

.gate {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
}

.gate h1 { font-size: 3rem; }
.gate .actions { margin-top: 2rem; }
.gate .actions a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  margin: 0.4rem;
  border: 2px solid var(--ink);
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}
.gate .actions a.primary { background: var(--ink); color: var(--paper); }
.gate .actions a:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
