/* ===== Font: Manrope ===== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

/* ===== Theme variables ===== */

:root {
  color-scheme: light;

  --bg: rgb(62, 116, 180);
  --card-bg: #ffffff;
  --card-border: #d4d4d8;
  --card-accent: #01024d;

  --uberdeck: rgb(62, 116, 180);

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-subtle: #4b5563;

  --link: #2563eb;
  --link-hover: #1d4ed8;

  --pink-pill: #ff007b;
  --pink-pill-background: #ffCCE4;
  --green-pill: #00c800;
  --green-pill-background: #ccf0cc;

  --divider-1: rgba(15, 23, 42, 0.12);
  --divider-2: rgba(15, 23, 42, 0.18);
  --divider-3: rgba(15, 23, 42, 0.12);

  --border-soft: #e5e7eb;

  --deck-bg: #f8fafc;
  --deck-border: #c7d2fe;
  --deck-bg-hover: #f1f5f9;
  --deck-border-hover: #2563eb;
  --deck-img-border: #d1d5db;

  --badge-bg: #eff6ff;
  --badge-border: rgba(37, 99, 235, 0.25);

}


:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #020617;              /* near-black navy */
  --card-bg: #1e293b;
  --card-border: #020617;
  --card-accent: #818cf8;     /* soft indigo */

  --uberdeck: #e5e7eb;

  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;

  --link: #60a5fa;
  --link-hover: #93c5fd;

  --pink-pill: #fb7185;
  --pink-pill-background: rgba(127, 29, 54, 0.7);
  --green-pill: #4ade80;
  --green-pill-background: rgba(22, 101, 52, 0.7);

  --divider-1: rgba(148, 163, 184, 0.25);
  --divider-2: rgba(148, 163, 184, 0.7);
  --divider-3: rgba(148, 163, 184, 0.25);

  --border-soft: #1e293b;

  --deck-bg: rgba(15, 23, 42, 0.95);
  --deck-border: #2b374a;
  --deck-bg-hover: rgba(15, 23, 42, 1);
  --deck-border-hover: #3a4b63;
  --deck-img-border: #1f2937;

  --badge-bg: rgba(30, 64, 175, 0.4);
  --badge-border: rgba(129, 140, 248, 0.7);

  --der-color: #60a5fa;
  --die-color: #fb7185;
  --das-color: #4ade80;
  --pl-color:  #e5e7eb;

  --der-highlight: rgba(37, 99, 235, 0.22);
  --die-highlight: rgba(236, 72, 153, 0.22);
  --das-highlight: rgba(34, 197, 94, 0.22);
  --pl-highlight:  rgba(148, 163, 184, 0.18);
}



 /* --der-color: #5ca9ff;          /* softer blue */
 /*  --die-color: #ff6fa5;          /* softer magenta/pink */
 /*  --das-color: #52d073;          /* softer green */
 /*  --pl-color:  #c4c4c4;          /* a bit lighter grey so it’s readable */

 /*  --der-highlight: #e0efff; /* rgb(224, 239, 255) */
 /*  --die-highlight: #ffd8e3; /* rgb(255, 216, 227) */
 /*  --das-highlight: #e0f5e5; /* rgb(224, 245, 229) */
 /*  --pl-highlight:  #f5f5f5; /* rgb(245, 245, 245) */



/* ===== Base ===== */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
    font-family:
      "Manrope", system-ui,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-main);
}

/* Make any ordinary images responsive */
.page-card img {
  max-width: 100%;
  height: auto;
}

/* ===== Layout: single “flashcard” in the middle ===== */

.page-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 6px;
  padding-right: 6px;
}


.page-card {
  --pad-x: 50px; /* horizontal padding variable */
  position: relative;
  width: 100%;
  max-width: 750px;
  background: var(--card-bg);
  border: 0px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  padding: 18px var(--pad-x) 24px;
/* 
  border-bottom: 32px solid var(--card-accent);
  border-top: 12px solid var(--card-accent);
  border-top-left-radius: 0px;
  border-top-right-radius: 0px; */
}



/* ===== Styles the ÜBERDeck logo on the index page ===== */

