/* MEMVOJO — hjemmesidens fælles udtryk (mockup hjemmeside-udtryk v1, godkendt 2026-10-04).
   Udtrykket kommer fra /apps (apps-forside v5). Hentes af base_site.html efter
   landing/shell.css, så alt her er scopet under body.site: admin, Sonvojo og de
   sider, der stadig står på base_landing.html, ser uændrede ud.
   Filerne: base.css (tokens, topbar, menu, solnedgang, knap, tillid, fod),
   cards.css (kort), prose.css (lange tekster), forms.css (felter og lister). */

/* Reserveskrifter med webskrifternes mål. Indtil Inter og Cormorant Garamond
   er hentet, tegnes teksten med en lokal skrift, der er skaleret til samme
   bredde og linjehøjde. Så hopper siden ikke, når webskriften skifter ind
   (CLS på /om-os var 0,145 ved 360px). Tallene er beregnet med fontTools ud
   fra Googles latin-filer og den lokale skrifts metrik og målt i Chromium.
   Justér ikke skriftens x-højde på .site: det tilsidesætter size-adjust, så
   reserveskriften får sin egen størrelse igen, og siden hopper. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 106.47%; ascent-override: 90.99%; descent-override: 22.65%; line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback Android";
  src: local("Roboto"), local("Roboto-Regular");
  size-adjust: 107.68%; ascent-override: 89.96%; descent-override: 22.4%; line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 89.12%; ascent-override: 103.67%; descent-override: 32.2%; line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Fallback Android";
  src: local("Noto Serif"), local("NotoSerif");
  size-adjust: 83.05%; ascent-override: 111.26%; descent-override: 34.56%; line-gap-override: 0%;
}
/* Cormorant Garamond kursiv er langt smallere end den opretstående. */
@font-face {
  font-family: "Cormorant Fallback"; font-style: italic;
  src: local("Georgia Italic"), local("Georgia-Italic");
  size-adjust: 78.4%; ascent-override: 117.86%; descent-override: 36.61%; line-gap-override: 0%;
}
@font-face {
  font-family: "Cormorant Fallback Android"; font-style: italic;
  src: local("Noto Serif Italic"), local("NotoSerif-Italic");
  size-adjust: 76.35%; ascent-override: 121.03%; descent-override: 37.59%; line-gap-override: 0%;
}

