@import "../../assets/base.css";

:root {
  --bg: #f4efe6;
  --surface: #fff9ee;
  --ink: #192227;
  --muted: #516067;
  --line: #d8ccbb;
  --accent: #0a7c70;
  --accent-strong: #07574f;
  --highlight: #f2b03d;
  --shadow: 0 14px 34px rgba(25, 34, 39, 0.12);
}

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

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(242, 176, 61, 0.24), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(10, 124, 112, 0.2), transparent 24%),
    var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

.bg-shape {
  position: fixed;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.5;
  pointer-events: none;
}

.bg-shape-left {
  background: #f2b03d;
  top: 60px;
  left: -100px;
}

.bg-shape-right {
  background: #0a7c70;
  bottom: 80px;
  right: -110px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
}

nav a,
.text-link,
.button-link {
  color: var(--accent-strong);
  font-weight: 600;
}

nav a {
  text-decoration: none;
}

.hero {
  padding: 2rem 0 1rem;
  animation: rise-in 0.7s ease;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "IBM Plex Serif", Georgia, serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.4rem 0 1rem;
}

.subhead {
  max-width: 70ch;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

.signup-card,
.issue-preview-card,
.archive-list li,
.issue-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.signup-card {
  padding: 1.2rem;
  max-width: 680px;
}

.signup-card h2 {
  margin: 0;
}

.signup-form {
  margin: 0.8rem 0 0.4rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.signup-form input {
  flex: 1 1 240px;
  border: 1px solid #b9c3bf;
  border-radius: 10px;
  padding: 0.68rem 0.8rem;
  font: inherit;
}

.signup-form button,
.button-link {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.signup-form button:hover,
.button-link:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.signup-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.captcha-container {
  flex: 1 1 100%;
  min-height: 66px;
  margin-top: 0.2rem;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  margin: 0.2rem 0 0.4rem;
  min-height: 1.2em;
  color: var(--accent-strong);
  font-weight: 600;
}

.form-message.is-success {
  color: var(--accent-strong);
}

.form-message.is-error {
  color: #8f2d2d;
}

.sources {
  padding: 1.5rem 0 0.5rem;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.4rem;
}

.sources-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.sources-col h3 {
  margin: 0 0 0.5rem;
}

.sources-col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.sources-col li {
  margin: 0.2rem 0;
}

.preview,
.archive,
.issue {
  padding: 2rem 0;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.issue-preview-card,
.issue-content {
  padding: 1.25rem;
}

.issue-meta {
  margin: 0;
  color: var(--muted);
}

.archive-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.archive-list li {
  padding: 1rem;
}

.archive-list h3 {
  margin: 0 0 0.35rem;
}

.archive-list p {
  margin: 0.2rem 0;
  color: var(--muted);
}

.issue-content h2 {
  margin-top: 1.45rem;
}

.issue-content h2:first-child {
  margin-top: 0;
}

.separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.35rem 0;
}

.issue-source {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.site-footer {
  padding: 1.8rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.ad-wrap {
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.ad-label {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.adsense-slot {
  display: block;
  min-height: 90px;
}

.adsense-slot[data-ad-ready="false"] {
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: rgba(10, 124, 112, 0.06);
}

.consent-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent-strong);
  text-decoration: underline;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(860px, calc(100% - 1.5rem));
  z-index: 100;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
}

.consent-banner p {
  margin: 0;
}

.consent-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.consent-actions button {
  border-radius: 10px;
  font-weight: 700;
  padding: 0.48rem 0.75rem;
  cursor: pointer;
}

.consent-accept {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent-strong);
}

.consent-decline {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes rise-in {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 680px) {
  .signup-card,
  .issue-preview-card,
  .archive-list li,
  .issue-content {
    border-radius: 14px;
  }

  .bg-shape {
    width: 180px;
    height: 180px;
  }

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