.logo-text {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--uberdeck);
  text-align: center;
  margin-bottom: 0px;
}





/* ===== Does the profile pic on index ===== */

.profile-pic {
  display: block;
  width: 75px;
  height: 75px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Top row: back link + theme toggle carrier ===== */

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.top-left {
  min-height: 1em; /* keeps row height stable when there's no back link */
}


/* ===== Back link ===== */


.back-link {
  display: inline-flex;
  border: 1px solid #ffffff;
  align-items: center;
  height: 18px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  background: rgb(62, 116, 180);
  transition: background 0.15s ease, color 0.15s ease;
}


/* ===== Theme toggle (visually aligned with page kicker) ===== */

.theme-toggle {
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  font-size: 12px;
  color: var(--text-muted);
}

.theme-toggle-track {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgb(62, 116, 180);
  position: relative;
  transition: background 0.15s ease-out;
}

.theme-toggle-thumb {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.4);
  transition: transform 0.15s ease-out;
}

.theme-toggle-label {
  text-transform: lowercase;
  color: var(--text-main);
}

.theme-toggle.is-dark .theme-toggle-track {
  background: rgb(62, 116, 180);
}

.theme-toggle.is-dark .theme-toggle-thumb {
  transform: translateX(14px);
}

/* ===== Typography ===== */

main {
  margin: 0;
}

h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
  margin-bottom: 30px;
}

/* Use when h1.pill-title is the first child inside a card */
h1.pill-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em; /* was 0.16em */
  color: var(--text-main);
  margin-bottom: 30px;
  text-align: left;
}


/* Use when h1.pill-title is the first child inside a card 
h1.pill-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 7px;
  border-radius: 999px;
  background: var(--card-accent);
}
*/







h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 22px 0 6px;
  text-align: center;
}

p {
  margin: 6px 0;
}

ul,
ol {
  margin: 6px 0 6px 0px;
  padding: 0;
  list-style-type: square;
}

li {
  margin-bottom: 6px;
}

li {
  color: var(--text-main);
}

li::marker {
  color: var(--text-subtle);
}

/* Small “kicker” */

.page-kicker {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0px;
  text-align: center;
}


.page-intro {
  font-size: 0.95em;
  line-height: 1.55;
  color: var(--text-main);
  text-align: center;
  max-width: 520px;
  margin: 18px auto 26px;

  padding: 12px 18px;
  border-radius: 6px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(15, 23, 42, 0.06) 18%,
    rgba(15, 23, 42, 0.09) 50%,
    rgba(15, 23, 42, 0.06) 82%,
    transparent
  );

  /* tiny lift so it doesn't feel flat */
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

:root[data-theme="dark"] .page-intro {
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.05),
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.05)
  );
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}









/* ===== Links ===== */

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a.back-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ===== Divider ===== */

.divider {
  width: calc(100% + (var(--pad-x) * 2));
  margin-left: calc(var(--pad-x) * -1);
  height: 1px;
  background: linear-gradient(
    to right,
    var(--divider-1),
    var(--divider-2),
    var(--divider-3)
  );
  margin-block: 20px;
  /* temporarily hide dividers */
  opacity: 0;
}


/* ===== Copyright ===== */

.copyright {
    margin-top: 20px;
    font-size: 10px;
    color: var(--text-muted);
    text-align: right;
    opacity: 0.5;
  }





/* ===== Very plain decks / blog styling ===== */

/* Decks: simple vertical sections (used on non-hub pages) */

.deck-grid {
  display: block;
}

.deck-card {
  border-top: 1px solid var(--border-soft);
  padding-top: 8px;
  margin-top: 8px;
}

.deck-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.deck-meta {
  font-size: 0.95em;
  color: var(--text-muted);
  margin-bottom: 4px;
  opacity: 0.9;
}

.deck-description {
  margin-bottom: 4px;
}

.deck-tags {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Deck items with small square images (hub list) ===== */

.deck-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 18px 0;
  padding: 10px 12px;
  background: var(--deck-bg);
  border: 1px solid var(--deck-border);
  border-radius: 6px;
}

