/* ═══════════════════════════════════════════════════════════════
   Adam Ducquet · personal dashboard
   Design language: editorial, monoline, signature-forward.
   No emojis. Hand-authored icons. Measured typography.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #000;
  --bg-card: #0a0d12;
  --bg-card-2: #0d1117;
  --bg-elevated: #14181f;
  --border: rgba(255,255,255,0.05);
  --border-bright: rgba(255,255,255,0.13);
  --border-strong: rgba(255,255,255,0.22);
  --ink: #f3f4f6;
  --ink-dim: rgba(243,244,246,0.70);
  --ink-mute: rgba(243,244,246,0.38);
  --ink-ghost: rgba(243,244,246,0.16);
  --accent: #d4a574;       /* warm gold — more editorial than turquoise */
  --accent-hover: #e8bf8f;
  --accent-dim: rgba(212,165,116,0.55);
  --green: #5cc077;
  --amber: #d4a574;
  --red: #e06b5f;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --script: "Sacramento", "Homemade Apple", "Snell Roundhand", cursive;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01","cv01","cv11";
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ═══ Ambient background texture ═══ */
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 30% at 50% 12%, rgba(212,165,116,0.12), transparent 70%),
    radial-gradient(ellipse 40% 18% at 50% 6%, rgba(212,165,116,0.08), transparent 60%),
    radial-gradient(ellipse 100% 50% at 50% 100%, rgba(212,165,116,0.03), transparent 80%);
}
body::after {
  /* film grain */
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}

/* ═══ Utility strip (time) ═══ */
.util-strip {
  position: fixed; top: 22px; right: 32px; z-index: 20;
  font-size: 10.5px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* ═══ Signature banner ═══ */
.sig-banner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 24px 8px;
  gap: 0;
  overflow: visible;
}
.wordmark-wrap {
  position: relative;
  display: inline-block;
  padding: 0;
  overflow: visible;
  line-height: 1;
}
.wordmark {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(72px, 8.5vw, 132px);
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0;
  padding: 0.1em 0.2em;     /* breathing room for descenders/ascenders */
  white-space: nowrap;
  overflow: visible;
  display: inline-block;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  /* Solid white — modern script reads better without gradient */
  color: #fafbfc;
  filter: drop-shadow(0 2px 36px rgba(212,165,116,0.20))
          drop-shadow(0 0 90px rgba(212,165,116,0.08));
  opacity: 0;
  animation: sig-in 1.4s cubic-bezier(.2,.7,.2,1) 0.3s forwards;
}
.wordmark::first-letter {
  text-transform: uppercase;
}
@keyframes sig-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
    letter-spacing: 8px;
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    letter-spacing: 0px;
  }
}



.tagline {
  margin-top: 14px;
  font-size: 10px; font-weight: 500;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 5px;
  display: inline-flex; align-items: center; gap: 12px;
  opacity: 0;
  animation: fade-up 0.9s ease-out 1.4s forwards;
}
.tagline .dotsep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ Agent Max hero card (between signature and widget grid) ═══ */
.agent-max-card {
  max-width: 1520px;
  margin: 8px auto 24px;
  width: calc(100% - 72px);
  height: 480px;
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
  opacity: 0;
  animation: widget-in 0.7s cubic-bezier(.2,.7,.3,1) 1.4s forwards;
  background: linear-gradient(180deg, #0a0d12 0%, #0d1117 100%);
}
.agent-max-card.am-fullscreen {
  position: fixed;
  inset: 16px;
  z-index: 1000;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  box-shadow: 0 24px 96px rgba(0,0,0,0.85), 0 0 0 1px var(--accent-dim);
  border-color: var(--accent-dim);
}
body.am-locked { overflow: hidden; }
body.am-locked .ambient,
body.am-locked .sig-banner,
body.am-locked .orbit,
body.am-locked .util-strip { filter: blur(2px) brightness(0.6); pointer-events: none; }

.agent-max-card .badge {
  display: inline-flex; align-items: center;
  font-size: 8.5px; font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: rgba(212,165,116,0.10);
  border: 1px solid rgba(212,165,116,0.28);
  padding: 2px 6px; border-radius: 3px;
  margin-left: 8px;
}

.am-body-wrap {
  padding: 0;
  flex: 1;
  display: flex;
  max-height: none;
  overflow: hidden;
  background: #060709;
  position: relative;
}
.am-shell {
  flex: 1;
  position: relative;
  display: flex;
}
.am-iframe {
  flex: 1;
  border: 0;
  width: 100%;
  height: 100%;
  background: #060709;
  transition: opacity 0.3s ease;
}
.am-iframe-hidden { opacity: 0; }
.am-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  color: var(--ink-mute);
  background: #060709;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.am-loading.fade-out { opacity: 0; pointer-events: none; }
.am-spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--border-bright);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.am-loading-text {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 2px; font-weight: 500;
}
.am-error {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--ink-dim);
  padding: 32px;
  text-align: center;
}
.am-error a {
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600;
  border: 1px solid var(--accent-dim);
  padding: 10px 18px; border-radius: 5px;
  transition: all .15s;
}
.am-error a:hover { background: rgba(212,165,116,0.08); }

