/* Bespoke literary showcase styling for the root Landing Page (site/). */

:root,
html[data-theme="light"] {
  --lp-bg: #f4f0e7;
  --lp-paper: #fcfaf5;
  --lp-surface: #ece5d5;
  --lp-ink: #172e38;
  --lp-muted: #4b5e67;
  --lp-rule: #d3cab9;
  --lp-teal: #08716d;
  --lp-teal-soft: #e3f2f0;
  --lp-red: #ae3d2c;
  --lp-gold: #a66f10;
}

html[data-theme="dark"] {
  --lp-bg: #0f181e;
  --lp-paper: #16232b;
  --lp-surface: #1d2d37;
  --lp-ink: #edf2f4;
  --lp-muted: #a1b3bc;
  --lp-rule: #2b3e4a;
  --lp-teal: #38b2ac;
  --lp-teal-soft: #153538;
  --lp-red: #e56b58;
  --lp-gold: #e0a84b;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --lp-bg: #0f181e;
    --lp-paper: #16232b;
    --lp-surface: #1d2d37;
    --lp-ink: #edf2f4;
    --lp-muted: #a1b3bc;
    --lp-rule: #2b3e4a;
    --lp-teal: #38b2ac;
    --lp-teal-soft: #153538;
    --lp-red: #e56b58;
    --lp-gold: #e0a84b;
  }
}

.landing-body {
  background: var(--lp-bg);
  color: var(--lp-ink);
}

.landing-header {
  background: var(--lp-paper);
  border-bottom: 1px solid var(--lp-rule);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 1.4rem;
  height: auto;
  min-height: 3.5rem;
}

.gd-brand-symbol {
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 1.5rem;
}

.gd-language > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
}

.gd-language > summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 980px) {
  .landing-header .gd-site-nav,
  .landing-header .gd-site-search {
    display: none !important;
  }
  .landing-header .gd-brand {
    margin-right: auto;
  }
}

.gd-site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-right: auto;
}

.gd-site-nav a {
  color: var(--lp-ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.gd-site-nav a:hover {
  color: var(--lp-teal);
}

.gd-site-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--lp-rule);
  border-radius: 999px;
  background: var(--lp-bg);
}

.gd-site-search input {
  border: none;
  background: transparent;
  color: var(--lp-ink);
  font-size: 0.85rem;
  width: 9.5rem;
  outline: none;
}

.lang-tag {
  font-size: 0.76rem;
  font-weight: 700;
  margin-left: 0.25rem;
}

.landing-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.6rem 1.5rem 4rem;
}

.landing-article h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
  line-height: 1.09;
  letter-spacing: -0.025em;
  margin: 0.2rem 0 1rem;
  max-width: 22ch;
}

.landing-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-red);
  margin-bottom: 0.5rem;
}

.landing-epigraph {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.65;
  color: var(--lp-muted);
  max-width: 68ch;
  margin-bottom: 1.5rem;
}

.landing-actions p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.4rem 0 2rem;
}

.landing-actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.25rem;
  border-radius: 8px;
  border: 1.5px solid var(--lp-rule);
  background: var(--lp-paper);
  color: var(--lp-ink) !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.landing-actions a:first-child {
  background: var(--lp-teal);
  border-color: var(--lp-teal);
  color: #ffffff !important;
}

.landing-actions a:hover {
  transform: translateY(-1px);
  border-color: var(--lp-teal);
}

.landing-article figure {
  margin: 1.8rem 0 2.4rem;
  padding: 0.9rem;
  background: var(--lp-paper);
  border: 1px solid var(--lp-rule);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(23, 46, 56, 0.08);
}

.landing-article figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.landing-article figcaption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--lp-muted);
}

html[data-theme="dark"] .landing-article img.typst-diagram {
  filter: none !important;
  background: #f9f6ef;
  padding: 4px;
  border-radius: 8px;
}

.landing-duet {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.5rem;
  align-items: center;
  margin: 1.6rem 0 2.2rem;
}

.landing-duet figure {
  margin: 0;
}

@media (max-width: 820px) {
  .landing-duet {
    grid-template-columns: 1fr;
  }
}

.landing-article h2 {
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--lp-rule);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.22;
}

.landing-chapter-grid ul {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.landing-chapter-grid li {
  padding: 1rem 1.1rem;
  background: var(--lp-paper);
  border: 1px solid var(--lp-rule);
  border-left: 4px solid var(--lp-teal);
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Seven Native Editions Showcase */
.editions-showcase {
  margin-top: 3.4rem;
  padding: 2rem;
  background: var(--lp-paper);
  border: 1.5px solid var(--lp-rule);
  border-radius: 14px;
}

.editions-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--lp-teal);
  text-transform: uppercase;
}

.editions-header h2 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.6rem;
}

.editions-header p {
  margin: 0 0 1.4rem;
  color: var(--lp-muted);
  max-width: 68ch;
}

.editions-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.editions-grid li {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--lp-bg);
  border: 1px solid var(--lp-rule);
  border-radius: 10px;
  overflow: hidden;
}

.editions-grid li.is-current {
  border-color: var(--lp-teal);
  box-shadow: 0 0 0 1px var(--lp-teal);
}

.edition-web-link {
  flex: 1;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  text-decoration: none;
  color: var(--lp-ink);
}

.edition-lang-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--lp-teal);
}

.edition-cta {
  font-size: 0.8rem;
  color: var(--lp-muted);
}

.edition-pdf-link {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
  background: var(--lp-surface);
  border-left: 1px solid var(--lp-rule);
  color: var(--lp-teal);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
}

.edition-pdf-link:hover {
  background: var(--lp-teal);
  color: #ffffff;
}

.landing-footer {
  border-top: 1px solid var(--lp-rule);
  background: var(--lp-paper);
  padding: 2rem 1.5rem;
}

.landing-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 0.86rem;
  color: var(--lp-muted);
}

.landing-footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 0.75rem;
}

.landing-footer-inner nav a {
  color: var(--lp-ink);
  font-weight: 600;
  text-decoration: none;
}

.landing-credit {
  color: var(--lp-ink);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

/* Editorial line work: white space, flat framing, and semantic accent colors. */
.landing-article figure {
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.landing-article figure img { border-radius: 0; }
.landing-article figcaption {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--rule, var(--lp-rule));
  background: var(--paper, var(--lp-paper));
  max-width: 100%;
}
