
:root {
  --bg-1: #f7efe9;
  --bg-2: #f0ddd0;
  --bg-3: #d8b3b5;
  --ink: #251f26;
  --muted: #665d66;
  --panel: rgba(255, 252, 249, 0.84);
  --panel-strong: rgba(255, 252, 249, 0.92);
  --border: rgba(255, 255, 255, 0.64);
  --shadow: 0 22px 64px rgba(74, 49, 63, 0.18);
  --radius: 26px;
  --radius-small: 18px;
  --accent: #8e5f72;
  --accent-2: #c48663;
  --button-text: #fffaf7;
  --shell: min(1120px, calc(100% - 28px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 54%, var(--bg-3));
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
}

/* Static background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    url("assets/background-bokeh-2560x1440.jpg") center center / cover no-repeat;
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 249, 245, 0.18), rgba(255, 246, 241, 0.20));
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 8px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.glass-panel,
.glass-chip {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 650;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  background: rgba(255,255,255,0.66);
  outline: none;
}

main { padding: 46px 0 10px; }

.hero {
  min-height: 510px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 76px);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -100px;
  top: -90px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 214, 177, 0.55), rgba(255, 214, 177, 0) 64%);
  pointer-events: none;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

h1, h2, h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 1px rgba(255,255,255,0.22);
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 8vw, 6.3rem);
  text-wrap: balance;
}

h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.hero-text {
  max-width: 740px;
  margin: 0;
  color: #4b434c;
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button:hover { transform: translateY(-1px); }

.button.primary {
  color: var(--button-text);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(130, 83, 100, 0.26);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255,255,255,0.48);
  border: 1px solid rgba(255,255,255,0.62);
}

.section {
  margin-top: 24px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: var(--radius);
}

.section.compact { padding-block: 30px; }

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h2 { margin-bottom: 0; }

.floating-heading { padding-inline: 2px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-small);
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.card p { color: var(--muted); }
.card .text-link { margin-top: auto; }

.text-link {
  color: var(--accent);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.download-list {
  display: grid;
  gap: 10px;
}

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,0.44);
  border: 1px solid rgba(255,255,255,0.54);
}

.download-row:hover { background: rgba(255,255,255,0.62); }

.download-row strong { display: block; }
.download-row small { color: var(--muted); }

.download-row > span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.section-note, .muted { color: var(--muted); }

.site-footer { padding: 24px 0 34px; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
}

.footer-inner p { margin: 0; }

.article-wrap {
  max-width: 860px;
  margin-inline: auto;
}

.article {
  padding: clamp(26px, 5vw, 54px);
  border-radius: 28px;
}

.article h1 { font-size: clamp(2.2rem, 6vw, 4.7rem); }
.article p, .article li { font-size: 1.04rem; }

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
}

.page-intro { margin-top: 22px; }

.page-title {
  margin-bottom: 14px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
}

.article-list-section {
  padding-inline: 0;
  padding-top: 0;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-radius: var(--radius-small);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.article-list-item:hover {
  transform: translateY(-1px);
  background: var(--panel-strong);
}

.article-list-item h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.article-list-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.article-arrow {
  flex: 0 0 auto;
  font-size: 1.7rem;
  color: var(--accent);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav { width: 100%; }

  .card-grid { grid-template-columns: 1fr; }

  .hero { min-height: 430px; }

  .footer-inner { flex-direction: column; }
}

@media (max-width: 560px) {
  :root {
    --shell: min(100% - 18px, 1120px);
    --radius: 22px;
  }

  .site-header { padding-top: 10px; }

  .nav a {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  main { padding-top: 24px; }

  .hero {
    padding: 28px 22px;
    min-height: 410px;
    border-radius: 26px;
  }

  h1 { font-size: clamp(2.45rem, 14vw, 4rem); }

  .section { padding: 24px 20px; }

  .download-row,
  .article-list-item {
    align-items: flex-start;
  }

  .article-list-item {
    padding: 21px 19px;
  }

  .article-arrow { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}


/* V6 navigation / identity */
.brand {
  font-family: "Segoe Print", "Bradley Hand", "Lucida Handwriting", cursive;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}

.nav-toggle {
  display: none;
  justify-content: center;
  min-width: 52px;
  padding-inline: 14px;
  cursor: pointer;
  border: 1px solid var(--border);
  font-size: 1.2rem;
  line-height: 1;
}

.mirror-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.mirror-tile {
  min-height: 92px;
  padding: 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255,255,255,.46);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 12px 34px rgba(74,49,63,.10);
}

.mirror-tile:hover,
.mirror-tile:focus-visible {
  background: rgba(255,255,255,.82);
  outline: none;
}

.mirror-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.mirror-icon svg {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.mirror-tile strong {
  font-size: 1rem;
  line-height: 1.2;
}

.download-groups {
  display: grid;
  gap: 18px;
}

.download-group {
  padding: 20px;
  border-radius: 22px;
}

.download-group h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.compact-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}

.compact-link {
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255,255,255,.40);
  border: 1px solid rgba(255,255,255,.60);
}

.compact-link:hover,
.compact-link:focus-visible {
  background: rgba(255,255,255,.70);
  outline: none;
}

.compact-link .mirror-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.compact-link small {
  display: block;
  color: var(--muted);
  line-height: 1.25;
}

