/* twilightventures.dev, one stylesheet, no build step.
   Tokens are the Duskhollow strand of the Lens plugins (lensplatform LensStrands.kt):
   the dark slots on :root, the light slots of the same strand under prefers-color-scheme: light
   and [data-theme="light"]. --muted is the text tint at 70% over the background. */

:root {
  color-scheme: dark;
  --bg: #1B1A2B;        /* Duskhollow rowStripe, dark */
  --surface: #33305A;   /* Duskhollow selectionBg, dark */
  --text: #B9AEFF;      /* Duskhollow textTint, dark */
  --muted: #8A82BF;
  --accent: #F0B450;    /* Duskhollow numberTint, dark: the lamp amber */
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #F3F1FA;      /* Duskhollow rowStripe, light */
    --surface: #E3DFF7; /* Duskhollow selectionBg, light */
    --text: #4B4390;    /* Duskhollow textTint, light */
    --muted: #7D77B0;
    --accent: #8A5A10;  /* Duskhollow numberTint, light */
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F1FA;
  --surface: #E3DFF7;
  --text: #4B4390;
  --muted: #7D77B0;
  --accent: #8A5A10;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1B1A2B;
  --surface: #33305A;
  --text: #B9AEFF;
  --muted: #8A82BF;
  --accent: #F0B450;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 68ch;
  margin: 0 auto;
  padding-inline: 20px;
}

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--surface);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
}

nav.site {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
}

nav.site a:hover,
nav.site a:focus-visible { color: var(--text); }

nav.site a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

main { padding: 28px 0 40px; }

h1 {
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 650;
  margin: 0 0 0.6em;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 650;
  margin: 2em 0 0.5em;
}

p { margin: 0 0 1em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dated {
  color: var(--muted);
  margin-top: -0.4em;
}

ul { padding-left: 1.2em; }
li { margin: 0.3em 0; }

ul.products {
  list-style: none;
  padding: 0;
  margin: 0.5em 0 0;
}

ul.products li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 2px 14px;
  padding: 12px 0;
  margin: 0;
  border-top: 1px solid var(--surface);
}

ul.products li:last-child { border-bottom: 1px solid var(--surface); }

ul.products img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  grid-row: 1 / span 3;
  margin-top: 2px;
}

.name { font-weight: 600; }

.desc { margin: 0; }

.stores {
  margin: 0;
  color: var(--muted);
  font-size: 0.94em;
}

.stores a { margin-right: 14px; }

footer.site {
  border-top: 1px solid var(--surface);
  padding: 18px 0 32px;
  color: var(--muted);
  font-size: 0.94em;
}

footer.site p { margin: 0 0 0.6em; }

.lantern {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
  margin-right: 8px;
  color: var(--accent);
}

.foot-links a { margin-right: 14px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  nav.site { margin-left: 0; }
}
