:root
{
  --bg: #f6f0e5;
  --bg-soft: #fff9ef;
  --ink: #1f2425;
  --ink-soft: #455058;
  --accent: #c65627;
  --accent-deep: #8f3712;
  --teal: #25645f;
  --paper: #fffdf8;
  --line: #e6d8c4;
  --shadow: 0 16px 34px rgba(64, 46, 25, 0.13);
  --radius: 18px;
}

*
{
  box-sizing: border-box;
}

html,
body
{
  margin: 0;
  padding: 0;
}

body
{
  min-height: 100vh;
  color: var(--ink);
  font-family: "Work Sans", "Helvetica Neue", Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(198, 86, 39, 0.17), transparent 34%),
    radial-gradient(circle at 88% 15%, rgba(37, 100, 95, 0.16), transparent 36%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-soft) 45%, #fffdf8 100%);
}

.glow
{
  position: fixed;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.glow-one
{
  width: 240px;
  height: 240px;
  top: 80px;
  right: 6%;
  background: rgba(198, 86, 39, 0.28);
}

.glow-two
{
  width: 280px;
  height: 280px;
  bottom: 80px;
  left: 4%;
  background: rgba(37, 100, 95, 0.26);
}

.wrap
{
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero
{
  padding: 56px 0 28px;
}

.eyebrow
{
  margin: 0;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

h1
{
  margin: 8px 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero-copy
{
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.5;
}

.panel
{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.controls
{
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}

.field
{
  display: grid;
  gap: 6px;
}

.field span
{
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

input,
select,
button
{
  font: inherit;
}

input,
select
{
  width: 100%;
  border: 1px solid #d8ccb9;
  background: #fffefb;
  color: var(--ink);
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 10px 12px;
}

input:focus,
select:focus
{
  outline: 2px solid rgba(198, 86, 39, 0.25);
  border-color: var(--accent);
}

.volume-filters
{
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.volume-chip
{
  border: 1px solid #d3c6b1;
  background: #fffdf8;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.volume-chip.active
{
  color: #fff;
  border-color: var(--accent-deep);
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.stat-row
{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card
{
  background: rgba(255, 253, 248, 0.72);
  border: 1px dashed #d2c6b2;
  border-radius: 14px;
  padding: 12px 14px;
}

.stat-label
{
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
}

.stat-value
{
  margin: 6px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.1;
}

.featured-shell
{
  margin-top: 14px;
  padding: 16px;
}

.featured-head
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.featured-head h2
{
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
}

.source-label
{
  margin: 0;
  border-radius: 999px;
  background: rgba(37, 100, 95, 0.12);
  color: #1f5e57;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.featured-grid
{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.featured-card
{
  border: 1px solid #decfb9;
  border-radius: 12px;
  background: linear-gradient(160deg, #fffefa 0%, #fffaf1 100%);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.featured-card h3
{
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.98rem;
}

.featured-card a
{
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, #2b756d 0%, #194f49 100%);
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  width: fit-content;
  padding: 8px 9px;
}

.archive-grid
{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.archive-main
{
  padding-bottom: 140px;
}

.archive-card
{
  display: grid;
  gap: 10px;
  padding: 14px;
  background: linear-gradient(160deg, #fffefa 0%, #fffaf1 100%);
  border: 1px solid #decfb9;
  border-radius: 14px;
}

.archive-head
{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tag
{
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(37, 100, 95, 0.12);
  color: #1f5e57;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  text-transform: uppercase;
}

.part
{
  font-size: 0.76rem;
  color: #7d5c43;
  font-weight: 700;
}

.issue-title
{
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
}

.issue-date
{
  margin: 0;
  color: #7d5c43;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.actions
{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.actions .issue-date
{
  margin-left: auto;
  text-align: right;
}

.btn
{
  appearance: none;
  border: 1px solid #d3c4af;
  background: #fffefb;
  color: var(--ink);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 10px 11px;
  cursor: pointer;
}

.btn-primary
{
  background: linear-gradient(120deg, #df7a33 0%, #be4b1f 100%);
  color: #fff;
  border-color: #a33d18;
}

.empty
{
  margin: 24px 0 0;
  border: 1px dashed #d3c6b2;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  color: var(--ink-soft);
  background: rgba(255, 251, 243, 0.8);
}

.hidden
{
  display: none;
}

.footer-note
{
  margin: 26px auto 34px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-note p
{
  margin: 3px 0;
}

.footer-note a
{
  color: #2b6e9a;
}

.issue-page
{
  background: #f7f2e8;
}

.issue-shell
{
  width: min(960px, calc(100% - 32px));
  margin: 22px auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e1d3bf;
  background: #fffdf8;
  box-shadow: 0 12px 28px rgba(60, 45, 26, 0.11);
}

.issue-topbar
{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e8dcc8;
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.issue-topbar h1
{
  margin: 0;
  font-size: 1.3rem;
  font-family: "Fraunces", Georgia, serif;
}

.issue-topbar a
{
  text-decoration: none;
  color: #1d5d87;
  font-weight: 700;
}

.viewer-links
{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.issue-frame
{
  width: 100%;
  min-height: calc(100vh - 200px);
  border: 1px solid #d8ccb9;
  border-radius: 12px;
  background: #fff;
}

.viewer-empty
{
  margin: 0 0 12px;
  border: 1px dashed #d3c6b2;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: rgba(255, 251, 243, 0.85);
}

@media (max-width: 980px)
{
  .featured-grid
  {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .archive-grid
  {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px)
{
  .hero
  {
    padding-top: 44px;
  }

  .controls
  {
    grid-template-columns: 1fr;
  }

  .stat-row
  {
    grid-template-columns: 1fr;
  }

  .featured-head,
  .issue-topbar
  {
    flex-direction: column;
    align-items: flex-start;
  }

  .issue-frame
  {
    min-height: 65vh;
  }

  .featured-grid,
  .archive-grid
  {
    grid-template-columns: 1fr;
  }

}
