/* Quicksand (OFL) — served as external woff2 */
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/quicksand-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/quicksand-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/quicksand-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/quicksand-700.woff2') format('woff2');
}

:root {
    /* ===== Mizzen Design System tokens (Mizzen UI – Next Gen) ===== */
    /* Purple family */
    --brand:          #5D1662;  /* Primary Purple */
    --brand-2:        #A780AA;  /* Secondary / hover fill */
    --brand-light:    #E3D7E5;  /* Light — selected chips / input borders */
    --brand-highlight:#F2E6F4;  /* Highlight — playlist sections */
    --brand-lighter:  #F8F4F8;  /* Lighter — washed hover tint */
    --note-yellow:    #FFFCEF;

    /* Orange family */
    --orange:         #FF8800;  /* Primary Orange — meta info */
    --orange-2:       #FFA033;
    --orange-light:   #FFE6CF;

    /* Status / action */
    --green:          #18A900;
    --green-dark:     #1B5E4A;
    --green-tint:     #E7F5E9;
    --navy:           #1B4A7A;
    --blue-sel:       #DAEBFF;
    --clay:           #8A4A00;

    /* Neutrals */
    --canvas:         #FAFAFA;  /* app background */
    --white:          #FFFFFF;
    --lightest:       #F4F4F4;
    --border:         #EDEDED;  /* default hairline / card border */
    --border-strong:  #E1E1E1;  /* Reserved */
    --gray-2:         #C9C9C9;  /* Secondary gray */
    --gray:           #575757;  /* Primary gray — secondary text */
    --ink:            #111111;  /* Black */

    /* Radii */
    --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;

    /* Shadows */
    --shadow-hover: 0 4px 10px 3px rgba(0,0,0,.15);
    --shadow-float-sm: 0 16px 40px rgba(0,0,0,.18);
    --shadow-purple-sm: 0 4px 12px rgba(93,22,98,.25);

    --maxw: 940px;
    --font: 'Quicksand', ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--canvas);
    color: var(--gray);
    font-family: var(--font);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
  }

  /* ---------- Header ---------- */
  .site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(250,250,250,0.88);
    backdrop-filter: saturate(180%) blur(10px);
    position: sticky; top: 0; z-index: 50;
  }
  .site-header .inner {
    max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
  }
  .brand-lockup {
    display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  }
  .brand-lockup .logo { height: 38px; width: auto; display: block; }
  .logo-divider {
    width: 1px; height: 26px; background: var(--border-strong); display: inline-block;
  }
  .page-label {
    font-family: var(--font); font-weight: 600; font-size: 19px;
    color: var(--gray); letter-spacing: -0.01em;
  }
  .back-btn {
    font-family: var(--font); font-weight: 600; font-size: 14px;
    color: var(--brand); text-decoration: none; background: var(--white);
    border: 1px solid var(--brand); border-radius: var(--r-pill);
    padding: 8px 18px; transition: background .15s; white-space: nowrap;
  }
  .back-btn:hover { text-decoration: underline; background: var(--brand-lighter); }

  /* ---------- Hero ---------- */
  .hero { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 40px; }
  .hero h1 {
    font-family: var(--font); font-weight: 700; color: var(--ink);
    font-size: 42px; line-height: 1.05; letter-spacing: -0.44px; margin: 0 0 14px;
  }
  .hero p { font-size: 18px; color: var(--gray); margin: 0; max-width: none; line-height: 1.5; }

  /* ---------- Changelog list ---------- */
  main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 120px; }

  /* one grid row per date; the date column is sticky across the whole group */
  .date-group {
    display: grid; grid-template-columns: 150px 1fr; gap: 32px;
    padding: 48px 0; border-top: 1px solid var(--border);
  }
  .date-group:first-child { border-top: none; padding-top: 8px; }

  .date-col { position: relative; }
  .date-col .entry-date { position: sticky; top: 92px; }
  .entry-date { font-weight: 600; font-size: 14px; color: var(--gray); white-space: nowrap; }
  .entry-version {
    display: block; margin-bottom: 10px;
    font-weight: 700; font-size: 14px; color: var(--orange);
  }

  .group-body { min-width: 0; }
  .entry { min-width: 0; scroll-margin-top: 92px; }
  .group-body .entry + .entry { margin-top: 44px; }

  .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
  .tag {
    font-family: var(--font); font-weight: 700; font-size: 11.5px;
    letter-spacing: 0.03em; text-transform: uppercase;
    padding: 5px 11px; border-radius: var(--r-pill); line-height: 1;
  }
  .tag--new          { color: var(--brand);      background: var(--brand-highlight); }
  .tag--improved     { color: var(--navy);       background: var(--blue-sel); }
  .tag--fixed        { color: var(--green-dark);  background: var(--green-tint); }
  .tag--announcement { color: var(--clay);       background: var(--orange-light); }

  .entry-title {
    font-family: var(--font); font-weight: 700; color: var(--ink);
    font-size: 27px; line-height: 1.15; letter-spacing: -0.2px;
    margin: 0 0 16px; scroll-margin-top: 92px;
    display: flex; align-items: baseline; gap: 10px;
  }
  .entry-title a.title-link { color: inherit; text-decoration: none; }
  .entry-title a.title-link:hover { color: var(--brand); }
  .anchor {
    opacity: 0; text-decoration: none; color: var(--brand-2);
    font-size: 20px; font-weight: 500; transition: opacity .15s; flex: none;
  }
  .entry-title:hover .anchor { opacity: 1; }
  .anchor:hover { color: var(--brand); }

  .media-link { display: block; text-decoration: none; }
  .entry-media {
    margin: 0 0 22px; border-radius: var(--r-xl); overflow: hidden;
    border: 1px solid var(--border); background: var(--brand-lighter);
    transition: box-shadow .18s ease-out;
  }
  .entry-media:hover { box-shadow: var(--shadow-hover); }
  .entry-media img { display: block; width: 100%; height: auto; }
  .entry-media.placeholder {
    aspect-ratio: 16 / 8; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-lighter) 0%, var(--brand-light) 100%);
    position: relative;
  }
  .entry-media.placeholder span {
    font-family: var(--font); font-weight: 700; font-size: 15px;
    color: var(--brand-2); letter-spacing: 0.04em; text-transform: uppercase; z-index: 1;
  }
  .entry-media.placeholder::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(var(--brand-light) 1.2px, transparent 1.2px);
    background-size: 22px 22px; opacity: .5;
  }

  .entry-content { color: var(--gray); font-size: 16px; line-height: 1.55; }
  .entry-content p { margin: 0 0 14px; }
  .entry-content a { color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--brand-light); }
  .entry-content a:hover { border-color: var(--brand); }
  .entry-content ul { margin: 0 0 14px; padding-left: 22px; }
  .entry-content li { margin-bottom: 6px; }
  .entry-content strong { color: var(--ink); font-weight: 700; }

  /* Fixes roll-up */
  .fixes {
    margin-top: 22px; padding: 16px 18px;
    background: var(--brand-lighter); border: 1px solid var(--border);
    border-radius: var(--r-lg);
  }
  .fixes h4 {
    font-family: var(--font); font-weight: 700; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--brand-2); margin: 0 0 10px;
  }
  .fixes ul { margin: 0; padding-left: 18px; }
  .fixes li { margin-bottom: 6px; font-size: 14.5px; color: var(--gray); }
  .fixes li:last-child { margin-bottom: 0; }
  .fixes .fix-area { font-family: var(--font); font-weight: 700; color: var(--brand); margin-right: 4px; }

  /* ---------- Footer ---------- */
  footer {
    border-top: 1px solid var(--border);
    max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 56px;
    font-size: 13.5px; color: var(--gray-2);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  }
  footer a { color: var(--brand); text-decoration: none; font-weight: 600; }

  /* Copied toast */
  .toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: var(--ink); color: #fff; font-family: var(--font); font-weight: 600;
    font-size: 13.5px; padding: 10px 18px; border-radius: var(--r-pill);
    opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100;
    box-shadow: var(--shadow-float-sm);
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  @media (max-width: 720px) {
    .hero { padding: 40px 20px 24px; }
    .hero h1 { font-size: 26px; letter-spacing: -0.2px; }
    .hero p { font-size: 15px; }
    main { padding: 0 20px 80px; }
    .date-group { grid-template-columns: 1fr; gap: 14px; padding: 36px 0; }
    .date-col .entry-date { position: static; }
    .group-body .entry + .entry { margin-top: 32px; }
    .entry-title { font-size: 22px; }
    .page-label { font-size: 17px; }
    .brand-lockup .logo { height: 34px; }
  }
