:root { --bg:#15171c; --panel:#1d2026; --line:#2c3038; --ink:#e7e4dd; --muted:#8c93a1; --gold:#c9a86a; --accent:#c9a86a;
        --card:#191c22; --soft:#b9b6ad; --input-bg:#0f1116; --input-border:#3a414d; --placeholder:#2a2e37; }
/* Light theme — warm paper tones. Default stays dark (no data-theme attribute).
   --gold keeps the same warm gold for button fills; --accent is a deeper gold
   used only for gold *text*, which needs more contrast on the light background. */
html[data-theme="light"] {
  --bg:#f3efe8; --panel:#ffffff; --line:#e2dccf; --ink:#2c2a25; --muted:#6f6a5f;
  --gold:#c9a86a; --accent:#9c7a32;
  --card:#fbf9f4; --soft:#5f5b52; --input-bg:#ffffff; --input-border:#cfc7b6; --placeholder:#e6e1d6;
}
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font-family:Georgia,'Times New Roman',serif;
       display:flex; justify-content:center; transition:background-color .2s ease, color .2s ease; }

/* Tema-skift — lille ikon øverst til højre; ☀️ i mørkt tema, 🌙 i lyst. Icon is
   CSS-driven so it tracks the theme with no flash, even before capture.js runs. */
.theme-toggle { position:fixed; top:14px; right:14px; z-index:1500; width:38px; height:38px;
  display:flex; align-items:center; justify-content:center; padding:0; border:0; background:none;
  color:var(--muted); font-size:24px; line-height:1; cursor:pointer; opacity:.5;
  transition:opacity .15s, color .15s; }
.theme-toggle:hover { opacity:1; color:var(--ink); }
.theme-toggle::before { content:"\25D0"; }                          /* ◐ — mørkt tema */
html[data-theme="light"] .theme-toggle::before { content:"\25D1"; } /* ◑ — lyst tema */
main { width:100%; max-width:560px; padding:40px 22px 64px; text-align:center; }
.portrait { width:120px; height:120px; border-radius:50%; object-fit:cover; margin:0 auto 18px;
            background:var(--placeholder); display:block; cursor:zoom-in;
            box-shadow:0 0 0 1px var(--line), 0 8px 22px rgba(0,0,0,.22); }
h1 { font-size:42px; margin:0; font-weight:500; }
.dates { color:var(--muted); letter-spacing:.22em; text-transform:uppercase; font-size:16px; margin-top:8px; }
.epitaph { font-style:italic; color:var(--soft); margin:20px 10px 26px; font-size:16px; line-height:1.6; }
/* One button style/size everywhere — gold link-button look. */
.btn { display:inline-block; background:var(--gold); color:#1b1d22; text-decoration:none; font-family:system-ui,sans-serif;
       font-weight:600; padding:7px 11px; border-radius:10px; border:0; cursor:pointer; font-size:12px; }
.btn:hover { filter:brightness(1.06); }
.article-links { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; align-items:center; margin:40px 0 16px; }
.article-link { margin:0; }
/* Keep each label on one line so both buttons share one row within the 560px
   column (they wrap to stacked on narrow phones). */
.article-link .btn { white-space:nowrap; }
.article-source { color:var(--muted); font-family:system-ui,sans-serif; font-size:12px; margin-top:9px; }
hr { border:0; border-top:1px solid var(--line); margin:34px 4px; }
.section-title { letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-size:13px; margin-bottom:6px; }
.candles { color:var(--accent); margin:10px 0 18px; font-family:system-ui,sans-serif; }
.actions { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin:10px 0; }

/* Guestbook entries — clearly distinct quote cards, NOT form fields */
#guestbook { margin:6px 0 18px; }
.bubble { background:var(--card); border:1px solid var(--line); border-left:3px solid var(--accent);
          border-radius:10px; padding:13px 15px; text-align:left; margin:11px 0;
          font-family:system-ui,sans-serif; }
.bubble .msg { font-size:15px; line-height:1.5; color:var(--ink); }
.bubble .who { color:var(--accent); font-size:12.5px; margin-top:9px; letter-spacing:.04em; }
.gb-empty { color:var(--muted); font-style:italic; font-size:14px; margin:8px 0 14px; }

/* Form fields (inside the modal) — read clearly as inputs */
.field-label { display:block; text-align:left; font-family:system-ui,sans-serif; font-size:11px;
               letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:12px 0 4px; }
input, textarea { width:100%; background:var(--input-bg); border:1px solid var(--input-border); color:var(--ink);
                  border-radius:8px; padding:11px 13px; font-family:system-ui,sans-serif; font-size:15px; }
input:focus, textarea:focus { outline:none; border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,168,106,.22); }
.hp { position:absolute; left:-9999px; }   /* honeypot */

/* Visitor data-collection notice — quiet but present (GDPR transparency) */
.site-notice { margin-top:44px; padding-top:18px; border-top:1px solid var(--line);
               color:var(--muted); font-family:system-ui,sans-serif; font-size:12px; line-height:1.6; }
.site-notice a { color:var(--muted); text-decoration:underline; }
.site-notice a:hover { color:var(--gold); }

/* /privacy reading page */
.prose { text-align:left; }
.prose h1 { text-align:center; }
.prose .epitaph { text-align:center; }
.prose ul { font-family:system-ui,sans-serif; font-size:14px; line-height:1.7; color:var(--ink);
            padding-left:20px; }
.prose li { margin:7px 0; }
.prose p { font-family:system-ui,sans-serif; font-size:14px; line-height:1.7; color:#cfd3da; }
.prose .section-title { margin-top:26px; }
.prose a:not(.btn) { color:var(--gold); }

/* Modals */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,.66); backdrop-filter:blur(3px);
                 display:flex; align-items:center; justify-content:center; padding:20px; z-index:2000; }
.modal-overlay[hidden] { display:none; }
.modal { width:100%; max-width:440px; background:var(--panel); border:1px solid var(--line);
         border-radius:16px; padding:24px 22px; box-shadow:0 24px 60px rgba(0,0,0,.55);
         animation:pop .16s ease; }
@keyframes pop { from { transform:translateY(10px) scale(.985); opacity:0; } to { transform:none; opacity:1; } }
.modal-title { margin:0 0 6px; font-size:23px; }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }
.modal-center { text-align:center; }
.modal-icon { font-size:42px; line-height:1; margin-bottom:6px; }
.modal-text { color:var(--soft); font-family:system-ui,sans-serif; line-height:1.6; font-size:15px; margin:6px 0 4px; }

/* Portræt-lightbox — tap to enlarge, tap again / Esc / browser-back to shrink */
.lightbox { position:fixed; inset:0; background:rgba(0,0,0,.92); backdrop-filter:blur(4px);
            display:flex; align-items:center; justify-content:center; padding:24px; z-index:3000;
            cursor:zoom-out; animation:fade .16s ease; }
.lightbox[hidden] { display:none; }
.lightbox-img { max-width:min(100%,560px); max-height:90vh; object-fit:contain; border-radius:14px;
                box-shadow:0 24px 70px rgba(0,0,0,.6); animation:pop .18s ease; }
@keyframes fade { from { opacity:0; } to { opacity:1; } }
