/* duck.nu --- plain CSS, no build step. Dark-first nordic dashboard look,
   adapted from the duck-labs design system (same tokens/shapes), trimmed
   down to just what this one-page site needs. */

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --border: #2a2f3a;
  --text: #e8eaed;
  --text-dim: #9aa1ac;
  --accent: #e3a53d; /* duck-bill amber */
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f5f0;
  --panel: #ffffff;
  --panel-2: #f1efe9;
  --border: #e4e1d8;
  --text: #1c1c1a;
  --text-dim: #6b6a63;
  --accent: #b3791a;
  --shadow: 0 1px 2px rgba(20, 18, 12, 0.05), 0 8px 24px rgba(20, 18, 12, 0.08);
  --shadow-sm: 0 1px 2px rgba(20, 18, 12, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .15s ease, color .15s ease;
}

a { color: inherit; }

/* ------ top bar --------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--text);
}
.brand .ns { color: var(--accent); font-weight: 400; }

.topbar-nav { display: flex; align-items: center; gap: 4px; }
.topbar-nav a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-dim);
  padding: 7px 12px;
  border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.topbar-nav a:hover { color: var(--text); background: var(--panel-2); }

.icon-btn {
  width: 34px; height: 34px; min-width: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  padding: 0;
  cursor: pointer;
  transition: border-color .15s ease, transform .1s ease;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:active { transform: scale(0.94); }

/* ------ layout ----------------------------------------------------------- */
main { max-width: 900px; margin: 0 auto; padding: 0 24px 100px; position: relative; }

.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.brand-title {
  font-family: var(--font-mono);
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.brand-title .ns { color: var(--accent); font-weight: 400; }
.hero-lede { color: var(--text-dim); font-size: 16px; max-width: 52ch; margin: 0 auto; }

section.app {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 74px;
}
.app-head { margin-bottom: 24px; }
.app-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 8px;
}
.app-title { font-size: 26px; margin: 0 0 10px; letter-spacing: 0; }
.app-lede { color: var(--text-dim); font-size: 15.5px; max-width: 64ch; margin: 0; line-height: 1.7; }
.app-lede strong { color: var(--text); font-weight: 650; }

/* ------ ::sweden-india --- two live city cards side by side ------------- */
.city-grid { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.city-card {
  flex: 1 1 240px;
  background:
    radial-gradient(140% 100% at 0% 0%, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 60%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--card-accent) 26%, var(--border));
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.city-card-head { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.city-card-flag { font-size: 20px; }
.city-card-name { font-size: 15px; }
.city-card-date { margin-left: auto; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.city-card-clock {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 40px;
  color: var(--card-accent);
  margin: 14px 0 6px;
  line-height: 1;
}
.city-card-weather { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-dim); }
.city-card-weather-icon { font-size: 16px; }

/* ------ ::phone-box --- Nest / Roam dashboard, lifted from the DuckPhone
   mockup ------------------------------------------------------------------- */
.phone-quote {
  margin: 24px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  color: var(--text-dim);
  font-size: 14px;
  font-style: italic;
}
.phone-dashboard { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.phone-panel {
  flex: 1 1 240px;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--border));
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.phone-panel-head { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 12px; }
.phone-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #4caf7d;
  background: color-mix(in srgb, #4caf7d 15%, transparent);
  border-radius: 999px;
  padding: 2px 8px;
}
.phone-status-list, .phone-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
}
.phone-status-list li { display: flex; align-items: center; gap: 7px; }
.phone-action-list li { color: var(--text); }
.phone-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4caf7d;
  box-shadow: 0 0 6px color-mix(in srgb, #4caf7d 70%, transparent);
  animation: phone-blink 2.4s ease-in-out infinite;
  flex: none;
}
@keyframes phone-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

footer {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 24px 44px;
  color: var(--text-dim);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
}
