:root {
  --brand-primary: #0d7eff;
  --brand-secondary: #0b1f48;
  --brand-accent: #00c98b;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --ring: rgba(13, 126, 255, 0.22);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background:
    radial-gradient(1100px 450px at -10% -15%, rgba(13, 126, 255, 0.16), transparent 55%),
    radial-gradient(700px 420px at 110% 0%, rgba(0, 201, 139, 0.16), transparent 52%),
    linear-gradient(180deg, #f6faff 0%, #f8fafc 42%, #f4f7fb 100%);
  color: #111827;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

.site-header {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.hero-pattern {
  position: relative;
  overflow: hidden;
}

.hero-pattern::after {
  content: '';
  position: absolute;
  inset: auto -15% -30% auto;
  width: 340px;
  height: 340px;
  border-radius: 9999px;
  background: linear-gradient(130deg, rgba(13, 126, 255, 0.12), rgba(0, 201, 139, 0.17));
  filter: blur(4px);
  pointer-events: none;
}

.hero-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.2rem 1.6rem;
  border-radius: 1.25rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.75));
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.card-shadow {
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-shadow:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
  border-color: rgba(13, 126, 255, 0.24);
}

.pill-muted {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #334155;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #2b7dff 55%, #4f99ff 100%);
  border: 1px solid rgba(13, 126, 255, 0.35);
  box-shadow: 0 8px 18px rgba(13, 126, 255, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(13, 126, 255, 0.34);
  filter: saturate(1.05);
}

.btn-accent {
  background: linear-gradient(135deg, #09b47f 0%, var(--brand-accent) 100%);
  border: 1px solid rgba(0, 201, 139, 0.34);
  box-shadow: 0 8px 18px rgba(0, 201, 139, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(0, 201, 139, 0.31);
}

.exchange-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.exchange-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13, 126, 255, 0.32);
}

.author-box {
  background: linear-gradient(160deg, rgba(13, 126, 255, 0.08), rgba(0, 201, 139, 0.08)) !important;
  border: 1px solid rgba(13, 126, 255, 0.24);
}

.author-box h4,
.author-box h5,
.author-box p {
  color: #102a5b !important;
}

.newsletter-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 251, 255, 0.95)) !important;
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #0f172a !important;
}

.newsletter-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(13, 126, 255, 0.95), rgba(0, 201, 139, 0.9));
}

.newsletter-panel h4 {
  color: #0f2f61;
}

.newsletter-panel p {
  color: #475569;
}

.newsletter-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.35rem;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.38);
}

.newsletter-trust {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: #64748b;
}

.page-link {
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.86);
}

.page-link:hover {
  border-color: rgba(13, 126, 255, 0.4);
  color: var(--brand-primary);
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  color: #0f2f61;
}

.post-content p,
.post-content li {
  line-height: 1.85;
  color: #334155;
}

.post-content a {
  color: var(--brand-primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

input,
textarea,
select {
  border-color: rgba(148, 163, 184, 0.45);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px var(--ring);
}

footer {
  background: linear-gradient(180deg, #0f234e 0%, #081a3d 100%);
}

.newsletter-status {
  min-height: 1.25rem;
}

@media (max-width: 768px) {
  .hero-pattern {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .site-header .container {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .hero-shell {
    padding: 1.45rem 1rem;
    border-radius: 1rem;
  }

  .hero-shell h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-shell p {
    font-size: 1rem;
  }

  .card-shadow {
    border-radius: 1rem;
  }

  .pill-muted {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .page-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
  }

  .btn-primary,
  .btn-accent {
    min-height: 46px;
  }

  .reply-trigger,
  .cancel-reply,
  button[type='submit'],
  a[class*='rounded-full'],
  a[class*='rounded-lg'] {
    min-height: 44px;
  }

  .reply-trigger {
    padding: 0.4rem 0.2rem;
  }

  input,
  textarea,
  select,
  button {
    font-size: 16px;
  }

  input,
  select,
  button {
    min-height: 44px;
  }

  textarea {
    min-height: 120px;
  }

  .post-content p,
  .post-content li {
    font-size: 1.02rem;
    line-height: 1.76;
  }

  .post-content h2,
  .post-content h3,
  .post-content h4 {
    line-height: 1.25;
  }

  .newsletter-status {
    margin-top: 0.35rem;
  }

  .newsletter-panel {
    padding: 1rem !important;
  }

  .newsletter-panel h4 {
    font-size: 1.15rem;
  }

  .hero-pattern .flex.justify-center.space-x-4 {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .hero-pattern .flex.justify-center.space-x-4 > * {
    margin: 0;
    width: 100%;
  }

  .hero-pattern .flex.justify-center.space-x-4 a {
    justify-content: center;
  }
}
