/* ================================================================
   AJ TYPE — DESIGN KIT
   ================================================================

   ── SITE UI FONTS ──────────────────────────────────────────────
   These control the site chrome: nav, body copy, headings, labels.

   --font-body:     "PlungText"   → Body copy, labels, footer, UI text
   --font-display:  "Tortoise"   → Headlines, hero, waterfall, about
   --font-ui:       "PlungText"   → Buttons, nav, pills, tags

   ── SPECIMEN FONTS ─────────────────────────────────────────────
   These are the actual typefaces being showcased. Each card uses
   its own dedicated variable. To update a specimen font, change
   the @font-face name AND its --specimen-* variable below.

   --specimen-plung-text:    "PlungText"     → AJPlungTextVF.woff2  (variable)
   --specimen-plung-display: "PlungDisplay"  → AJPlung-Display.woff2
   --specimen-tortoise:      "Tortoise"      → AJTortoise-Regular.woff2
   --specimen-nov:           "Nov"           → AJNov.woff2

   ── COLOR PALETTE ──────────────────────────────────────────────

   --bg            Background (light mode default)   #f6f2ea  warm cream
   --text          Foreground / type color            #231f20  near-black
   --accent        Buttons, hover highlights          #c05b3c  terracotta
   --muted         Subdued text, placeholders         derived from --text
   --border        Rules, card outlines, dividers     derived from --text
   --track         Slider track                       #ccc

   Pill colors (edit in :root above):
     Primary  --pill-primary  purple
     Color 1  --pill-color1   amber
     Color 2  --pill-color2   blue
     Color 3  --pill-color3   olive

   Dark mode swaps --bg x #231f20 and --text x swatch color.
   To add a new swatch, add a .swatch div with data-color="#YOURCOLOR".

   ================================================================ */


/* --- Font files -----------------------------------------------
   styles.css lives in:   AJ-Type-Foundry/
   font files live in:    AJ-Type-Foundry/Fonts/
   ------------------------------------------------------------ */

