/* NextGrade — festival guides, wishes and small apps. One stylesheet, no framework. */
:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --text: #2b2118;
  --muted: #6f6257;
  --line: #eadfce;
  --brand: #d9480f;
  --brand-ink: #ffffff;
  --accent: #7048e8;
  --soft: #fff0e3;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(80, 40, 0, 0.08);
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120e;
    --surface: #211a14;
    --text: #f4ebe1;
    --muted: #b9a998;
    --line: #3a2f25;
    --brand: #ff8a4c;
    --brand-ink: #1b120b;
    --accent: #b197fc;
    --soft: #2b2017;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #ff922b, #d9480f); display: grid; place-items: center; color: #fff; font-size: 16px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--soft); color: var(--brand); }
@media (max-width: 640px) {
  .site-head .wrap { flex-direction: column; align-items: flex-start; padding-top: 8px; padding-bottom: 8px; gap: 4px; }
  .nav { margin-left: -10px; }
  .nav a { font-size: 14px; padding: 4px 8px; }
}

/* Hero */
.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 20px; max-width: 640px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 16px; font-family: inherit; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }

/* Sections and cards */
section { padding: 20px 0; }
h2 { font-size: 26px; line-height: 1.25; margin: 28px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 22px 0 8px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 6px; }
a.card:hover { border-color: var(--brand); }
.card .emoji { font-size: 34px; line-height: 1; }
.card h3 { margin: 6px 0 0; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 2px 8px; border-radius: 999px; align-self: flex-start; }

/* Article */
.article { padding: 28px 0 40px; }
.article h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.2; margin: 8px 0 10px; letter-spacing: -0.02em; }
.lead { font-size: 19px; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 18px 0; }
.fact { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.fact b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.wish-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.wish-list li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.wish-list li span { flex: 1; }
.copy { flex-shrink: 0; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-family: inherit; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.cta { background: var(--soft); border-radius: var(--radius); padding: 20px; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cta p { margin: 0; font-weight: 600; }
.note { font-size: 14px; color: var(--muted); }

/* Ads: reserved space so the page does not jump */
.ad { margin: 24px 0; min-height: 100px; }

/* Wish card maker */
.maker { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .maker { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 100%; }
.preview canvas { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0; font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-foot a { color: var(--muted); }