/* Connect placeholder */
.am-placeholder {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
  padding: 40px 30px;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212,165,116,0.04), transparent 70%),
    #060709;
}
.am-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.am-hero-icon {
  width: 80px; height: 80px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  color: var(--accent);
  background: rgba(212,165,116,0.04);
  box-shadow: 0 0 36px rgba(212,165,116,0.12);
  margin-bottom: 4px;
}
.am-hero h2 {
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin: 0;
}
.am-hero p {
  font-size: 12px;
  color: var(--ink-mute);
  max-width: 480px;
  line-height: 1.5;
  margin: 0;
}
.am-actions {
  display: flex; gap: 12px; align-items: center;
}
.am-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
  font-family: var(--font);
}
.am-btn:hover { color: var(--accent); border-color: var(--accent-dim); background: rgba(212,165,116,0.04); }
.am-btn.primary {
  background: var(--accent);
  color: #1a1208;
  border-color: var(--accent);
}
.am-btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #1a1208; }
.am-hint {
  font-size: 9.5px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 2.5px;
  font-weight: 500;
  opacity: 0.7;
}

/* Status dot in widget header */
.am-dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-ghost);
  margin-right: 6px;
  vertical-align: middle;
}
.am-dot.live {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.5; }
}

/* ═══ Widget grid ═══ */
.orbit {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 20px;
  padding: 0 36px 56px;
  max-width: 1520px; margin: 0 auto;
}

/* ═══ Widget card ═══ */
.widget {
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.02) inset,
    0 4px 24px rgba(0,0,0,0.45);
  opacity: 0;
  animation: widget-in 0.7s cubic-bezier(.2,.7,.3,1) forwards;
  position: relative;
}
.widget::before {
  /* subtle top highlight line */
  content: ""; position: absolute; top: 0; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,165,116,0.15), transparent);
  opacity: 0; transition: opacity .3s;
}
.widget:hover::before { opacity: 1; }
.widget:hover {
  border-color: var(--border-bright);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.03) inset,
    0 6px 32px rgba(0,0,0,0.6);
}
.slot-tl { animation-delay: 1.7s; }
.slot-tr { animation-delay: 1.78s; }
.slot-l  { animation-delay: 1.86s; }
.slot-r  { animation-delay: 1.94s; }
.slot-bl { animation-delay: 2.02s; }
.slot-br { animation-delay: 2.10s; }
@keyframes widget-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.widget-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.widget-header h3 {
  font-size: 10.5px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
}
.widget-header h3 .icon {
  color: var(--accent);
  display: inline-flex;
}
.widget-header .meta {
  font-size: 10px; color: var(--ink-mute);
  display: flex; gap: 10px; align-items: center;
  text-transform: uppercase; letter-spacing: 1px;
  font-weight: 500;
}
.widget-header .meta button {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--ink-dim);
  width: 24px; height: 24px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.widget-header .meta button:hover {
  background: rgba(212,165,116,0.08);
  color: var(--accent);
  border-color: var(--accent-dim);
}

