/* em.css: the Emergence Machine look (emergencemachine.com), shared by the Emergling maker and its pages.
   Fonts are served with the site (vendor/), so visitors' browsers contact no font service. */
@font-face { font-family: "Newsreader"; src: url(vendor/newsreader-latin-300-normal.woff2) format("woff2"); font-weight: 200 300; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(vendor/newsreader-latin-400-normal.woff2) format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(vendor/newsreader-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(vendor/newsreader-latin-600-normal.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(vendor/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(vendor/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(vendor/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(vendor/caveat-latin-700-normal.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --em-bg: #08080A; --em-panel: #0e0e11; --em-line: rgba(255,255,255,.12); --em-ink: #ECEAE3; --em-dim: #9498a4; --em-cream: #EDEBE4;
  --em-serif: "Newsreader", Georgia, serif; --em-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace; --em-hand: "Caveat", cursive;
  --em-amber: #ffc46b;   /* Emergling's own accent, kept for IDs and highlights */
}

/* Nav: the EM brand and its menu */
.em-nav { position: relative; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px); background: var(--em-bg); border-bottom: 1px solid var(--em-line); }
.em-brand { display: flex; align-items: center; gap: 12px; color: var(--em-ink); text-decoration: none; min-width: 0; }
.em-brand img { width: 30px; height: 30px; flex: none; }
.em-brand span { font-family: var(--em-hand); font-weight: 700; font-size: 25px; letter-spacing: .02em; white-space: nowrap; }
.em-brand small { font-family: var(--em-mono); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--em-dim);
  border-left: 1px solid var(--em-line); padding-left: 12px; white-space: nowrap; }
.em-menuwrap { position: relative; }
.em-menuwrap > summary { list-style: none; display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 9px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 10px; cursor: pointer; }
.em-menuwrap > summary::-webkit-details-marker { display: none; }
.em-menuwrap > summary i { display: block; height: 1.5px; background: var(--em-ink); }
.em-menu { position: absolute; right: 0; top: 52px; min-width: 240px; display: flex; flex-direction: column; padding: 10px; background: rgba(14,14,17,.97);
  border: 1px solid rgba(255,255,255,.14); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.em-menu .lbl { padding: 8px 14px 6px; font-family: var(--em-mono); font-size: 10.5px; letter-spacing: .22em; color: #7d818c; }
.em-menu a { padding: 10px 14px; border-radius: 10px; font-family: var(--em-serif); font-size: 15px; color: #c9ccd4; text-decoration: none; }
.em-menu a:hover, .em-menu a[aria-current] { background: rgba(255,255,255,.06); color: var(--em-ink); }

/* Footer */
.em-foot { border-top: 1px solid rgba(255,255,255,.1); background: #0A0A0B; color: var(--em-ink); font-family: var(--em-serif); }
.em-foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding: 48px clamp(16px, 4vw, 40px); max-width: 1280px; margin: 0 auto; }
.em-foot .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.em-foot .brand img { width: 26px; height: 26px; }
.em-foot .brand span { font-family: var(--em-hand); font-weight: 700; font-size: 24px; }
.em-foot .tag { font-style: italic; font-size: 17px; color: var(--em-dim); margin: 0 0 20px; max-width: 300px; }
.em-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.em-socials a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #aeb1bc; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.em-socials a:hover { border-color: var(--em-cream); color: var(--em-cream); }
.em-socials svg { width: 19px; height: 19px; fill: currentColor; }
.em-foot .h { font-family: var(--em-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6f7380; margin-bottom: 14px; }
.em-foot .links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.em-foot .links a { color: #aeb1bc; text-decoration: none; }
.em-foot .links a:hover { color: var(--em-ink); }
.em-copy { border-top: 1px solid rgba(255,255,255,.07); padding: 18px clamp(16px, 4vw, 40px); text-align: center; font-size: 12.5px; color: #8a8f99; }
@media (max-width: 560px) { .em-brand span { font-size: 21px; } .em-brand small { display: none; } }