#everyday600 {
  border: 3px solid var(--pink-pill);
}

.deck-item:hover {
  background: var(--deck-bg-hover);
  border-color: var(--deck-border-hover);
}

.deck-image {
  width: 140px;
  height: 140px;
  border: 1px solid var(--deck-img-border);
  border-radius: 0;
  object-fit: cover;
  background: #f9fafb;
  flex-shrink: 0;
  margin-right: 20px;
}

.deck-text {
  font-size: 0.95em;
  line-height: 1.55;
}


/* ===== Change to strong.new to have it only affect the NEW button (as it was prevously) ===== */
.deck-text strong {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 12px;
  padding: 1px 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--link-hover);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  border-radius: 3px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.deck-text strong.pink-pill {
  background: var(--pink-pill-background);
  color: var(--pink-pill);
}

.deck-text strong.green-pill {
  background: var(--green-pill-background);
  color: var(--green-pill);
}


/* ===== FAQ ===== */

.faq {
  margin-top: 8px;
}

.faq details {
  border-top: 1px solid var(--border-soft);
  padding: 8px 0;
}

.faq details:first-child {
  border-top: none;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  margin-right: 4px;
  color: var(--link);
}

.faq details[open] summary::before {
  content: "–";
}

.faq details p {
  margin: 6px 0 4px 20px;
  color: var(--text-subtle);
  font-size: 0.95em;
}

/* ===== Buttons as plain links ===== */

.btn,
.btn-ghost {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
}

.btn:hover,
.btn-ghost:hover {
  color: var(--link-hover);
}

/* ===== Blog ===== */

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.blog-card {
  padding: 6px 0;
  border-top: 1px solid var(--border-soft);
}

.blog-title {
  font-size: 14px;
  font-weight: 600;
}

.blog-meta {
  font-size: 0.8em;
  color: var(--text-muted);
  opacity: 0.9;
  font-family: SF Mono, monospace;
}


/* ===== Mobile fine-tuning ===== */

/* ===== Medium devices (tablets + large phones) ===== */
@media (max-width: 768px) {

  html {
    font-size: 15.5px; /* ~3% smaller than desktop */
  }

  .page-card {
    padding: 20px 18px 26px;
    border-radius: 14px;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 24px;
  }

  h1.pill-title {
    font-size: 15px;
    letter-spacing: 0.14em;
  }

  .profile-pic {
    width: 70px;
    height: 70px;
    margin-bottom: 10px;
  }

  .page-intro {
    font-size: 0.95em;
    padding: 10px 14px;
  }

  .deck-item {
    gap: 12px;
    padding: 10px 12px;
  }

  .deck-image {
    width: 95px;
    height: 95px;
  }

  .deck-text {
    font-size: 0.95em;
  }

   /* hides bullets for small screens */
   .page-card ul {
     padding-left: 20px;   /* or 24px if you want more breathing room */
  }

  .page-card li {
    padding-left: 2px;    /* tiny indent so the marker isn't flush */
    margin-bottom: 6px;
  }
}

  /* ===== Small devices (phones) ===== */
  @media (max-width: 480px) {

    html {
      font-size: 15px; /* the sweet spot for Manrope on phones */
    }

    .page-card {
      padding: 18px 16px 24px;
      border-radius: 12px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.45);
    }

    h1 {
      font-size: 18px;
      margin-bottom: 22px;
    }

    h1.pill-title {
      font-size: 14px;
      letter-spacing: 0.14em;
      margin-bottom: 18px;
    }

    .page-kicker {
      font-size: 12px;
      letter-spacing: 0.14em;
    }

    .profile-pic {
      width: 64px;
      height: 64px;
      margin-bottom: 8px;
    }

    .page-intro {
      font-size: 0.9em;
      padding: 8px 12px;
      margin-bottom: 14px;
    }

    .deck-item {
      gap: 10px;
      padding: 8px 10px;
    }

    .deck-image {
      width: 90px;
      height: 90px;
    }

    .deck-text {
      font-size: 0.9em;
    }

    .deck-text strong {
      font-size: 12px;
      margin-bottom: 8px;
    }

    .copyright {
      font-size: 9px;
      text-align: center;
      margin-top: 16px;
    }