.widget-body {
  padding: 4px 0;
  overflow-y: auto; flex: 1;
  max-height: 460px;
}

/* ═══ Icon utility class ═══ */
.icon {
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.icon-svg {
  display: block;
}
.icon.arrow {
  margin-left: auto;
  opacity: 0.5;
  transition: opacity .15s, transform .15s;
}

/* ═══ Notice board items ═══ */
.item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  transition: background .12s ease;
}
.item:last-child { border-bottom: none; }
.item:hover { background: rgba(255,255,255,0.015); }
.item.dismissed { opacity: 0.28; }

.item .score {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  min-width: 32px; height: 32px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.item .score.s9, .item .score.s10 {
  background: rgba(212,165,116,0.12);
  color: var(--accent);
  border-color: rgba(212,165,116,0.4);
  box-shadow: 0 0 14px rgba(212,165,116,0.18);
}
.item .score.s7, .item .score.s8 { color: var(--accent); border-color: rgba(212,165,116,0.22); }
.item .score.s5, .item .score.s6 { color: var(--ink-dim); }
.item .score.s0, .item .score.s1, .item .score.s2 { opacity: 0.5; }

.item .content .title {
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item .content .title a { color: var(--ink); }
.item .content .title a:hover { color: var(--accent); }
.item .content .why {
  font-size: 11.5px; color: var(--ink-dim);
  margin-top: 4px;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item .content .meta-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
  font-size: 10px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.6px;
  font-weight: 500;
}
.item .content .meta-row .tag {
  background: transparent;
  border: 1px solid var(--border-bright);
  padding: 2px 7px; border-radius: 3px; font-size: 9.5px;
  color: var(--ink-dim); font-weight: 500;
  letter-spacing: 1px;
}
.item .content .meta-row .tag.source {
  color: var(--accent); border-color: var(--accent-dim);
}
.item .content .meta-row .tag.hype { color: var(--amber); border-color: rgba(212,165,116,0.3); }
.item .actions {
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; transition: opacity .15s;
}
.item:hover .actions { opacity: 1; }
.item .actions button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-mute);
  width: 24px; height: 24px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: color .12s, border-color .12s;
}
.item .actions button:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ═══ Stubs ═══ */
.empty, .loading {
  padding: 40px 20px; text-align: center;
  color: var(--ink-mute); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 2px;
}
.stub {
  padding: 32px 24px 28px;
  color: var(--ink-mute);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1;
  gap: 14px;
}
.stub-icon {
  color: var(--ink-ghost);
  transition: color .3s;
}
.widget:hover .stub-icon { color: var(--accent-dim); }
.stub p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  max-width: 220px;
  line-height: 1.6;
}

/* ═══ Shortcuts ═══ */
.shortcuts {
  padding: 0;
  display: flex; flex-direction: column;
}
.shortcuts a {
  display: inline-flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border);
  transition: background .15s, color .15s, padding .2s;
}
.shortcuts a:last-child { border-bottom: none; }
.shortcuts a:hover {
  color: var(--accent);
  background: rgba(212,165,116,0.04);
  padding-left: 28px;
}
.shortcuts a:hover .arrow { opacity: 1; transform: translate(2px, -2px); }

/* ═══ Responsive ═══ */
@media (max-width: 1100px) {
  .orbit {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px 40px;
  }
  .agent-max-card { width: calc(100% - 40px); height: 400px; }
  .sig-banner { padding: 24px 20px 16px; }
}
@media (max-width: 640px) {
  .orbit { grid-template-columns: 1fr; }
  .wordmark { font-size: 64px; letter-spacing: 0; }
  .tagline { letter-spacing: 3.5px; gap: 10px; }
  .util-strip { top: 14px; right: 16px; }
}
