/* Section: Base */
:root {
  --bg: #f6d900;       /* yellow foundation (brand color) */
  --bg-2: #ffe86a;      /* lighter yellow accent */
  --jade: #18b49b;       /* jade/accent color */
  --jade-2: #0a8f78;     /* deeper jade for hover/contrast */
  --text: #0a0a0a;        /* high-contrast text on yellow/glass */
  --muted: #5b5b5b;
  --surface: rgba(255, 255, 255, 0.12); /* frosted glass surface */
  --surface-2: rgba(255, 255, 255, 0.28);
  --border: rgba(0, 0, 0, 0.25);
  --shadow: 0 8px 20px rgba(0,0,0,.15);
  --radius: 12px;
}
html, body { height: 100%; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: 
    linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.04) 60%, rgba(0,0,0,.04)),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.04) 0 1px, transparent 1px 2px),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }

/* Section: Layout helpers */
.container { width: 100%; max-width: clamp(24rem, 90vw, 1100px); padding: 0 1rem; margin: 0 auto; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* Section: Glass panels (fallback included) */
header, main, article, aside, footer { /* default structural roles styled as glass where relevant */ }
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; margin: 1rem auto; max-width: clamp(320px, 92vw, 1100px);
  border-radius: 12px; background: rgba(255,255,255,0.14);
  border: 1px solid var(--border); backdrop-filter: blur(12px);
}
@supports not (backdrop-filter: blur(12px)) {
  header { background: rgba(255,255,255,0.28); }
}
header h1 { margin: 0; font-size: clamp(1.25rem, 2.4vw + 0.5rem, 2.25rem); color: var(--text); }
header .meta { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Section: Typography & structure */
nav { display: flex; gap: .75rem; align-items: center; }
nav a { color: var(--jade); text-decoration: none; font-weight: 600; }
nav a:hover { text-decoration: underline; }
main { padding: 1rem; }
article { display: block; }

/* Section: Visual media */
.featured-image { border-radius: 12px; overflow: hidden; width: 100%; margin: .5rem 0 1rem; box-shadow: 0 8px 20px rgba(0,0,0,.15); border: 1px solid rgba(0,0,0,.25); }
.image-frame { aspect-ratio: 16/9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.25); box-shadow: 0 6px 16px rgba(0,0,0,.15); }

/* Section: Content helpers */
.content { max-width: 72ch; padding: 0.5rem 0; }

/* Section: Typography scale */
h1 { font-size: clamp(1.75rem, 4vw + 1rem, 3rem); margin: .75rem 0; color: var(--text); letter-spacing: .2px; }
h2 { font-size: clamp(1.15rem, 2.8vw, 1.25rem); margin: .75rem 0 .25rem; color: var(--text); }
p { margin: .25rem 0 1rem; }
ul, ol { margin: .5rem 0 1rem 1.25rem; padding: 0; }
li { margin: .25rem 0; }

/* Section: Links & CTAs */
a, button, .btn, .cta { cursor: pointer; text-decoration: none; }
a { color: var(--jade); }
a:hover, a:focus { text-decoration: underline; outline: none; }
:focus-visible { outline: 3px solid rgba(20, 180, 160, 0.95); outline-offset: 2px; }

/* Buttons (solid / outline) */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .6rem 1rem; border-radius: 8px; border: 1px solid rgba(0,0,0,.25); background: #fff; color: var(--text); font-weight: 600; transition: transform .15s ease, background .2s ease, color .2s; }
.btn--solid { background: var(--jade); color: #fff; border: 1px solid rgba(0,0,0,0); }
.btn--solid:hover { background: var(--jade-2); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--jade); border: 1px solid rgba(20,180,160,.9); }
.btn--outline:hover { background: rgba(20,180,160,.08); }

.cta { font-weight: 700; }

/* Section: utilities */
.tag { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .75rem; color: #fff; background: var(--jade); }

/* Section: lists & accessibility helpers */
ul { list-style: disc; padding-left: 1.25rem; }
li { line-height: 1.6; }

/* Section: images & media accessibility */
.image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Section: layout tweaks for responsiveness */
@media (min-width: 700px) {
  main { padding: 2rem 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding: 0; }
  main { padding: 2rem 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Section: Print */
@media print {
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
}
