/* ── klinkert.ai site stylesheet ─────────────────────────────────────────── */

:root {
  --ink:     #1a1a1a;
  --paper:   #f7f4ef;
  --rule:    #c8b99a;
  --accent:  #2c4a6e;
  --accent2: #7a9bb5;
  --muted:   #6b6050;
  --success: #2e6b4f;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent2); }

/* ── Navigation ── */
nav {
  text-align: center;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
nav a {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 1.2rem;
}
nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Hero (index page) ── */
.hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
}
.hero-photo {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rule);
  filter: grayscale(15%);
}
.hero-text h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.credentials {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

/* ── Rules ── */
.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.5rem auto;
}
.rule.wide { max-width: 760px; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.card {
  border: 1px solid var(--rule);
  padding: 1.4rem 1.2rem;
  text-align: center;
  background: #fff;
}
.card h3 {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.card a {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.card.coming { opacity: 0.6; }
.card.coming a { pointer-events: none; color: var(--muted); border-color: transparent; }

/* ── Sections ── */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.section.narrow { max-width: 640px; }
.section p { margin-bottom: 0.9rem; }
.section-label {
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* ── Masthead ── */
.masthead {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--rule);
}
.byline {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.masthead h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.subtitle { font-style: italic; color: var(--muted); font-size: 1rem; }

/* ── Books page ── */
.book-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.book-meta {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.keystone-img {
  display: block;
  max-width: 480px;
  width: 100%;
  margin: 2rem auto;
  border: 1px solid var(--rule);
}
.claims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}
.claim {
  border-left: 2px solid var(--accent2);
  padding: 0.8rem 1rem;
  background: #fff;
}
.claim h4 {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.claim p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.cta-row {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.btn {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #1e3550; }

/* ── Errata form ── */
form { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.opt { font-size: 0.85em; opacity: 0.7; }
input, textarea {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0.65rem 0.85rem;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s;
  width: 100%;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(122,155,181,0.15);
}
textarea { resize: vertical; min-height: 130px; }
button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 2px;
  padding: 0.8rem 2.2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  align-self: flex-start;
}
button[type="submit"]:hover { background: #1e3550; }
.success-msg {
  display: none;
  background: #eaf4ee;
  border: 1px solid #a8d5b8;
  padding: 1.2rem 1.5rem;
  color: var(--success);
  font-style: italic;
  margin-top: 1rem;
}
.home-link {
  display: block;
  text-align: center;
  margin-top: 3rem;
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-link:hover { color: var(--accent); text-decoration: none; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2rem;
}
footer p { margin-bottom: 0.3rem; }
footer a { color: var(--accent2); }

/* ── Responsive ── */
@media (max-width: 560px) {
  .hero { flex-direction: column; text-align: center; padding-top: 2rem; }
  .cards { grid-template-columns: 1fr; }
  .claims { grid-template-columns: 1fr; }
  .masthead h1 { font-size: 1.4rem; }
}
