/* Horny Silicon's ST Cards — shared gothic stylesheet */

:root {
  --bg: #0f0b09;
  --panel: #181110;
  --panel-2: #141010;
  --border: #382823;
  --border-soft: #241a16;
  --ink: #ead9c6;
  --body: #dbcbbc;
  --muted: #9b8578;
  --accent: #c4553a;
  --accent-soft: #e2926f;
  --gold: #d9a03f;
  --violet: #b3a1ce;
  --teal: #6fb3a0;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(196, 85, 58, 0.07), transparent 70%),
    var(--bg);
  color: var(--body);
  font-family: 'Cormorant Garamond', Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1060px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }

a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--ink); }

h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; color: var(--ink); }

/* ---------- ornaments ---------- */

.ornament {
  display: flex; align-items: center; gap: 14px; margin: 22px 0;
}
.ornament::before, .ornament::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.ornament .diamond {
  width: 7px; height: 7px; background: var(--accent);
  transform: rotate(45deg); flex: none;
}

.section-title {
  display: flex; align-items: center; gap: 14px; margin: 46px 0 10px;
  font-family: 'Cinzel', Georgia, serif; font-size: 13px;
  letter-spacing: 6px; text-transform: uppercase; color: var(--accent);
  text-align: center; justify-content: center; width: 100%;
}
.section-title::before, .section-title::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ---------- masthead ---------- */

.masthead { text-align: center; padding: 56px 0 10px; }
.masthead .over {
  font-family: 'Cinzel', Georgia, serif; font-size: 11px;
  letter-spacing: 5px; text-transform: uppercase; color: var(--muted);
}
.masthead h1 {
  margin: 16px 0 0; font-weight: 700;
  font-size: clamp(34px, 6vw, 56px); letter-spacing: 4px; line-height: 1.05;
}
.masthead h1 .amp {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic; font-weight: 500; color: var(--accent);
}
.masthead .sub {
  font-style: italic; font-size: 18px; color: var(--muted);
  margin-top: 14px;
}

.advisory {
  margin: 26px auto 0; max-width: 640px; text-align: center;
  font-size: 14.5px; font-style: italic; color: var(--muted);
  padding: 10px 18px; border: 1px solid var(--border-soft);
  background: var(--panel-2);
}

/* ---------- gallery ---------- */

.grid {
  display: grid; gap: 22px; margin-top: 26px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.gcard {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--body); position: relative;
  transition: transform .18s ease, border-color .18s ease;
}
.gcard:hover { transform: translateY(-3px); border-color: var(--accent); }

.gcard .poster {
  height: 280px; overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
  background: var(--panel-2);
}
.gcard .poster img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}

.gcard .textonly {
  height: 280px; border-bottom: 1px solid var(--border-soft);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 18px; background: var(--panel-2);
}
.gcard .textonly .initial {
  font-family: 'Cinzel', Georgia, serif; font-size: 64px; color: var(--ink);
  width: 120px; height: 120px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); position: relative;
}
.gcard .textonly .initial::after {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--border-soft);
}
.gcard .textonly .hint {
  font-size: 13.5px; font-style: italic; color: var(--muted); letter-spacing: 1px;
}

.gcard .body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gcard .kicker {
  font-family: 'Cinzel', Georgia, serif; font-size: 10px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--accent-soft);
}
.gcard h2 {
  margin: 0; font-size: 21px; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 700;
}
.gcard .tagline {
  font-style: italic; color: var(--muted); font-size: 15.5px; margin: 0;
}
.gcard .meta {
  margin-top: auto; padding-top: 10px; display: flex;
  justify-content: space-between; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); letter-spacing: .5px;
}

/* ---------- chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.chips li, .chip {
  padding: 2px 9px; border: 1px solid var(--border); color: var(--muted);
  font-family: 'Cinzel', Georgia, serif; font-size: 10px;
  letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
}
.chip.hot { border-color: var(--accent); color: var(--accent-soft); }

/* ---------- detail page ---------- */

.backlink {
  display: inline-block; margin: 30px 0 0;
  font-family: 'Cinzel', Georgia, serif; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: var(--muted);
}
.backlink:hover { color: var(--ink); }

