/* Tolklabbet — shared styles for the rollspel overview (public page and
   the private admin preview). One file, not duplicated per page, so the
   two never visually drift apart — the whole point of the admin preview
   is that it shows exactly what the public page will look like. */
:root {
  --ink: #1a1a18;
  --paper: #f5f2eb;
  --cream: #ede9df;
  --gold: #c8a96e;
  --gold-light: #e8d5a8;
  --rust: #b85c38;
  --muted: #b5b0aa;
  --green: #4c7f3a;
  --green-bg: #f3f6ec;
  --red: #b23b3b;
  --red-bg: #fbeeee;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--ink); color: var(--paper); font-family: 'DM Sans', sans-serif; font-weight: 300; min-height: 100vh; overflow-x: hidden; }

nav {
  position: relative;
  z-index: 10;
  padding: 1.4rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.logo { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; color: var(--paper); text-decoration: none; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: rgba(245,242,235,0.6); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.02em; transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 32px; height: 32px; padding: 4px; background: transparent; border: none; cursor: pointer; flex-shrink: 0; }
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--paper); border-radius: 1px; }
.nav-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.breadcrumb { background: var(--paper); padding: 1rem 1.5rem 0; }
.breadcrumb-inner { max-width: 1180px; margin: 0 auto; font-size: 0.8rem; color: var(--muted); }
.breadcrumb-inner a { color: var(--rust); text-decoration: none; }
.breadcrumb-inner a:hover { text-decoration: underline; }

.admin-banner { background: var(--rust); color: white; text-align: center; padding: 0.55rem 1rem; font-size: 0.8rem; letter-spacing: 0.02em; }
.admin-hint { max-width: 1180px; margin: 0 auto; padding: 1.1rem 1.5rem 0; font-size: 0.84rem; color: rgba(245,242,235,0.6); line-height: 1.6; }
.admin-hint a { color: var(--gold); }

/* Short intro, top of page */
.hero { padding: 3rem 3rem 2.2rem; text-align: center; background: var(--ink); }
.hero-eyebrow { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); opacity: 0.85; margin-bottom: 1.3rem; }
.hero h1 { font-family: 'Fraunces', serif; font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 300; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 1rem; }
.hero-sub { font-size: 0.98rem; color: rgba(245,242,235,0.62); max-width: 580px; margin: 0 auto; line-height: 1.65; }

.content-section { background: var(--paper); color: var(--ink); padding: 2.6rem 3rem 5rem; }
.content-inner { max-width: 1180px; margin: 0 auto; }

/* Four cards on desktop, two on smaller screens, one on mobile */
.ov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.ov-card {
  background: white;
  border: 1px solid rgba(26,26,24,0.08);
  border-radius: 8px;
  padding: 1.4rem 1.3rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.18s, box-shadow 0.18s;
}
@media (hover: hover) {
  .ov-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(26,26,24,0.07); }
}
.ov-card-eyebrow { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.ov-card-title { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 400; color: var(--ink); line-height: 1.3; margin-bottom: 0.5rem; }
.ov-card-desc { font-size: 0.82rem; color: rgba(26,26,24,0.6); line-height: 1.5; margin-bottom: 1rem; }
.ov-card-meta { font-size: 0.74rem; color: var(--muted); display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: auto; }

.flag-pill { font-size: 0.6rem; padding: 0.1rem 0.4rem; border-radius: 999px; letter-spacing: 0.04em; }
.flag-pill.on { background: var(--green-bg); color: var(--green); }
.flag-pill.off { background: var(--red-bg); color: var(--red); }

/* Two info boxes under the cards */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2.2rem; }
.info-box { background: white; border: 1px solid rgba(26,26,24,0.08); border-radius: 10px; padding: 1.5rem 1.6rem; }
.info-box-title { display: flex; align-items: center; gap: 0.55rem; font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 400; color: var(--ink); margin-bottom: 0.6rem; }
.info-box p { font-size: 0.86rem; color: rgba(26,26,24,0.65); line-height: 1.6; }
.info-icon { flex-shrink: 0; width: 1.3rem; height: 1.3rem; color: var(--gold); }

/* Contribute-a-translation invitation, bottom of page */
.contribute-box { background: var(--cream); border-radius: 10px; padding: 1.6rem 1.8rem; margin-top: 1.1rem; }
.contribute-box h3 { display: flex; align-items: center; gap: 0.55rem; font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 400; color: var(--ink); margin-bottom: 0.5rem; }
.contribute-box p { font-size: 0.86rem; color: rgba(26,26,24,0.68); line-height: 1.6; margin-bottom: 0.6rem; }
.contribute-box a { color: var(--rust); font-weight: 500; text-decoration: none; }
.contribute-box a:hover { text-decoration: underline; }

.empty-note {
  border: 1px dashed rgba(26,26,24,0.15);
  border-radius: 8px;
  padding: 1.5rem 1.6rem;
  font-size: 0.88rem;
  color: rgba(26,26,24,0.45);
  font-style: italic;
}
.errbox { background: var(--red-bg); color: var(--red); border: 1px solid rgba(178,59,59,0.3); border-radius: 10px; padding: 1.1rem; }

footer { background: var(--ink); color: rgba(245,242,235,0.35); text-align: center; padding: 2rem; font-size: 0.82rem; }
footer a { color: inherit; }

@media (max-width: 900px) {
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  nav { padding: 1.2rem 1.5rem; }
  .logo { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    padding: 0.5rem 1.5rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; padding: 0.6rem 0; font-size: 0.92rem; }
  .hero { padding: 2.6rem 1.5rem 2rem; }
  .content-section { padding: 2.2rem 1.5rem; }
  .ov-grid { grid-template-columns: 1fr; }
}
