:root{
  /* Candlelight Christmas palette */
  --bg0: #070a07;          /* near-black evergreen */
  --bg1: #0b1310;          /* deep green */
  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.09);
  --border: rgba(255,255,255,0.14);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);

  --gold: #f3d38a;         /* warm highlight */
  --red: #e25555;          /* berry red */
  --green: #6fd3a3;        /* soft mint highlight */
  --focus: rgba(243,211,138,0.35);

  /* Reading */
  --fontSize: 17px;
  --lineHeight: 1.55;
}

*{ box-sizing:border-box; }
html { -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--fontSize);
  line-height: var(--lineHeight);
  color: var(--text);

  /* Dim-light friendly background: evergreen + warm glow */
  background:
    radial-gradient(900px 520px at 18% 0%, rgba(243,211,138,0.10), transparent 60%),
    radial-gradient(900px 520px at 82% 18%, rgba(226,85,85,0.10), transparent 62%),
    radial-gradient(1200px 720px at 50% 110%, rgba(111,211,163,0.07), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
}

.container{
  width:min(760px, calc(100% - 24px));
  margin:22px auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(7,10,7,0.58);
  border-bottom: 1px solid var(--border);
}
.topbar-inner{
  width:min(760px, calc(100% - 24px));
  margin:0 auto;
  padding:12px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.brand{
  font-weight: 750;
  letter-spacing: 0.2px;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(243,211,138,0.18);
}

h1{
  margin: 10px 0 8px;
  font-size: 1.7rem;
  letter-spacing: 0.2px;
}
.subtle{
  color: var(--muted);
  margin: 0 0 14px;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  color: rgba(255,255,255,0.86);
}

.card, .list-item, input, button, textarea{
  border-radius: 16px;
  border: 1px solid var(--border);
}

.card{
  background: var(--card);
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.20);
}

label{
  display:block;
  margin: 0 0 8px;
  color: var(--muted);
}

input, textarea{
  width:100%;
  padding: 12px 12px;
  background: rgba(0,0,0,0.26);
  color: var(--text);
  outline: none;
  font-size: 1rem;
}

input:focus, textarea:focus, button:focus, a.ghost:focus{
  box-shadow: 0 0 0 4px var(--focus);
  border-color: rgba(243,211,138,0.45);
}

button{
  width:100%;
  padding: 12px 12px;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(243,211,138,0.12);
  color: var(--text);
  border-color: rgba(243,211,138,0.22);
}

button:hover{
  background: rgba(243,211,138,0.16);
}

button.ghost, a.ghost{
  width:auto;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration:none;
}

button.ghost:hover, a.ghost:hover{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
}

.alert{
  background: rgba(226,85,85,0.16);
  border: 1px solid rgba(226,85,85,0.35);
  padding: 10px 12px;
  border-radius: 16px;
  margin-bottom: 12px;
}

.list{ display:grid; gap:10px; }
.list-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background: var(--card2);
  padding: 14px;
  color: var(--text);
  text-decoration:none;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.list-item:hover{
  border-color: rgba(243,211,138,0.22);
}

.chev{
  color: rgba(243,211,138,0.95);
  font-size: 1.35rem;
  line-height: 1;
}

.lyrics{
  white-space: pre-wrap;
  line-height: 1.65;
  background: rgba(0,0,0,0.24);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 1.15rem; /* bigger for singing */
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

/* Search bar if you added it */
.search{
  display:flex;
  gap: 10px;
  margin: 12px 0 8px;
}
.search input{ margin:0; }
.search button{ width:auto; }

/* Make taps comfy on phones */
@media (max-width: 420px){
  :root{ --fontSize: 18px; }
  h1{ font-size: 1.55rem; }
  .lyrics{ font-size: 1.12rem; }
  .topbar-inner{ padding: 10px 0; }
}

/* Extra big text mode (for singing/dim light) */
body.big .lyrics{
  font-size: 1.38rem;
  line-height: 1.9;
}

/* Optional: make headings/buttons a touch larger too */
body.big h1{
  font-size: 1.95rem;
}
body.big .ghost, body.big button{
  font-size: 1.05rem;
}

/* Presentation mode: maximize lyrics, hide chrome */
body.present .topbar {
  display: none;
}

body.present .container {
  width: min(920px, calc(100% - 16px));
  margin: 12px auto;
}

body.present h1 {
  margin-top: 6px;
  color: rgba(243,211,138,0.95);
  text-align: center;
}

body.present .lyrics {
  font-size: 1.28rem;   /* comfy default */
  line-height: 1.85;
  padding: 18px;
}

/* If "big" is also on, go extra large */
body.present.big .lyrics {
  font-size: 1.48rem;
  line-height: 1.95;
}

/* Optional: reduce distractions further */
body.present .subtle,
body.present .card,
body.present .list,
body.present form {
  /* These aren't usually on the carol page, but safe */
}


/* Song index in list */
.list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.list-item .index {
  min-width: 2.2ch;
  text-align: right;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.9;
}

.list-item .title {
  overflow-wrap: anywhere;
}

.songno{
  color: var(--gold);
  font-weight: 800;
}
