/* Palette & Utilities */
:root{
  --bg: #cbd5d8;            /* silver base */
  --bg-2: #e6d4be;          /* beige accent */
  --text: #0b0b0b;
  --muted: #5a5a5a;
  --accent: #bfb2a0;          /* soft beige */
  --accent-2: #d6c8b0;        /* lighter beige */
  --glass: rgba(255,255,255,.12);
  --glass-border: rgba(255,255,255,.25);
  --shadow: 0 6px 18px rgba(0,0,0,.15);
  --focus: 3px solid rgba(0,0,0,.8);
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: clamp(14px, 1.6vw, 16px); }
body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 60%, #e8e0d0 100%),
    repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 2px);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; color: var(--accent); }

/* Layout helpers */
.container { width: min(92%, 1100px); margin: 0 auto; padding: 1rem 0; }
.grid { display: grid; gap: 1rem; }

/* Glass panels & layering (with fallback) */
.glass {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
}
@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .glass { background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.15); padding: 1rem; }
}

/* Section semantics */
header, main, footer, aside, article { display: block; }
header { padding: .75rem 0; }
main { padding: 1rem 0; }
footer { padding: 1rem 0; }

/* Hero / content typography */
h1 { font-size: clamp(1.6rem, 2.5vw + 1rem, 3rem); line-height: 1.05; margin: .25rem 0 .5rem; }
h2 { font-size: clamp(1.4rem, 1.6vw + .6rem, 2.2rem); margin: .75rem 0 .5rem; }
h3 { font-size: clamp(1.1rem, 1.2vw + .4rem, 1.6rem); margin: .75rem 0 .5rem; font-weight: 600; }
p { margin: .5rem 0; color: var(--text); }
.meta { color: var(--muted); font-size: .95rem; margin: 0 0 .75rem; }

/* Imagery */
.image-frame, .featured-image { width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.image-frame { aspect-ratio: 16 / 9; }
.image-frame img, .featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Content wrapper (optional utility) */
.content { max-width: 60ch; }

/* Cards / utility components */
.card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .75rem; box-shadow: 0 4px 14px rgba(0,0,0,.08); }

/* Lists & tags */
ul { padding-left: 1.25rem; margin: .5rem 0; }
li { margin: .25rem 0; }

/* Product ad & sponsored blocks (footer) */
.product-ad, .sponsored-page { display: block; margin: .5rem 0; }
.product-ad a, .sponsored-page a { display: block; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(0,0,0,.15); text-align: center; color: #111; background: rgba(255,255,255,.85); text-decoration: none; }
.product-ad a:hover, .sponsored-page a:hover { background: rgba(0,0,0,.04); }

/* Buttons & CTAs (solid + outline) */
.btn, .cta, a.btn, a.cta, button { font-weight: 600; border-radius: 8px; padding: .55rem .95rem; border: none; cursor: pointer; display: inline-block; text-align: center; text-decoration: none; transition: transform .15s ease, background .2s ease, color .2s ease; }
.btn { background: #d6c8b0; color: #0b0b0b; border: 1px solid rgba(0,0,0,.12); }
.btn:hover { transform: translateY(-1px); background: #cdbba0; }
.btn:focus-visible { outline: var(--focus); outline-offset: 2px; }
.btn--outline { background: transparent; border: 1px solid rgba(0,0,0,.25); color: var(--text); }
.btn--outline:hover { background: rgba(0,0,0,.05); }

/* Link emphasis for accessibility on focus/hover (underline) */
a:focus-visible, a:hover { text-decoration: underline; }

/* Print styles (basic readability) */
@media print {
  body { background: white; color: #000; }
  a { text-decoration: underline; color: #000; }
}

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

/* HERO & layout defaults for mobile-first responsiveness */
header { display: block; text-align: left; padding: 1rem 1rem 0; }
header h1 { color: #111; }
main { padding: 0 1rem; }
article { margin: .75rem 0; }

/* Section separators (visual) */
hr { border: none; height: 1px; background: rgba(0,0,0,.08); margin: 1rem 0; display: block; }