.detail-head { text-align: center; padding: 26px 0 4px; }
.detail-head .kicker {
  font-family: 'Cinzel', Georgia, serif; font-size: 11px;
  letter-spacing: 5px; text-transform: uppercase; color: var(--muted);
}
.detail-head h1 {
  margin: 14px 0 0; font-size: clamp(30px, 5.5vw, 46px);
  letter-spacing: 4px; text-transform: uppercase; line-height: 1.1; font-weight: 700;
}
.detail-head .tagline {
  font-style: italic; font-size: 18px; color: var(--muted); max-width: 640px;
  margin: 16px auto 0;
}
.detail-head .meta-row {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 16px; font-size: 14px; color: var(--muted); letter-spacing: 1px;
}
.detail-head .meta-row span { white-space: nowrap; }

.hero-figure {
  margin: 30px 0 0; background: var(--panel); border: 1px solid var(--border);
  padding: 10px;
}
.hero-figure img { display: block; width: 100%; height: auto; }
.hero-figure figcaption {
  text-align: center; font-family: 'Cinzel', Georgia, serif; font-size: 10.5px;
  letter-spacing: 4px; text-transform: uppercase; color: var(--muted); padding-top: 10px;
}

.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin: 0 0 14px; }
.prose em { color: var(--ink); }

/* characters */

.cast { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin: 0 auto; }
.cast-row {
  display: flex; gap: 18px; align-items: stretch; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); padding: 16px;
}
.cast-row:nth-child(4n+2) { border-left-color: var(--gold); }
.cast-row:nth-child(4n+3) { border-left-color: var(--violet); }
.cast-row:nth-child(4n+4) { border-left-color: var(--teal); }
.cast-row .pic {
  flex: 0 0 150px; width: 150px; min-height: 150px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2); border: 1px solid var(--border);
  font-family: 'Cinzel', Georgia, serif; font-size: 40px; color: var(--muted);
}
.cast-row .pic img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block;
}
.cast-row .info { flex: 1 1 260px; min-width: 220px; }
.cast-row .info .name {
  font-family: 'Cinzel', Georgia, serif; font-size: 18px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--ink);
}
.cast-row .info .line { font-style: italic; color: var(--muted); margin-top: 4px; }

.roster-grid {
  display: grid; gap: 14px; margin-top: 8px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.roster-cell {
  background: var(--panel); border: 1px solid var(--border); padding: 8px;
  text-align: center;
}
.roster-cell img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top;
  display: block;
}
.roster-cell .name {
  font-family: 'Cinzel', Georgia, serif; font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); padding-top: 8px;
}

/* download */

.download-bar {
  text-align: center; margin: 40px 0 10px;
}
.btn {
  display: inline-block; padding: 13px 34px;
  font-family: 'Cinzel', Georgia, serif; font-size: 12px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--accent); background: rgba(196, 85, 58, 0.08);
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: var(--accent); color: #0f0b09; }
.download-bar .alt { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); font-style: italic; }

/* ---------- presets ---------- */

.preset-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; margin: 26px auto 0; }
.preset {
  background: var(--panel); border: 1px solid var(--border); padding: 16px 20px;
  display: flex; gap: 18px; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap;
}
.preset .pname { font-family: 'Cinzel', Georgia, serif; font-size: 15px; letter-spacing: 2px; color: var(--ink); }
.preset .pblurb { flex: 1 1 320px; font-style: italic; color: var(--muted); font-size: 15.5px; }
.preset a.dl {
  font-family: 'Cinzel', Georgia, serif; font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; border: 1px solid var(--border); padding: 5px 12px;
  white-space: nowrap;
}
.preset a.dl:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- footer ---------- */

footer {
  margin-top: 70px; padding: 26px 0 40px; border-top: 1px solid var(--border-soft);
  text-align: center; color: var(--muted); font-size: 14.5px; font-style: italic;
}

/* ---------- dd injected detail ---------- */

#dd-detail { margin-top: 26px; }
#dd-detail > div { max-width: 780px; margin: 0 auto; }

@media (max-width: 640px) {
  .gcard .poster, .gcard .textonly { height: 220px; }
  .cast-row .pic { flex-basis: 110px; width: 110px; min-height: 110px; }
}
