/*
  shared stylesheet for nikkyla.com
  visual variables (colors, fonts) are set at runtime by render.js
  from the config returned by /api/config. the @media dark-mode block
  is a static fallback for the initial paint before js applies the
  saved dark theme.
*/

:root {
  --bg: #fafaf7;
  --ink: #1a1a1a;
  --ink-soft: #5a5a55;
  --rule: #e6e3da;
  --accent: #ff6b35;
  --font-headline: "Charter", "Iowan Old Style", "Georgia", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --ink: #f3f0e8;
    --ink-soft: #9a958a;
    --rule: #2a2926;
    --accent: #ff8454;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ticker -------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 9px 0;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 55s linear infinite;
}

.ticker span { margin: 0 22px; }
.ticker .sep { color: var(--accent); margin: 0 4px; }

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* layout -------------------------------------------------------------- */

main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 28px 48px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 22px;
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: 2px;
}

h1 {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.tagline {
  font-family: var(--font-headline);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  margin: 0 0 56px;
}

section { margin-bottom: 52px; }

h2 {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-weight: 600;
}

p { margin: 0 0 14px; }
.about p { font-size: 17px; }

/* currently grid ------------------------------------------------------ */

.currently {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.currently li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.currently .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.currently .value {
  font-family: var(--font-headline);
  font-size: 18px;
}

/* links list ---------------------------------------------------------- */

.links { list-style: none; padding: 0; margin: 0; }

.links li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.links li:first-child { border-top: 1px solid var(--rule); }

.links a {
  color: var(--ink);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.links a:hover { color: var(--accent); }

.links .arrow {
  font-family: var(--font-headline);
  color: var(--ink-soft);
  transition: transform 0.2s ease;
}

.links a:hover .arrow {
  transform: translateX(4px);
  color: var(--accent);
}

/* footer -------------------------------------------------------------- */

footer {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 28px 36px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* responsive ---------------------------------------------------------- */

@media (max-width: 480px) {
  h1 { font-size: 40px; }
  .tagline { font-size: 18px; margin-bottom: 40px; }
  main { padding: 44px 22px 36px; }
  .currently li { grid-template-columns: 88px 1fr; gap: 14px; }
}

/* prevent flash before render.js loads config ------------------------- */

.no-fouc body { opacity: 0; }
body { transition: opacity 0.2s ease; }