/* Site UI fonts */
@font-face {
  font-family: "PlungText";
  src: url("Fonts/AJPlungTextVF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}


/* Specimen fonts — one @font-face per typeface being showcased */
@font-face {
  font-family: "PlungDisplay";
  src: url("Fonts/AJPlung-Display.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Tortoise";
  src: url("Fonts/AJTortoise-Regular.woff2") format("woff2");
  /* File not yet available — will fall back to system sans */
  font-display: swap;
}
@font-face {
  font-family: "Nov";
  src: url("Fonts/AJNov.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Pixl";
  src: url("Fonts/AJPixl-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Rae";
  src: url("Fonts/AJRae-Regular.woff2") format("woff2");
  font-display: swap;
}


/* --- Variables ---------------------------------------------- */
:root {
  /* Site UI fonts */
  --font-body:     "PlungText", sans-serif;
  --font-display:  "Tortoise", sans-serif;
  --font-ui:       "PlungText", sans-serif;

  /* Specimen fonts (used only on font cards and specimen pages) */
  --specimen-plung-text:    "PlungText",    sans-serif;
  --specimen-plung-display: "PlungDisplay", sans-serif;
  --specimen-tortoise:      "Tortoise",     sans-serif;
  --specimen-nov:           "Nov",          sans-serif;
  --specimen-pixl:          "Pixl",         sans-serif;
  --specimen-rae:           "Rae",          sans-serif;

  /* Colors */
  --bg:      #f6f2ea;
  --text:    #231f20;
  --accent:  #B379C3;

  /* Pill colors — Primary + 3 accent colors (bg / text) */
  --pill-primary-bg:  #B379C3;  --pill-primary-text:  #3a2060;
  --pill-color1-bg:   #FFAA00;  --pill-color1-text:   #3d2800;
  --pill-color2-bg:   #97DFFC;  --pill-color2-text:   #0d2e40;
  --pill-color3-bg:   #c8cc7a;  --pill-color3-text:   #3a3d10;

  /* Derived */
  --muted:      color-mix(in srgb, var(--text) 30%, transparent);
  --border:     color-mix(in srgb, var(--text) 18%, transparent);
  --track:      #ccc;
  --transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}


/* --- Reset / Base ------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  transition: var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--text);
}


/* --- Typography helpers ------------------------------------- */
/* Site chrome */
.font-body    { font-family: var(--font-body); }
.font-display { font-family: var(--font-display); }
.font-ui      { font-family: var(--font-ui); }

/* Specimen — use these on cards and specimen pages */
.specimen-plung-text    { font-family: var(--specimen-plung-text); }
.specimen-plung-display { font-family: var(--specimen-plung-display); }
.specimen-tortoise      { font-family: var(--specimen-tortoise); }
.specimen-nov           { font-family: var(--specimen-nov); }


/* --- Layout helpers ----------------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }
@media (max-width: 700px) { .wrap { padding: 0 1.25rem; } }

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 3rem;
  transition: var(--transition);
}
@media (max-width: 700px) { hr.divider { margin: 0 1.25rem; } }


/* --- HEADER ------------------------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  flex-wrap: wrap;
  gap: 1rem;
}
.logo { font-size: 2rem; font-family: var(--font-ui); letter-spacing: -0.01em; }
.header-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.header-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s;
}
.header-nav a:hover { opacity: 1; }





@media (max-width: 700px) {
  .header { padding: 1.5rem 1.25rem 0; }
  .logo { font-size: 1.6rem; }
}


/* --- HERO --------------------------------------------------- */
.hero {
  padding: 4rem 3rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-headline em { font-style: italic; }
.hero-sub { font-size: 0.9rem; line-height: 1.7; opacity: 0.65; max-width: 360px; padding-bottom: 0.5rem; }
.hero-sub p + p { margin-top: 0.75rem; }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.25rem 2rem; }
  .hero-sub { max-width: 100%; }
}


/* --- TESTER SECTION ----------------------------------------- */
.tester-section { padding: 3rem 0; }
.tester-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.font-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.font-buttons button {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--text);
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  transition: var(--transition);
}
.font-buttons button.active { background: var(--text); color: var(--bg); }

.controls-right { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }

.align-buttons { display: flex; gap: 0.3rem; }
.align-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.align-btn.active, .align-btn:hover { background: var(--text); color: var(--bg); }
.align-btn svg { width: 13px; height: 13px; fill: currentColor; }

.slider-group { display: flex; align-items: center; gap: 0.5rem; }
.slider-label { font-size: 0.72rem; opacity: 0.55; white-space: nowrap; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 4px;
  background: var(--track);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--text);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.color-cluster { display: flex; align-items: center; gap: 0.6rem; }
.color-swatches { display: flex; gap: 0.35rem; }
.swatch {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: transform 0.15s, outline 0.15s;
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { outline: 2px solid var(--text); outline-offset: 2px; }

.color-toggle {
  position: relative;
  width: 34px; height: 18px;
  background-color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.color-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background-color: var(--bg);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.4s ease;
}
.color-toggle.active { background-color: transparent; border: 1px solid var(--text); }
.color-toggle.active::after { background-color: var(--text); transform: translateX(16px); }

.tester-text-wrap { padding: 1.5rem 3rem 2.5rem; min-height: 200px; }
.tester-text {
  font-family: var(--font-display);
  font-size: 66px;
  line-height: 1.2;
  color: var(--text);
  outline: none;
  display: block;
  width: 100%;
  font-weight: 400;
  text-align: left;
  padding: 0.2em 0.4em;
  border-radius: 12px;
  transition: background-color 0.2s;
  word-break: break-word;
}
.tester-text:hover, .tester-text:focus {
  background-color: color-mix(in srgb, var(--text) 6%, transparent);
}

@media (max-width: 700px) {
  .tester-controls, .tester-text-wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  .tester-text { font-size: 42px; }
  input[type="range"] { width: 80px; }
}


/* --- SPECIMEN SECTION --------------------------------------- */
.specimen-section { padding: 4rem 3rem; }
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 2.5rem;
}

.waterfall { display: flex; flex-direction: column; gap: 0.1em; }
.waterfall-row {
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.2s;
  cursor: default;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.waterfall-row:hover { color: var(--accent); }

.pangrams { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.25rem; }
.pangram-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}
.pangram-size-label { font-size: 0.68rem; opacity: 0.4; min-width: 2.5rem; text-align: right; flex-shrink: 0; }
.pangram-text { font-weight: 400; line-height: 1.3; color: var(--text); }

@media (max-width: 700px) {
  .specimen-section { padding: 3rem 1.25rem; }
  .pangram-row { gap: 1rem; }
}


/* --- FONTS GRID --------------------------------------------- */
.fonts-section { padding: 4rem 3rem; }
.fonts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 2rem;
}
.font-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.font-card:hover { background: color-mix(in srgb, var(--text) 4%, var(--bg)); }

.font-card-preview {
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.2s;
}
.font-card:hover .font-card-preview { color: var(--accent); }

.font-card-meta { display: flex; justify-content: space-between; align-items: flex-end; }
.font-card-name { font-size: 0.8rem; opacity: 0.5; }
.font-card-tag { font-size: 0.7rem; padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; opacity: 0.6; }

.font-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition), transform 0.15s;
  align-self: flex-start;
}
.font-card-action.free { background: none; border: 1px solid var(--text); color: var(--text); }
.font-card-action.free:hover { background: var(--text); color: var(--bg); transform: scale(1.03); }
.font-card-action.buy { background: var(--accent); color: #231f20; }
.font-card-action.buy:hover { background: var(--text); color: var(--bg); transform: scale(1.03); }

.stripe-note { font-size: 0.7rem; opacity: 0.35; margin-top: 0.5rem; }

@media (max-width: 700px) {
  .fonts-section { padding: 3rem 1.25rem; }
  .fonts-grid { grid-template-columns: 1fr; }
}


/* --- CHARACTER GRID ----------------------------------------- */
.chars-section { padding: 4rem 3rem; }
.chars-controls { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.chars-filter-btn {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  transition: var(--transition);
}
.chars-filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.chars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; }
.char-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: default;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  overflow: hidden;
}
.char-cell:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); }
.char-cell .glyph { font-size: 1.6rem; line-height: 1; color: var(--text); }
.char-cell .unicode { font-size: 0.45rem; opacity: 0.35; margin-top: 2px; letter-spacing: 0.05em; }

