/* Base tokens */
:root{
  --bg: #fbe6d8;
  --bg-2: #f3d9bf;
  --text: #0b0a08;
  --muted: #6f6158;
  --surface: rgba(255,255,255,0.12);
  --surface-2: rgba(255,255,255,0.22);
  --border: rgba(255,255,255,0.40);
  --accent: #ffb482;
  --accent-2: #d6a987;
  --focus: #7bd3ff;
  --shadow: 0 6px 18px rgba(0,0,0,.15);
  --radius: 12px;
  --container-max: clamp(320px, 92vw, 1100px);
}

/* Layout helpers */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  /* Layered background: gradient + subtle scanlines + noise-like texture | pure CSS */
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 60%, rgba(255,255,255,0.04) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.03) 0 1px, transparent 1px 2px),
    linear-gradient(to bottom right, var(--bg), var(--bg-2));
  background-blend-mode: overlay, overlay, normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
  line-height: 1.5;
  padding: 1rem;
}
img { max-width: 100%; display: block; }

/* Section wrappers with glassy surfaces (fallbacks included) */
header, main, article, footer, aside {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}
@supports not (backdrop-filter: blur(8px)) {
  header, main, article, footer, aside { background: rgba(255,255,255,0.22); }
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }

/* Typography */
h1, h2, h3 { margin: .25em 0 .5em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 2.2vw + 1rem, 3rem); line-height: 1.12; }
h2 { font-size: clamp(1.4rem, 1.6vw + 0.8rem, 2rem); }
h3 { font-size: clamp(1.15rem, 1.1vw + .6rem, 1.5rem); }
p { color: var(--text); margin: .5em 0; }
.meta { color: var(--muted); font-size: clamp(0.92rem, 0.6vw + 0.8rem, 1.05rem); margin: 0 0 .25rem; }

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

/* Content panels and sections */
.content { padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); }

/* Generic card / utility surface */
.card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 1rem;
  display: block;
}
.tag {
  display: inline-block;
  padding: .25em .6em;
  border-radius: 999px;
  font-size: .75rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.4);
  color: var(--text);
}

/* Navigation and interactive elements */
a, button, .btn, .cta {
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: .6em 1em;
  font-weight: 600;
  display: inline-block;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
a { color: var(--accent-2); }
a:hover, a:focus { text-decoration: underline; color: var(--accent); outline: none; }
.btn {
  background: var(--accent);
  color: #1a1a1a;
  border: 1px solid rgba(0,0,0,.15);
}
.btn:hover { transform: translateY(-1px); background: #ff9a50; }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cta {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.6);
}
.cta:hover { background: rgba(255,255,255,.08); }

/* Layout primitives for content flow */
main { padding: 1rem; }
article { padding: 0; }

/* Lists */
ul { padding-left: 1.25em; margin: .25em 0; }
li { margin: .25em 0; }

/* Sections used by HTML (flexitaly) */
header h1 { margin-bottom: .25em; }

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

/* Print styles for readability */
@media print {
  body { background: #fff; color: #000; padding: 0.5in; }
  a { text-decoration: underline; color: #000; }
  header, main, article, aside, footer { border: none; background: transparent; box-shadow: none; }
}
