:root{
  --bg: #f2e6d0;
  --bg-2: #e8d6b7;
  --text: #0b0b0b;
  --muted: #5b5b5b;
  --accent: #2b6aff;
  --accent-2: #7bd3ff;
  --glass: rgba(255,255,255,.08);
  --glass-strong: rgba(255,255,255,.18);
  --border: rgba(255,255,255,.28);
  --shadow: 0 10px 28px rgba(0,0,0,.15);
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
  min-height: 100%;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(#f7ecd5, #e9d6b9);
  background-size: 20px 20px, 20px 20px, auto;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}
body::after{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 4px 100%, 100% 4px;
  mix-blend-mode: overlay;
  opacity:.15;
}

html, body, header, nav, main, article, footer, aside { height: auto; }
header, main, footer, aside, article {
  display: block;
}

/* Layout helpers */
.container { width: min(1100px, 92vw); margin-inline: auto; padding: 0 1rem; }
.grid { display: grid; gap: 1rem; }
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@supports not (backdrop-filter: blur(8px)) {
  .card { background: rgba(255,255,255,.18); }
}
.tag {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(43,106,255,.18);
  color: #0b1a2b;
  border: 1px solid rgba(43,106,255,.35);
}

.image-frame {
  display:block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 6px 18px rgba(0,0,0,.15);
  background: #000;
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* Header / hero / typography */
header {
  padding: 2rem 0;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.08));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
}
header h1 {
  font-size: clamp(1.75rem, 4vw + 1rem, 3rem);
  line-height: 1.15;
  margin: .5rem 0 0.25rem;
  letter-spacing: .2px;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}
header .meta {
  color: var(--muted);
  font-size: .9rem;
  margin: .25rem 0 0;
}
nav {
  display: flex;
  gap: .5rem;
  align-items: center;
  margin-top: .75rem;
}
nav a {
  color: var(--accent);
  text-decoration: none;
  padding: .25rem .6rem;
  border-radius: 6px;
  border: 1px solid rgba(43,106,255,.4);
  background: rgba(43,106,255,.08);
}
nav a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Main content */
main { padding: 1rem 0 2rem; }
article { max-width: clamp(520px, 90vw, 900px); margin: 0 auto; padding: 0 0; color: var(--text); }

/* Typography blocks inside article */
h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1.15rem, 0.9rem + .8vw, 1.4rem); margin: .75rem 0 .5rem; color: #0d1b2a; }
p { margin: .6rem 0; color: var(--text); }
ul { margin: .4rem 0 1rem 1.15rem; color: var(--muted); }
li { margin: .25rem 0; }

/* Links / CTAs inside content */
a, button, .btn, .cta {
  cursor: pointer;
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, .btn:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.65rem 1rem;
  border-radius:999px;
  border:1px solid rgba(43,106,255,.5);
  background: linear-gradient(#2b6aff, #2b6aff 60%, #1a54d1);
  color:#fff;
  font-weight:600;
  font-size: .95rem;
  letter-spacing:.2px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border:1px solid rgba(43,106,255,.8);
}
.btn--outline:hover {
  background: rgba(43,106,255,.08);
}
.cta { display:inline-flex; align-items:center; gap:.5rem; }

/* Content layout helpers used by content blocks */
.content { padding: .25rem 0; }

/* Product ad / aside-like sections (footer area uses these) */
.product-ad, .sponsored-page {
  display: block;
  padding: .8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
  margin: .5rem 0;
}
.product-ad a, .sponsored-page a {
  color: var(--text);
  text-decoration: none;
}
.product-ad p, .sponsored-page p { margin:0; font-weight: 600; }

/* Footer styling to echo glassy panels */
footer {
  padding: 1rem 0;
  display: grid;
  gap: .75rem;
  justify-items: center;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.25);
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  border-radius: 0 0 var(--radius) var(--radius);
  margin-top: 2rem;
}
footer p { margin: .25rem 0; color: var(--muted); }

/* Aside area (prepare for future use) */
aside { padding: .5rem; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; color: #000; }
  header, main, footer { border: 0; background: none; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.header-animate, .card, .image-frame, .container, article { animation: fadeIn 600ms ease-out; opacity: 0; }
.header-animate, .card { animation-fill-mode: forwards; }

/* Small screens adjustments */
@media (max-width: 640px) {
  header { padding: 1.25rem 0; }
  nav { justify-content: flex-start; }
  .image-frame { border-radius: 10px; }
}