.char-cell .glyph-tooltip {
  position: fixed;
  pointer-events: none;
  font-size: 8rem;
  line-height: 1;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  display: none;
  z-index: 100;
  box-shadow: 0 8px 32px color-mix(in srgb, var(--text) 12%, transparent);
}
.char-cell:hover .glyph-tooltip { display: block; }

@media (max-width: 700px) {
  .chars-section { padding: 3rem 1.25rem; }
  .chars-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); }
}


/* --- SETTING / LONG FORM ------------------------------------ */
.setting-section { padding: 4rem 3rem; }
.setting-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.setting-block p { font-family: var(--font-body); font-size: 1rem; line-height: 1.75; color: var(--text); opacity: 0.75; }
.setting-size-label { font-size: 0.68rem; opacity: 0.4; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }

@media (max-width: 700px) {
  .setting-section { padding: 3rem 1.25rem; }
  .setting-columns { grid-template-columns: 1fr; gap: 2rem; }
}


/* --- ABOUT SECTION ------------------------------------------ */
.about-section { padding: 4rem 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-big { font-family: var(--font-display); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
.about-body { font-size: 0.9rem; line-height: 1.75; opacity: 0.65; }
.about-body p + p { margin-top: 1rem; }

.support-cta { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: 12px; }
.support-cta-title { font-size: 0.85rem; opacity: 0.5; margin-bottom: 0.75rem; }
.support-cta p { font-size: 0.85rem; line-height: 1.6; opacity: 0.65; margin-bottom: 1rem; }



@media (max-width: 800px) {
  .about-section { grid-template-columns: 1fr; padding: 3rem 1.25rem; gap: 2rem; }
}


/* --- FOOTER ------------------------------------------------- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.6;
  font-family: var(--font-ui);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.75rem;
  transition: var(--transition);
}
.footer-social { display: flex; gap: 1.25rem; }
.footer-social a { color: var(--text); text-decoration: none; opacity: 0.75; }
.footer-social a:hover { opacity: 1; }

@media (max-width: 700px) { footer { padding: 1.5rem 1.25rem; } }


/* --- Scroll fade-in ----------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ================================================================
   HOME PAGE
   ================================================================ */

/* Grid */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  flex: 1;
  border-top: none;
  border-bottom: none;
  /* clip the bg-color bleed at top and bottom edges */
  overflow: hidden;
}
@media (max-width: 900px) { .home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .home-grid { grid-template-columns: 1fr; } }

/* Card shell */
.font-card-home {
  background: var(--bg);
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.3s ease;
}
/* card hover background removed — card is no longer a clickable link */

/* Specimen words */
.card-words {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.0;
  font-weight: 400;
  color: var(--text);
  font-size: 7vw;
  letter-spacing: -0.02em;
  text-align: center;
  padding: 0 8%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  z-index: 1;
  gap: 0.05em;
}
.font-card-home:hover .card-words { transform: none; }
@media (max-width: 900px) { .card-words { font-size: 10vw; } }
@media (max-width: 560px)  { .card-words { font-size: 18vw; } }
.card-word { display: block; }

/* Editable text — show text cursor on hover */
.card-words:hover { cursor: text; }
.card-words:focus { outline: none; cursor: text; }

/* Each card uses its own specimen font variable directly */
.card-tortoise      .card-words { font-family: var(--specimen-tortoise); }
.card-plung-display .card-words { font-family: var(--specimen-plung-display); }
.card-plung-text    .card-words { font-family: var(--specimen-plung-text); }
.card-nov           .card-words { font-family: var(--specimen-nov); }
.card-pixl          .card-words { font-family: var(--specimen-pixl); }
.card-rae           .card-words { font-family: var(--specimen-rae); }

/* Multi-weight stepping — words go light to heavy for variable fonts.
   Add a new block here for each future multi-weight card.          */
.card-plung-text .card-word:nth-child(1) { font-weight: 300; }
.card-plung-text .card-word:nth-child(2) { font-weight: 400; }
.card-plung-text .card-word:nth-child(3) { font-weight: 600; }
.card-plung-text .card-word:nth-child(4) { font-weight: 800; }

/* Pills */
.pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.6em 0.75em 0.45em 0.75em;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}