/* keeps bullets away from edge on narrow devices */
     .pages-list li {
       padding-left: 10px;     
     }
}

  /* ===== Extra-small devices (tiny phones) ===== */
  @media (max-width: 360px) {

    html {
      font-size: 14px;
    }

    .page-card {
      padding: 16px 14px 22px;
    }

    h1 {
      font-size: 17px;
    }

    h1.pill-title {
      font-size: 13px;
      letter-spacing: 0.12em;
    }

    .deck-image {
      width: 82px;
      height: 82px;
    }

    .deck-text {
      font-size: 0.85em;
    }

  }

/* =========================
   Linktree-style hub (index)
   ========================= */

/* Make the main card tighter and more link-hub-like */
.page-card {
  max-width: 560px;
  --pad-x: 22px;
  padding: 16px var(--pad-x) 18px;
}

@media (min-width: 900px) {
  .page-wrapper {
    padding-top: 18px;
  }
}

/* Header stack */
.hub {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hub-header {
  text-align: center;
  padding-top: 6px;
}

/* Profile */
.profile-pic {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 0px solid rgba(15, 23, 42, 0.08);
}

:root[data-theme="dark"] .profile-pic {
  border-color: rgba(255, 255, 255, 0.10);
}

.hub-title {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.01em;
  margin-top: 2px;
  margin-bottom: 2px;
}

.hub-tagline {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-subtle);
  margin-top: 10px;
  margin-bottom: 8px;
}

.hub-mini {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

/* Link list */
.hub-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.hub-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--divider-2), transparent);
  margin: 2px 0;
  opacity: 0.9;
}

/* Left square icon slot */
.hub-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;

  border: 1px solid var(--deck-img-border);
  background: rgba(15, 23, 42, 0.03);

  display: inline-grid;
  place-items: center;
}

:root[data-theme="dark"] .hub-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;

  border: 1px solid var(--deck-img-border);
  background: rgba(15, 23, 42, 0.03);

  display: inline-grid;
  place-items: center;
}

.hub-icon img {
  width: 72px !important;
  height: 72px !important;
  object-fit: cover;
  display: block;
}



/* === Hover-style as DEFAULT for all boxes === */
.hub-link {
  display: grid;
  grid-template-columns: 72px 1fr auto auto;
  gap: 10px;
  align-items: center;

  padding: 14px 12px;
  border-radius: 12px;

  background: var(--deck-bg-hover);
  border: 1px solid var(--deck-border-hover);

  text-decoration: none;

  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.06);

  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.hub-link:hover {
  transform: translateY(-1px);
  border-color: var(--link);
  box-shadow: 0 2px 0 rgba(15, 23, 42, 0.05), 0 10px 24px rgba(15, 23, 42, 0.10);
  text-decoration: none;
}

.hub-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

/* Left text block */
.hub-link-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.hub-link-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.hub-link-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Badges */
.hub-badges {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.hub-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  background: var(--badge-bg);
  color: var(--link-hover);
  white-space: nowrap;
}

.hub-badge--free {
  background: var(--green-pill-background);
  border-color: rgba(34, 197, 94, 0.35);
  color: var(--green-pill);
}

.hub-badge--popular {
  background: var(--pink-pill-background);
  border-color: rgba(236, 72, 153, 0.35);
  color: var(--pink-pill);
}

.hub-badge--limited {
  background: var(--pink-pill-background);
  border-color: rgba(236, 72, 153, 0.35);
  color: var(--pink-pill);
}

/* Arrow */
.hub-link-arrow {
  font-size: 18px;
  color: var(--text-muted);
}

/* Emphasis variants */
.hub-link--primary {
  border-width: 1px;
}

.hub-link--highlight {
  border-width: 2px;
  border-color: rgba(236, 72, 153, 0.55);
}

.hub-link--secondary .hub-link-subtitle {
  color: var(--text-subtle);
}

/* Tiny footnote */
.hub-footnote {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}


/* Safety: prevent any global img rules from blowing up hub icons */
.hub-links img { max-width: 100%; }