body.site {
  --bg-end: #0c0d1f;
  --dusk: #1c1530;
  --card: #1a1429;
  --warm-line: rgba(238, 160, 120, 0.26);
  --glow: rgba(232, 140, 96, 0.14);
  --cream: #f7f1e6;
  --read: #ebe4d6;
  --text-soft: #b4bdcb;
  --gold: #e4a830;
  --gold-light: #f0c060;
  --gold-pale: #f0d890;
  /* Skallens navne peger på den nye palet, så sidernes egne regler
     (var(--text), var(--accent) ...) følger med. Kontrast mod #1c1530:
     --text 13,5:1 · --text-muted 8,9:1 · --text-faint 6,0:1. */
  --text: #ebe4d6;
  --text-muted: #b4bdcb;
  --text-faint: #9ea6b6;
  --text-heading: #f7f1e6;
  --text-body: #ebe4d6;
  --accent: #e4a830;
  --dark-bg: #110f24;
  --dark-card: #1a1429;
  --dark-card-hi: #221a35;
  --dark-card-border: rgba(238, 160, 120, 0.26);

  min-height: 100dvh;
  background:
    radial-gradient(120% 40% at 50% 100%, rgba(120, 60, 110, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #1c1530 0%, #1c1530 26%, #161229 42%, #110f24 70%, #0c0d1f 100%);
  background-attachment: scroll;
  color: var(--cream);
  font-family: Inter, "Inter Fallback", "Inter Fallback Android", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html:has(body.site) { background: #0c0d1f; }
body.site p { color: inherit; line-height: inherit; }
body.site a:focus-visible,
body.site summary:focus-visible,
body.site button:focus-visible { outline: 3px solid var(--gold-pale); outline-offset: 3px; }
body.site img { max-width: 100%; }
.site .wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* shell.css giver alle <nav> fast position og alle <section> polstring.
   Udtrykkets egne flader skal ikke arve det. */
/* Andre <nav> inde i sidernes indhold (fx blogfiltret): uden specificitet,
   så sidens egne klasser stadig vinder. */
:where(.site) :where(main, article, section, footer) nav {
  position: static; padding: 0; background: none; backdrop-filter: none; z-index: auto;
}
.site .topbar nav.site-nav {
  position: static; padding: 0; background: none; backdrop-filter: none; z-index: auto;
}

/* ── Topbar: brand + slogan til venstre, menu til højre ── */
.site .topbar {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
}
.site .brand { display: block; color: var(--cream); text-decoration: none; }
.site .brand-name {
  display: block; font-family: Montserrat, sans-serif; font-weight: 700;
  font-size: 17px; letter-spacing: 0.32em; color: var(--cream);
}
.site .brand-slogan {
  display: block; margin-top: 4px; font-family: Montserrat, sans-serif; font-weight: 300;
  font-style: italic; font-size: 13px; letter-spacing: 0.04em; color: var(--gold-pale);
}
.site .site-nav { display: none; }
.site .menu { position: relative; }
.site .menu summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 16px;
  border: 1px solid rgba(247, 241, 230, 0.32); border-radius: 999px;
  background: rgba(11, 15, 42, 0.35);
  color: var(--cream); font-size: 16px; font-weight: 500;
}
.site .menu summary::-webkit-details-marker { display: none; }
.site .menu summary i {
  display: block; width: 16px; height: 2px; background: var(--cream); border-radius: 2px;
  box-shadow: 0 -5px 0 var(--cream), 0 5px 0 var(--cream);
}
.site .menu[open] summary i { box-shadow: none; transform: rotate(45deg); }
.site .menu[open] summary i::after {
  content: ""; display: block; width: 16px; height: 2px; background: var(--cream);
  border-radius: 2px; transform: rotate(90deg);
}
.site .topbar nav.menu-panel {
  position: absolute; left: auto; right: 0; top: calc(100% + 10px); z-index: 30;
  display: block; backdrop-filter: none;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100dvh - 100px); overflow-y: auto;
  padding: 8px; border-radius: 18px;
  background: #1a1429; border: 1px solid var(--warm-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.site .menu-panel a, .site .menu-panel button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 54px; padding: 0 14px; border-radius: 12px;
  border: 0; background: none; font: inherit; text-align: left; cursor: pointer;
  font-size: 18px; color: var(--cream); text-decoration: none;
}
.site .menu-panel a + a { border-top: 1px solid rgba(240, 216, 144, 0.10); }
.site .menu-panel small { font-size: 15px; color: var(--text-soft); }
.site .menu-panel [aria-current] { background: rgba(247, 241, 230, 0.08); }
.site .menu-sep { height: 1px; margin: 8px 6px; background: var(--warm-line); }
.site .menu-panel .menu-second a,
.site .menu-panel .menu-second button { min-height: 48px; font-size: 16px; color: var(--text-soft); }
.site .menu-panel .menu-second a + a { border-top: 0; }
.site .menu-panel form { margin: 0; }
.site .menu-user { padding: 10px 14px 2px; font-size: 15px; color: var(--text-soft); }

/* ── Solnedgangen (forside, Om os og sider med velkomst) ── */
/* Ingen overflow: hidden her: den åbne menu skal kunne hænge ud under toppen. */
.site .welcome {
  position: relative; padding: 0;
  background: linear-gradient(180deg,
    #0b0f2a 0%, #171640 20%, #2e1f4e 38%, #4c265a 54%,
    #7e3662 66%, #b8545f 75%, #e2825a 83%, #f4b46a 90%, #f8cf86 100%);
}
.site .welcome::before {
  content: ""; position: absolute; z-index: 0;
  left: 0; right: 0; bottom: 0; height: 70%;
  background: radial-gradient(72% 80% at 62% 100%, rgba(255, 214, 150, 0.45) 0%, rgba(240, 150, 100, 0.18) 45%, transparent 75%);
  animation: site-aande 40s ease-in-out infinite alternate;
}
@keyframes site-aande { from { opacity: 0.55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .site .welcome::before { animation: none; opacity: 0.8; } }
.site .welcome-copy { position: relative; z-index: 2; padding: 44px 0 34px; max-width: 600px; }
.site .welcome h1 {
  margin: 0; font-family: "Cormorant Garamond", "Cormorant Fallback", "Cormorant Fallback Android", Georgia, serif; font-weight: 400;
  text-wrap: balance;
  font-size: 46px; line-height: 1.14; letter-spacing: 0; color: var(--cream);
}
.site .welcome-sub {
  margin: 14px 0 0; font-family: "Cormorant Garamond", "Cormorant Fallback", "Cormorant Fallback Android", Georgia, serif; font-style: italic;
  font-weight: 300; font-size: 22px; line-height: 1.3; color: var(--text-soft);
}
.site .welcome-sub b { font-weight: 400; color: var(--gold-pale); }
.site .welcome.short .welcome-copy { padding: 36px 0 22px; }
.site .night { position: relative; z-index: 1; display: block; width: 100%; height: 120px; margin-top: -6px; }
.site .welcome.short .night { height: 90px; }

/* Smal solnedgang over tekstsider */
.site .strip {
  position: relative; padding: 0;
  background: linear-gradient(180deg, #0b0f2a 0%, #241a48 30%, #4c265a 55%, #9a4461 75%, #d9785b 90%, #f0a868 100%);
}
.site .strip .topbar { padding-bottom: 14px; }
.site .strip .night { height: 44px; margin-top: -2px; }
.site .strip .night path:last-child { fill: #1c1530; }

/* ── Knapper ── */
.site .btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; margin-top: 22px; padding: 0 20px; border-radius: 14px;
  border: 0; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, #f0c060 0%, var(--gold) 100%);
  color: #1a1206; box-shadow: 0 6px 20px rgba(228, 168, 48, 0.22);
  font: 600 18px Inter, "Inter Fallback", "Inter Fallback Android", system-ui, sans-serif;
}
.site .btn:hover { filter: brightness(1.05); }
.site .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 20px; border-radius: 999px; border: 1px solid rgba(240, 216, 144, 0.55);
  background: transparent; color: var(--gold-pale); font-size: 16px; font-weight: 500; text-decoration: none;
}
.site .btn-note {
  display: table; margin: 12px auto 0; padding: 4px 12px; border-radius: 999px;
  background: rgba(11, 15, 42, 0.55); color: var(--cream); font-size: 15px;
}

/* ── Tillid og fod (samme som /apps) ── */
.site .trust {
  margin: 44px 0 0; padding: 22px 0;
  border-top: 1px solid var(--warm-line); border-bottom: 1px solid var(--warm-line);
  text-align: center;
}
.site .trust-free {
  margin: 0; font-family: "Cormorant Garamond", "Cormorant Fallback", "Cormorant Fallback Android", Georgia, serif; font-style: italic;
  font-size: 24px; color: var(--gold-pale);
}
.site .trust-line { margin: 6px 0 0; color: var(--text-soft); font-size: 16px; }
.site .trust-line span { padding: 0 2px; color: var(--gold); }
.site .trust-line i { font-style: normal; white-space: nowrap; }
.site footer.site-foot {
  padding: 0 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border: 0; background: transparent;
  text-align: center; color: var(--text-soft); font-size: 15px; line-height: 1.5;
}
.site footer.site-foot .foot-links { margin: 0; padding: 22px 16px 0; color: var(--text-soft); }
.site footer.site-foot a {
  display: inline-block; padding: 10px 6px; white-space: nowrap; color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(180, 189, 203, 0.4);
}
.site footer.site-foot .nw { white-space: nowrap; }
.site footer.site-foot small { display: block; margin-top: 6px; font-size: 14px; }

/* ── Sideoverskrift på sider uden velkomst ── */
.site .page-head { max-width: 54ch; margin: 0 auto; padding-top: 28px; }
.site .page-head h1, .site .doc-head h1 {
  margin: 0; font-family: "Cormorant Garamond", "Cormorant Fallback", "Cormorant Fallback Android", Georgia, serif; font-weight: 400;
  text-wrap: balance;
  font-size: 40px; line-height: 1.14; color: var(--cream);
}
.site .page-head .lede { margin: 12px 0 0; color: var(--text-soft); font-size: 18px; line-height: 1.55; }
.site .eyebrow {
  margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-pale);
}

@media (min-width: 760px) {
  .site .wrap { padding: 0 32px; }
  .site .welcome-copy { padding: 64px 0 40px; }
  .site .welcome.short .welcome-copy { padding: 52px 0 28px; }
  .site .welcome h1 { font-size: 64px; }
  .site .welcome-sub { font-size: 26px; }
  .site .night { height: 170px; }
  .site .welcome.short .night { height: 120px; }
  .site .strip .night { height: 60px; }
  .site .btn { width: auto; display: inline-flex; padding: 0 34px; }
  .site .btn-note { margin-left: 0; }
  .site .page-head { padding-top: 48px; }
  .site .page-head h1, .site .doc-head h1 { font-size: 54px; }
}
@media (min-width: 900px) {
  .site .menu { display: none; }
  .site .site-nav { display: flex; align-items: center; gap: 2px; }
  .site .site-nav a, .site .site-nav button {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    border: 0; border-radius: 999px; background: none; cursor: pointer;
    font: 500 15px Inter, "Inter Fallback", "Inter Fallback Android", system-ui, sans-serif; color: var(--cream); text-decoration: none;
  }
  .site .site-nav a:hover, .site .site-nav button:hover { background: rgba(247, 241, 230, 0.10); }
  .site .site-nav [aria-current] { background: rgba(247, 241, 230, 0.12); }
  .site .site-nav a.nav-write { margin-left: 8px; border: 1px solid rgba(240, 216, 144, 0.55); color: var(--gold-pale); }
  .site .site-nav form { margin: 0; }
  .site .site-nav .nav-quiet { color: var(--text-soft); font-size: 14px; }
}