/* Vertical pills */
.pill-weights,
.pill-detail {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 0.75em 0.55em 0.75em 0.35em;
}

/* Positions */
.pill-name    { top: clamp(0.85rem, 3%, 1.2rem); left: clamp(0.85rem, 3%, 1.2rem); }
.pill-weights {
  top: clamp(0.85rem, 3%, 1.2rem);
  right: clamp(0.85rem, 3%, 1.2rem);
}
.pill-detail {
  bottom: clamp(0.85rem, 3%, 1.2rem);
  left: clamp(0.85rem, 3%, 1.2rem);
}
.pill-download {
  bottom: clamp(0.85rem, 3%, 1.2rem);
  right: clamp(0.85rem, 3%, 1.2rem);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
  transition: opacity 0.2s, transform 0.2s, background 0.3s, color 0.3s;
}
/* Light mode hover — fill black, white text */
.pill-download:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: scale(1.05);
}
/* Dark mode default — filled cream */
html.dark .pill-download {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
/* Dark mode hover — transparent, white stroke, white text */
html.dark .pill-download:hover {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
  transform: scale(1.05);
}

/* Global pill colors */
.pill-name  { background: var(--pill-primary-bg); color: var(--pill-primary-text); }
/* pill-detail colors are set per-card below */

/* Per-card pill colors */
/* name pill is always purple — it anchors the card identity */
/* brand + weights + feature rotate through amber / blue / olive  */

.card-tortoise      .pill-weights  { background: var(--pill-color1-bg); color: var(--pill-color1-text); }
.card-tortoise      .pill-detail   { background: var(--pill-color3-bg); color: var(--pill-color3-text); }

.card-plung-display .pill-weights  { background: var(--pill-color3-bg); color: var(--pill-color3-text); }
.card-plung-display .pill-detail   { background: var(--pill-color1-bg); color: var(--pill-color1-text); }

.card-plung-text    .pill-weights  { background: var(--pill-color2-bg); color: var(--pill-color2-text); }
.card-plung-text    .pill-detail   { background: var(--pill-color3-bg); color: var(--pill-color3-text); }

.card-nov           .pill-weights  { background: var(--pill-color2-bg); color: var(--pill-color2-text); }
.card-nov           .pill-detail   { background: var(--pill-color1-bg); color: var(--pill-color1-text); }

.card-pixl          .pill-weights  { background: var(--pill-color1-bg); color: var(--pill-color1-text); }
.card-pixl          .pill-detail   { background: var(--pill-color2-bg); color: var(--pill-color2-text); }

.card-rae           .pill-weights  { background: var(--pill-color3-bg); color: var(--pill-color3-text); }
.card-rae           .pill-detail   { background: var(--pill-color2-bg); color: var(--pill-color2-text); }

/* Home footer */
.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  color: var(--text);
  opacity: 0.55;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
  transition: var(--transition);
}
.home-footer a { color: var(--text); text-decoration: none; }
.home-footer a:hover { opacity: 1; }

