:root {
  --bg: #14110e;
  --bg-elev: #1d1914;
  --paper: #efe6d6;
  --paper-2: #e4d8c4;
  --ink: #1c1712;
  --ink-soft: #4a4036;
  --muted: #b8aa96;
  --gold: #c4a36a;
  --gold-2: #e0c48a;
  --line: rgba(196, 163, 106, 0.28);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 600px at 10% -10%, #2a2218 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 10%, #24180f 0%, transparent 50%),
    var(--bg);
  color: var(--paper);
  min-height: 100vh;
  line-height: 1.55;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  padding: 28px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-name span {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

nav { display: flex; gap: 8px; align-items: center; }

nav a, .lang {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 999px;
}

nav a:hover { color: var(--paper); }

.lang {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--gold-2);
}

hero {
  display: block;
  padding: 56px 0 28px;
}

.kicker {
  color: var(--gold);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 14px;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  max-width: 16ch;
  margin-bottom: 18px;
}

.lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.lede strong { color: var(--paper); font-weight: 550; }

.rule {
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  margin: 36px 0 28px;
  border: 0;
}

section h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.section-note {
  color: var(--muted);
  margin-bottom: 22px;
  max-width: 62ch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.card {
  background: linear-gradient(180deg, #231d17 0%, #1a1612 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.cover {
  width: 100%;
  max-width: 280px;
  display: block;
  border-radius: 6px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.blurb { white-space: pre-line; }
  width: 42px;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), #7a5a32);
  margin-bottom: 16px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 550;
  margin-bottom: 6px;
}

.meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.blurb {
  color: #d7ccba;
  font-size: 0.94rem;
  flex: 1;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}

.size {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 9px 14px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
}

.btn:hover { background: var(--gold-2); }

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.notice {
  max-width: 62ch;
}

[hidden] { display: none !important; }

@media (max-width: 640px) {
  h1 { max-width: none; }
  header { align-items: flex-start; }
}
