@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@400;500;600&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,700&display=swap');

:root {
  --paper-bg: #f7f5f0;
  --paper-surface: #ffffff;
  --paper-ink: #121212;
  --paper-muted: #5f5f5f;
  --paper-border: #d2d2d2;
  --paper-accent: #1d1d1d;
}

code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: var(--paper-muted);
  display: none;
}

body {
  margin: 0;
  background: var(--paper-surface);
  color: var(--paper-ink);
  font-family: 'Literata', Georgia, serif;
}

.paper-frame {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.paper-topbar {
  background: var(--paper-bg);
  border-bottom: 1px solid var(--paper-border);
}

.paper-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 1rem;
}

.paper-brand {
  color: var(--paper-ink);
  text-decoration: none;
  font-family: 'Libre Franklin', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.84rem;
  font-weight: 600;
}

.paper-status {
  display: flex;
  align-items: center;
}

.paper-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--paper-border);
  color: var(--paper-muted);
  background: #fafafa;
  border-radius: 999px;
  padding: 0.18rem 0.62rem;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.paper-pill-live {
  border-color: #8ec69d;
  color: #1f6d37;
  background: #edf7f0;
}

.paper-main {
  padding: 1.5rem 0 2.4rem;
}

.paper-footer {
  border-top: 1px solid var(--paper-border);
  color: var(--paper-muted);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.84rem;
  padding: 1.15rem 0 1.6rem;
}

.paper-footer a {
  color: var(--paper-accent);
}

.news-shell {
  border-top: 3px double var(--paper-border);
  padding-top: 1.2rem;
}

.news-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
}

.news-kicker {
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.news-title {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1;
  font-weight: 700;
}

.news-intro {
  margin: 0;
  color: var(--paper-muted);
  max-width: 68ch;
  line-height: 1.58;
}

.news-search {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  max-width: 520px;
}

.news-search .form-control {
  border-radius: 0;
  border: 1px solid var(--paper-border);
  font-family: 'Libre Franklin', Arial, sans-serif;
  background: var(--paper-surface);
}

.news-search .form-control:focus {
  border-color: #999;
  box-shadow: none;
}

.news-search-btn {
  border-radius: 0;
  border: 1px solid var(--paper-accent);
  background: var(--paper-accent);
  color: #fff;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.86rem;
}

.news-search-btn:hover,
.news-search-btn:focus {
  background: #313131;
  color: #fff;
}

.news-empty {
  border: 1px solid var(--paper-border);
  background: var(--paper-surface);
  padding: 1.2rem;
  color: var(--paper-muted);
}

.news-list {
  display: grid;
  gap: 0;
}

.news-entry {
  background: var(--paper-surface);
  border-bottom: 1px solid var(--paper-border);
  padding: 1.15rem 0.35rem 1.2rem;
}

.news-entry:first-child {
  border-top: 1px solid var(--paper-border);
}

.news-entry-title {
  margin: 0 0 0.62rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.13;
  font-weight: 700;
}

.news-entry-title a {
  text-decoration: none;
  color: var(--paper-ink);
}

.news-entry-title a:hover,
.news-entry-title a:focus {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2rem;
}

.news-entry-url {
  display: block;
  margin: -0.2rem 0 0.8rem;
  color: var(--paper-muted);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

.news-entry-url:hover,
.news-entry-url:focus {
  color: #4f4f4f;
}

.news-entry-summary {
  margin: 0;
  /* max-width: 78ch; */
  color: #202020;
  line-height: 1.75;
  white-space: pre-line;
  text-align: justify;
}

.news-entry-summary-muted {
  color: var(--paper-muted);
}

.news-pagination-wrap {
  margin-top: 1.5rem;
}

.news-pagination {
  margin: 0;
  gap: 0.2rem;
}

.news-pagination .page-link {
  border-radius: 0;
  border-color: var(--paper-border);
  color: var(--paper-accent);
  font-family: 'Libre Franklin', Arial, sans-serif;
  background: var(--paper-surface);
}

.news-pagination .page-item.active .page-link {
  border-color: var(--paper-accent);
  background: #eeeeee;
  color: #111;
}

.news-pagination .page-item.disabled .page-link {
  color: #9f9f9f;
  background: #f5f5f5;
}

.story-shell {
  border-top: 3px double var(--paper-border);
  padding-top: 1.2rem;
}

.story-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.story-kicker {
  margin: 0;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper-muted);
}

.story-title {
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 3.05rem);
  line-height: 1.04;
}

.story-meta {
  margin: 0.72rem 0 0;
  color: var(--paper-muted);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.84rem;
  line-height: 1.45;
}

.story-back-btn {
  justify-self: start;
  border: 1px solid var(--paper-border);
  border-radius: 0;
  background: var(--paper-surface);
  color: var(--paper-accent);
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.84rem;
}

.story-back-btn:hover,
.story-back-btn:focus {
  background: #f0f0f0;
}

.story-section {
  border-top: 1px solid var(--paper-border);
  padding-top: 1rem;
  margin-top: 1rem;
}

.story-section-title {
  margin: 0 0 0.7rem;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.81rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-muted);
  font-weight: bolder;
}

.story-text {
  margin: 0 0 0.9rem;
  line-height: 1.8;
  font-size: 1.04rem;
  text-align: justify;
}

.story-alert {
  border: 1px solid #e2b4b4;
  background: #fcf0f0;
  color: #7a2d2d;
  padding: 0.75rem 0.88rem;
  margin-top: 0.8rem;
}

.story-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1.35rem;
  border-top: 1px solid var(--paper-border);
  padding-top: 1.15rem;
}

.story-primary-btn {
  border-radius: 0;
  border: 1px solid var(--paper-accent);
  background: var(--paper-accent);
  color: #fff;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.86rem;
}

.story-primary-btn:hover,
.story-primary-btn:focus {
  background: #313131;
  color: #fff;
}

.story-chip {
  border: 1px solid var(--paper-border);
  background: #f6f6f6;
  color: var(--paper-muted);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-family: 'Libre Franklin', Arial, sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .paper-frame {
    width: calc(100% - 1.2rem);
  }

  .paper-topbar-inner {
    padding: 0.65rem 0;
  }

  .news-search {
    max-width: 100%;
  }

  .news-entry {
    padding-left: 0;
    padding-right: 0;
  }
}