@media (max-width: 700px) { .home-footer { padding: 1.25rem; } }


/* ================================================================
   ABOUT DRAWER
   ================================================================ */

/* Overlay */
.about-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--text) 30%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 99;
}
.about-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Drawer */
.about-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 90vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  overflow-y: auto;
}
.about-drawer.open {
  transform: translateX(0);
}

.about-drawer-inner {
  padding: 3rem 2.5rem;
  padding-top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  height: 100%;
}

.about-drawer-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.about-drawer-body a {
  color: var(--text);
  text-decoration: underline;
  opacity: 1;
  transition: opacity 0.2s;
}
.about-drawer-body a:hover { opacity: 0.5; }

.about-drawer-body em {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1em;
}

.about-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.about-drawer-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.about-drawer-links a:hover { opacity: 1; }

/* Dark mode */
html.dark {
  --bg:   #231f20;
  --text: #f6f2ea;
  --track: #555;
}

/* Dark mode toggle switch */
.dark-toggle {
  display: flex;
  align-items: center;
  width: 40px;
  height: 22px;
  background: transparent;
  border: 1.5px solid var(--text);
  border-radius: 999px;
  cursor: pointer;
  padding: 0 3px;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.dark-toggle-knob {
  width: 14px;
  height: 14px;
  background: var(--text);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}
html.dark .dark-toggle {
  background: var(--text);
}
html.dark .dark-toggle-knob {
  transform: translateX(18px);
  background: var(--bg);
}

/* About drawer close button */
.about-close {
  position: absolute;
  top: 3rem;
  left: 2.5rem;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.2s;
  line-height: 1.75;
}
.about-close:hover { opacity: 1; }

/* About trigger button — matches nav link style */
.about-trigger {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.65;
  cursor: pointer;
  transition: opacity 0.2s;
}
.about-trigger:hover,
.about-trigger.open { opacity: 1; }


/* ── Logo proximity weight effect ───────────────────────────── */
.logo-char {
  display: inline-block;
  font-variation-settings: "wght" 800;
  transition: font-variation-settings 0.08s ease;
  font-family: var(--font-body); /* PlungText VF — has wght axis */
}
.logo-space { pointer-events: none; }

.logo-gap {
  display: inline-block;
  width: 0.35em;
  pointer-events: none;
}


/* ── "Click to type!" cursor follower pill ───────────────────── */
.cursor-pill {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: #231f20;
  color: #f6f2ea;
  font-family: "PlungText", sans-serif;
  font-size: 11px;
  font-variation-settings: "wght" 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  opacity: 0;
  transform: translate(10px, calc(-100% - 6px));
  transition: opacity 0.12s ease;
}
.cursor-pill.visible {
  opacity: 1;
}
html.dark .cursor-pill {
  background: #f6f2ea;
  color: #231f20;
}