.placeholder-box {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255,255,255,.40);
  border: 1px dashed rgba(142,95,114,.35);
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand {
    max-width: calc(100% - 68px);
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    border-radius: 22px;
    flex-wrap: wrap;
    overflow: visible;
    padding: 8px;
  }

  .site-header.nav-open .nav {
    display: flex;
  }

  .nav a {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 12px;
  }

  .mirror-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 560px) {
  .brand {
    min-height: 46px;
    padding: 0 15px;
    font-size: .96rem;
  }

  .nav-toggle {
    min-height: 46px;
  }

  .mirror-grid,
  .compact-link-grid {
    grid-template-columns: 1fr;
  }
}


/* V8 homepage refinements */
.glass-chip,
.nav,
.nav-toggle {
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.home-about {
  padding: clamp(28px, 5vw, 64px);
}

.home-about h1 {
  margin: 0 0 18px;
}

.home-about .hero-copy {
  max-width: 760px;
}

.notes-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 22px;
}

.note-preview-tile {
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255,255,255,.43);
  border: 1px solid rgba(255,255,255,.72);
  font-weight: 780;
  line-height: 1.2;
  box-shadow: 0 10px 28px rgba(74,49,63,.08);
}

.note-preview-tile:hover,
.note-preview-tile:focus-visible {
  background: rgba(255,255,255,.76);
  outline: none;
}

.note-preview-tile.more {
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(160,98,112,.94), rgba(205,132,89,.94));
  color: white;
}

.mirrors-shell {
  padding: clamp(22px, 4vw, 36px);
  border-radius: 26px;
}

.mirrors-shell .section-heading {
  margin: 0 0 16px;
}

.license-compact {
  padding: 22px 26px;
  border-radius: 22px;
}

.license-compact h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.license-copy {
  display: grid;
  gap: 9px;
  max-width: 1050px;
}

.license-copy p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.55;
}

.license-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.license-links a {
  font-weight: 750;
}

.footer-legal {
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .notes-preview-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 480px) {
  .notes-preview-grid {
    grid-template-columns: 1fr;
  }
}


/* V8.1 transparency tuning */
.mirrors-shell {
  background: rgba(255, 252, 249, 0.56);
}

.mirror-tile {
  background: rgba(255,255,255,.42);
}

.note-preview-tile {
  background: rgba(255,255,255,.42);
}

.download-group,
.article-prose,
.music-player-panel,
.playlist-panel {
  background: rgba(255,252,249,.62);
}

.home-about .about-divider {
  height: 1px;
  margin: 28px 0 24px;
  background: linear-gradient(90deg, rgba(121,84,96,.18), rgba(121,84,96,.04));
}

.home-about .about-subtitle {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
}

.note-preview-tile.more {
  background: linear-gradient(135deg, rgba(218,171,91,.92), rgba(233,190,111,.92));
  color: #3c2b25;
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 10px 28px rgba(128,87,40,.14);
}

.note-preview-tile.more:hover,
.note-preview-tile.more:focus-visible {
  background: linear-gradient(135deg, rgba(229,185,103,.98), rgba(240,202,129,.98));
}


/* V8.2 unified transparent panels */
.glass-panel,
.home-about,
#notes.glass-panel,
#downloads.glass-panel,
.mirrors-shell,
.license-compact,
.page-intro,
.article,
.article-list-item,
.download-group,
.music-player-panel,
.playlist-panel,
.article-prose {
  background: rgba(255, 252, 249, 0.56) !important;
}

/* Nested tiles stay a little lighter than the containing panel */
.note-preview-tile,
.mirror-tile,
.compact-link,
.playlist-track.is-current {
  background: rgba(255, 255, 255, 0.40) !important;
}

.note-preview-tile:hover,
.note-preview-tile:focus-visible,
.mirror-tile:hover,
.mirror-tile:focus-visible,
.compact-link:hover,
.compact-link:focus-visible {
  background: rgba(255,255,255,.58) !important;
}

/* Warm gold CTA: similar weight to the Downloads CTA, but visually secondary */
.note-preview-tile.more {
  background: linear-gradient(135deg, #d7ad62 0%, #e9c47f 52%, #d99c5f 100%) !important;
  color: #3c2c24 !important;
  border-color: rgba(255,255,255,.72) !important;
  box-shadow: 0 10px 28px rgba(147, 99, 43, .16) !important;
}

.note-preview-tile.more:hover,
.note-preview-tile.more:focus-visible {
  background: linear-gradient(135deg, #e0b96d 0%, #f0cf8d 52%, #e4a96b 100%) !important;
}


/* V8.3 Open More Notes color refinement */
.note-preview-tile.more {
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 245, 205, .38), transparent 28%),
    radial-gradient(circle at 70% 18%, rgba(255, 226, 160, .24), transparent 22%),
    linear-gradient(135deg, rgba(205, 136, 86, .78) 0%, rgba(237, 181, 96, .74) 52%, rgba(247, 212, 126, .68) 100%) !important;
  color: #4a3027 !important;
  border: 1px solid rgba(255, 246, 216, .44) !important;
  box-shadow:
    0 14px 32px rgba(168, 106, 53, .16),
    inset 0 1px 0 rgba(255,255,255,.28) !important;
}

.note-preview-tile.more:hover,
.note-preview-tile.more:focus-visible {
  background:
    radial-gradient(circle at 28% 25%, rgba(255, 245, 205, .45), transparent 28%),
    radial-gradient(circle at 70% 18%, rgba(255, 226, 160, .30), transparent 22%),
    linear-gradient(135deg, rgba(215, 145, 92, .84) 0%, rgba(241, 188, 102, .80) 52%, rgba(251, 218, 136, .74) 100%) !important;
  color: #432a21 !important;
}


/* QA: non-clickable placeholder destinations */
.is-placeholder {
  cursor: default;
}
