/* Production-ready stylesheet for the provided landing page (mobile-first, dark cyber + brown accents) */

/* Tokens: gray checkerboard + brown accents with glass panels */
:root{
  --bg: #0f1114;
  --bg-2: #1a1a1a;
  --surface: rgba(25, 25, 25, 0.72);
  --surface-2: rgba(23, 14, 8, 0.28);
  --text: #f5efe8;
  --muted: #b8b6ad;
  --accent: #8b5e3c;
  --accent-2: #6b4230;
  --border: rgba(255,255,255,0.28);
  --ring: 0 0 0 3px rgba(139,94,60,0.55);
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0,0,0,0.45);
  --fg: 0 1px 1px rgba(0,0,0,.5);
  --gap: 1rem;
}
:root, html { height: 100%; }

/* Global resets and accessibility helpers */
*,
*::before,
*::after { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif; font-size: 16px; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  /* Layered background: gray checkerboard + subtle scanlines + gradient */
  background-image:
    /* checkerboard (gray) */
    linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
    /* subtle scanlines */
    repeating-linear-gradient(to bottom, rgba(0,0,0,0.20) 0 1px, rgba(0,0,0,0) 1px 2px),
    /* dark indigo-brown gradient depth */
    linear-gradient(to bottom right, rgba(10,10,10,0.95), rgba(20,18,14,0.98));
  background-size: 16px 16px, 16px 16px, 2px 2px, 100% 100%;
  background-blend-mode: overlay, overlay, multiply, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }

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

/* Glass panels (fallbacks included) */
header, main, footer, aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(12px)) {
  header, main, footer, aside { background: rgba(25,25,25,0.88); border: 1px solid rgba(255,255,255,0.20); }
}
header{ text-align: center; padding-top: 1.25rem; padding-bottom: 1rem; }

/* Header title sizing (hero pattern) */
header h1{
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.8rem, 3.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: .2px;
  font-weight: 700;
  color: var(--text);
}
header p { margin: 0; color: var(--muted); font-size: clamp(0.95rem, 0.8vw + 0.9rem, 1.1rem); }

/* Main content area */
main{ display: grid; place-items: center; padding: 0 0.5rem; }
article{ width: 100%; }

/* Image frame with aspect ratio, object-fit, glow, border */
.image-frame{
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 12px rgba(0,0,0,.25), 0 8px 22px rgba(0,0,0,.45);
  background: #0b0b0b;
}
.image-frame img{ width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content area (used for potential text blocks) */
.content{ padding: 0 0.25rem; }
.content h2{ font-size: clamp(1.25rem, 1.6vw, 1.75rem); margin: .25rem 0 .4rem; color: var(--text); }
.content p{ color: var(--muted); margin: .25rem 0 0; font-size: clamp(0.95rem, 0.8vw + 0.95rem, 1.15rem); }

/* Product ad / footer sections (glass panels) */
.product-ad, .sponsored-page{
  padding: .75rem;
}
.product-ad a, .sponsored-page a{ display: block; text-decoration: none; padding: .6rem; border-radius: .6rem; color: var(--text); border: 1px solid rgba(139,94,60,.5); transition: transform .15s ease, background .2s ease; background: rgba(139,94,60,.20); }
.product-ad a:hover{ background: rgba(139,94,60,.34); transform: translateY(-1px); }
.product-ad a:focus-visible, .sponsored-page a:focus-visible{ outline: none; box-shadow: var(--ring); border-radius: .6rem; }

/* Links and interactive elements (focus rings + hover underline for accessibility) */
a, button, .btn, .cta{
  color: var(--text);
  text-decoration: none;
  outline: none;
}
a:hover, a:focus-visible{ text-decoration: underline; }
button, .btn, .cta{ cursor: pointer; border: none; background: none; padding: 0; font: inherit; color: inherit; }

/* Button variants */
.btn{ display: inline-flex; align-items: center; justify-content: center; padding: .72rem 1.1rem; border-radius: .75rem; border: 1px solid rgba(255,255,255,.38); background: rgba(139,94,60,.28); color: var(--text); transition: transform .15s ease, background .2s ease, border-color .2s; }
.btn + .btn{ margin-inline-start: .5rem; }
.btn:hover{ background: rgba(139,94,60,.42); transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn:focus-visible{ outline: none; box-shadow: var(--ring); }

/* Solid vs outline helpers */
.btn.primary{ background: linear-gradient(to bottom right, rgba(139,94,60,.9), rgba(139,94,60,.65)); border-color: rgba(139,94,60,.8); }
.btn.outline{ background: transparent; border: 1px solid rgba(139,94,60,.8); }

/* Text emphasis chips */
.tag{ display: inline-block; padding: .25rem .5rem; border-radius: .5rem; border: 1px solid rgba(255,255,255,.28); font-size: .75rem; color: var(--text); background: rgba(0,0,0,.2); }

/* Lists and utilities */
ul, li{ margin: 0; padding: 0; list-style: none; }
.grid{ display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Cards (glass panels) */
.card{
  padding: .9rem;
  border-radius: .9rem;
  background: rgba(28,28,28,.5);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .15s ease, background .2s ease;
}
.card:hover{ transform: translateY(-2px); }

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

/* Desktop polish: center blog-like layout, stack sections neatly */
@media (min-width: 720px){
  main{ padding: 1.25rem 0; }
  .image-frame{ border-radius: 16px; }
}

/* Print-friendly tweaks (basic readability) */
@media print{
  body{ background: #fff; color: #000; }
  header, main, footer{ background: #fff; border: none; border-radius: 0; box-shadow: none; }
}
 
/* Light-mode tweaks for legibility if user prefers light scheme */
@media (prefers-color-scheme: light){
  :root{
    --bg: #f6f5f2;
    --bg-2: #e9e0d2;
    --surface: rgba(255,255,255,0.88);
    --surface-2: rgba(240,235,230,0.5);
    --text: #0b0b0b;
    --muted: #555;
    --border: rgba(0,0,0,.15);
    --accent: #7a4b23;
    --accent-2: #5a2e15;
    --ring: 0 0 0 3px rgba(122,75,35,0.55);
  }
  body{
    background-image:
      linear-gradient(45deg, rgba(0,0,0,0.03) 25%, transparent 25%),
      linear-gradient(-45deg, rgba(0,0,0,0.03) 25%, transparent 25%),
      repeating-linear-gradient(to bottom, rgba(0,0,0,0.04) 0 1px, transparent 1px 2px),
      linear-gradient(to bottom right, #f5f3ee, #eee);
    background-blend-mode: overlay, overlay, overlay, normal;
  }
  header, main, footer{ background: rgba(255,255,255,0.92); border: 1px solid rgba(0,0,0,.15); }
  a, .btn{ color: #111; }
}
