/* Production CSS for Inside Cloudflare's Private Beta Email Service: What to Expect - X-05 */

:root {
  /* Palette derived from forest greens + pastel pinks */
  --forest-1: #0b2f17;
  --forest-2: #0a3d20;
  --bg-soft: rgba(0, 0, 0, 0.25);
  --text: #e9f5f0;
  --muted: #b8d8c3;
  --accent: #ff77a9;       /* pastel cyberpunk pink */
  --accent-2: #ffdbe8;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.28);
  --shadow: 0 12px 28px rgba(0,0,0,.28);
  --radius: 12px;
  --focus: 3px solid rgba(255, 119, 169, 0.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans";
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--text);
  /* Layered background: gradient + subtle scanlines + neon accents */
  background-color: var(--forest-1);
  background-image:
    linear-gradient(135deg, var(--forest-1) 0%, var(--forest-2) 60%, #0a2f14 100%), /* deep forest gradient */
    radial-gradient(circle at 70% -10%, rgba(255, 105, 180, 0.15), transparent 40%), /* pastel neon flare */
    repeating-linear-gradient(to bottom,
      rgba(0,0,0,.04) 0px,
      rgba(0,0,0,.04) 1px,
      transparent 1px,
      transparent 3px); /* subtle scanlines */
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

header, nav, main, article, aside, footer {
  display: block;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,119,169,.55);
  outline-offset: 2px;
}

:focus { outline: 0; }

main { padding: 1rem 0 2rem; }

.container {
  width: 100%;
  max-width: clamp(320px, 92vw, 1100px);
  margin-inline: auto;
  padding-inline: 1rem;
}

header {
  text-align: center;
  padding: 1rem 0 1.25rem;
  position: relative;
}

header h1 {
  font-size: clamp(1.6rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: .2px;
  color: var(--text);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}

header .meta {
  color: var(--muted);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  margin: 0.25rem 0 0.75rem;
  opacity: .95;
}

nav a {
  display: inline-block;
  padding: .5rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  transition: transform .2s ease, background .2s ease;
}
nav a:hover { background: rgba(0,0,0,.35); transform: translateY(-1px); }
nav a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255, 119, 169, .6); }

main article {
  display: block;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  max-width: 900px;
  margin: 0 auto;
}

@supports not (backdrop-filter: blur(12px)) {
  main article {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }
}

.featured-image {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.25);
  margin: 0 auto 1rem;
  max-width: 100%;
  width: 100%;
  display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.image-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 1rem 0 .5rem;
  color: var(--text);
}

h3 {
  font-size: clamp(1.15rem, 2.8vw, 1.5rem);
  margin: .75rem 0 0.25rem;
  color: var(--text);
}

p {
  font-size: clamp(1rem, 2.4vw, 1.125rem);
  margin: .5rem 0 1rem;
  color: rgba(233,245,240,.95);
}

ul {
  padding-left: 1.25rem;
  margin: .25rem 0 1rem;
}
li {
  margin: .25rem 0;
  color: rgba(233,245,240,.95);
}
strong { color: #fff; }

blockquote {
  margin: 1rem 0;
  padding: .75rem 1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,.15);
  border-radius: 6px;
}
blockquote p {
  margin: 0;
  font-style: italic;
  color: #fff;
}

.product-ad, .sponsored-page {
  display: inline-block;
  width: calc(50% - 0.5rem);
  vertical-align: top;
  margin: .5rem;
  text-align: center;
}
.product-ad a, .sponsored-page a {
  display: block;
  padding: .75rem;
  border-radius: 12px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.product-ad p, .sponsored-page p { margin: 0; font-size: 1rem; }

footer {
  padding: 1.5rem 0;
  margin-top: 1rem;
}

@media (min-width: 720px) {
  main { padding: 2rem 0; }
  footer { display: block; padding: 2rem 0; }
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  padding: 1rem;
}

@supports not (backdrop-filter: blur(12px)) {
  .card { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
}

.tag {
  display: inline-block;
  padding: .25rem .6rem;
  font-size: .8rem;
  border-radius: 999px;
  color: #041414;
  background: linear-gradient(135deg, #fff, #e8f9f7);
  border: 1px solid rgba(0,0,0,.15);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .product-ad, .sponsored-page { width: 100%; }
}

.btn, .cta, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover, .cta:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
}
.btn:active, .cta:active {
  transform: translateY(0);
}
.btn.primary, .cta.primary {
  background: linear-gradient(135deg, rgba(255,119,169,.95), rgba(255,119,169,.75));
  border: 1px solid rgba(255,255,255,.45);
  color: #0b0b0b;
}
.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
}
a.btn, a.cta {
  text-decoration: none;
}
a.btn:hover, a.cta:hover {
  text-decoration: underline;
}
a:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,119,169,.55);
  border-color: rgba(255,255,255,.8);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  header, nav, main, article, footer { background: none !important; color: #000; }
  a { text-decoration: underline; }
  .card { background: #fff !important; border: 1px solid #ddd; box-shadow: none; }
}