/* Elitist Recordings — shared styles. DRAFT, do not deploy until Chris says go. */
/* Extracted from the homepage stylesheet so About, Shipping, Privacy, and Home share one file. */

/* ===================================================================
       COLOURS & FONTS  —  change these to restyle the whole site
       =================================================================== */
    :root {
      --background: #000000;   /* page background (black)               */
      --panel:      #0b0a07;   /* slightly lighter boxes                 */
      --gold:       #a38f2c;   /* accent gold, taken from the logo       */
      --gold-light: #c9b456;   /* gold used when hovering buttons/links  */
      --text:       #ece7da;   /* main text (off-white)                  */
      --muted:      #9a958a;   /* secondary / small text                 */
      --line:       #2a2618;   /* thin divider lines                     */
      --sold-out:   #3a3832;   /* grey used for sold-out buttons         */
      --font:       Georgia, "Times New Roman", Times, serif;
    }

    /* ---------- Basic page setup (usually no need to edit) ---------- */
    *, *::before, *::after { box-sizing: border-box; }
    html {
      -webkit-text-size-adjust: 100%;
      background: var(--background);
      color-scheme: dark;
    }
    body {
      margin: 0;
      background: var(--background);
      color: var(--text);
      font-family: var(--font);
      font-size: 18px;
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
    }
    img { max-width: 100%; height: auto; display: block; }
    a { color: var(--gold); text-decoration: none; transition: color .2s; }
    a:hover { color: var(--gold-light); }

    /* Headings: uppercase with wide letter-spacing, like the Bandcamp header */
    h1, h2, h3, .caps {
      font-weight: normal;
      text-transform: uppercase;
      letter-spacing: .28em;
      margin: 0;
    }

    .wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

    /* ---------- HEADER: same layout as the Bandcamp banner ----------
       Logo on the left, stacked name (ELITIST large, RECORDINGS smaller),
       short gold line, and the woodcut columns + black sun (assets/header-woodcut-sun-high.png) on the right. */
    .hero { position: relative; overflow: hidden; padding: 64px 0; }
    .hero .wrap {
      position: relative;
      max-width: 1140px;              /* header is a bit wider than the rest, like the banner */
      display: flex;
      align-items: center;
      gap: clamp(28px, 4.6vw, 48px);  /* space between logo and name */
    }
    .hero .logo { height: clamp(130px, 17vw, 180px); width: auto; flex: none; }
    .hero-text { position: relative; z-index: 1; }

    /* The woodcut columns + black sun on the right. Change opacity to make it stronger/weaker
       (1 = same strength as the Bandcamp banner; the fade is already built into the image). */
    .hero-art {
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      width: clamp(240px, 34vw, 420px);
      opacity: 1;
      pointer-events: none;
    }

    /* The label name is stacked: ELITIST large, RECORDINGS smaller below.
       Change the overall size with font-size here; the two lines scale together. */
    .wordmark {
      font-size: clamp(40px, 7.2vw, 74px);   /* size of ELITIST */
      color: var(--text);
      line-height: 1;
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      letter-spacing: 0;
    }
    .wordmark .wm-big { letter-spacing: .36em; }   /* ~10% wider, like the banner */
    .wordmark .wm-small {
      font-size: .355em;             /* RECORDINGS size, relative to ELITIST */
      letter-spacing: 1.12em;        /* spreads RECORDINGS to roughly the width of ELITIST (change together with .wm-big) */
      margin-top: .64em;
    }
    .rule { width: 132px; height: 1px; background: var(--gold); margin: 24px 0 0; border: 0; }

    /* ---------- RELEASES (each release is one <article class="release">) ---------- */
    .release {
      border-top: 1px solid var(--line);
      padding: 80px 0 90px;
    }
    .eyebrow {
      color: var(--gold);
      font-size: 13px;
      letter-spacing: .4em;
      text-align: center;
      margin-bottom: 56px;
    }
    .release-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: start;             /* cover lines up with the top of the text */
    }
    .release-grid > .cover { margin-top: 8px; }
    .cover {
      border: 1px solid var(--line);
      box-shadow: 0 30px 60px rgba(0,0,0,.6), 0 0 0 8px var(--panel);
    }
    .release-title {
      font-size: clamp(30px, 4vw, 44px);
      letter-spacing: .22em;
      line-height: 1.2;
    }
    .release-artist { font-style: italic; color: var(--muted); font-size: 20px; margin: 10px 0 32px; }
    .release-artist span { color: var(--text); font-style: normal; letter-spacing: .06em; }
    /* Album blurb under the artist name */
    .release-blurb {
      color: var(--text);
      opacity: .85;
      font-size: 17px;
      line-height: 1.75;
      max-width: 100%;
      margin: -12px 0 32px;
      text-align: left;
    }
    .release-blurb p { margin: 0 0 1em; }          /* space between paragraphs */
    .release-blurb p:last-child { margin-bottom: 0; }
    .release-blurb em { font-style: italic; }
    .release-blurb a.blurb-link { border-bottom: 1px solid rgba(163,143,44,.45); padding-bottom: 1px; } /* gold links in the blurb, subtle underline */
    .release-blurb a.blurb-link:hover { border-bottom-color: var(--gold-light); }
    .release-blurb p.credits { font-size: .88em; color: var(--muted); line-height: 1.7; } /* recording credits, one per line */

    /* Editions list: small picture | name + note | price */
    .editions { list-style: none; margin: 0 0 40px; padding: 0; }
    .edition {
      display: grid;
      grid-template-columns: 124px 1fr;
      align-items: center;
      column-gap: 18px;
      row-gap: 8px;
      padding: 16px 0;
      border-bottom: 1px solid var(--line);
    }
    .ed-thumb { grid-column: 1; grid-row: 1 / span 2; }
    .ed-copy { grid-column: 2; grid-row: 1; min-width: 0; }
    .ed-buy-col {
      grid-column: 2;
      grid-row: 2;
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      align-items: center;
      gap: 14px;
    }
    .edition:first-child { border-top: 1px solid var(--line); }
    .ed-thumb {
      width: 124px; height: 84px;
      object-fit: contain;            /* fits mockups and square covers alike */
      object-position: left center;   /* lines covers up with the mockup sleeves */
      filter: drop-shadow(0 6px 10px rgba(0,0,0,.7));
    }
    .ed-name { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; display: block; line-height: 1.5; }
    .ed-note { color: var(--muted); font-size: 15px; font-style: italic; display: block; margin-top: 4px; line-height: 1.45; }
    .ed-price { color: var(--gold); font-size: 20px; white-space: nowrap; text-align: right; }

    /* The big button */
    .button {
      display: inline-block;
      background: var(--gold);
      color: #000;
      font-family: var(--font);
      font-size: 14px;
      letter-spacing: .3em;
      text-transform: uppercase;
      padding: 19px 40px 18px 44px;
      border: 1px solid var(--gold);
      transition: background .2s, color .2s;
    }
    .button:hover { background: transparent; color: var(--gold-light); }
    .small-note { color: var(--muted); font-size: 14px; margin-top: 16px; }

    /* ---------- COMING SOON button (not clickable; gold outline) ----------
       Used while an album isn't on Bandcamp yet:
       <span class="button coming-soon" ...>Coming Soon</span>            */
    .button.coming-soon,
    .button.coming-soon:hover {
      background: rgba(163,143,44,.10);  /* faint gold wash */
      color: var(--gold-light);
      border-color: var(--gold);
      cursor: default;
      user-select: none;
    }

    /* ---------- SOLD OUT styles (no need to edit; just add the class) ---------- */
    /* Whole release: <article class="release sold-out"> */
    .release.sold-out .button {
      background: var(--sold-out); border-color: var(--sold-out);
      color: var(--muted); pointer-events: none; cursor: default;
      font-size: 0;                    /* hides the original button text...   */
    }
    .release.sold-out .button::after { content: "Sold Out"; font-size: 14px; letter-spacing: .3em; } /* ...and shows this */
    .release.sold-out .release-title::after {
      content: "Sold Out";
      display: inline-block; vertical-align: middle;
      margin-left: 18px; padding: 4px 10px 3px 12px;
      border: 1px solid var(--muted); color: var(--muted);
      font-size: 11px; letter-spacing: .3em;
    }
    .release.sold-out .cover, .release.sold-out .ed-thumb { opacity: .55; }
    .release.sold-out .small-note { display: none; }
    .release.sold-out .ed-price { color: var(--muted); }
    /* Single edition: <li class="edition sold-out"> */
    .edition.sold-out .ed-price { color: var(--muted); text-decoration: line-through; }
    .edition.sold-out .ed-thumb { opacity: .45; }
    .edition.sold-out .ed-note::after { content: " · Sold out"; color: var(--gold); font-style: normal; }

    /* ---------- FOOTER ---------- */
    footer { border-top: 1px solid var(--line); text-align: center; padding: 48px 0 56px; color: var(--muted); font-size: 14px; }
    footer .mini-logo { width: 54px; margin: 0 auto 22px; opacity: .85; }
    footer p { margin: 6px 0; letter-spacing: .12em; }

    /* ---------- MOBILE (screens narrower than 760px) ---------- */
    @media (max-width: 760px) {
      body { font-size: 17px; }
      .wrap { padding: 0 22px; }
      /* header stacks: logo centred above the name; woodcut art hidden on small screens */
      .hero { padding: 48px 0 44px; }
      .hero .wrap { flex-direction: column; gap: 30px; text-align: center; }
      .hero .logo { height: 230px; }
      .wordmark { align-items: center; }
      .wordmark .wm-big { margin-right: -.36em; }     /* keeps spaced letters centred */
      .wordmark .wm-small { margin-right: -1.12em; }
      .rule { margin: 24px auto 0; }
      .hero-art { display: none; }
      .release { padding: 56px 0 64px; }
      .eyebrow { margin-bottom: 36px; }
      .release-grid { grid-template-columns: 1fr; gap: 40px; }
      .release-info { text-align: center; }
      .release-blurb { font-size: 16px; margin-top: -8px; }
      .edition { grid-template-columns: 84px 1fr; column-gap: 14px; row-gap: 6px; text-align: left; }
      .ed-thumb { width: 84px; height: 57px; }
      .ed-name { font-size: 12px; letter-spacing: .16em; }
      .ed-note { font-size: 14px; }
      .ed-price { font-size: 18px; }
      .button { display: block; padding: 19px 20px 18px; text-align: center; }
      .release.sold-out .release-title::after { display: table; margin: 14px auto 0; }
    }
  

    /* ---- DRAFT ONLY additions (nav, policy pages, buy buttons, consent) ---- */
    .site-nav {
      border-bottom: 1px solid var(--line);
      padding: 14px 0;
    }
    .site-nav .wrap {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 8px 28px;
      flex-wrap: wrap;
    }
    .site-nav a {
      font-size: 12px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--muted);
    }
    .site-nav a:hover { color: var(--gold-light); }
    .site-nav a[aria-current="page"] { color: var(--gold); }

    /* price + Coming Soon / Buy sit on a second row so long labels don't squeeze titles */
    .ed-buy-col { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 14px; }
    .ed-buy {
      display: inline-block; font-family: var(--font); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
      color: var(--gold-light); border: 1px solid var(--gold); background: rgba(163,143,44,.10);
      padding: 7px 10px 6px 14px; line-height: 1; transition: background .2s, color .2s, opacity .2s;
      text-decoration: none;
    }
    .ed-buy:hover { background: var(--gold); color: #000; }
    .ed-buy[aria-disabled="true"], .ed-buy.disabled {
      opacity: .38; pointer-events: none; cursor: not-allowed; background: transparent; color: var(--muted);
      border-color: var(--sold-out);
    }
    .ed-buy.coming-soon,
    .ed-buy.coming-soon:hover {
      opacity: 1;
      pointer-events: none;
      cursor: default;
      user-select: none;
      background: rgba(163,143,44,.10);
      color: var(--gold-light);
      border-color: var(--gold);
      font-size: 9px;
      letter-spacing: .12em;
      padding: 6px 8px 5px 9px;
      white-space: nowrap;
    }
    .edition.sold-out .ed-buy, .release.sold-out .ed-buy { display: none; }

    .consent {
      margin: 0 0 28px;
      padding: 18px 18px 16px;
      border: 1px solid var(--gold);
      background: rgba(163,143,44,.08);
    }
    .consent-row {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      text-align: left;
    }
    .consent input[type="checkbox"] {
      width: 22px; height: 22px; margin-top: 2px; flex: none;
      accent-color: #a38f2c; cursor: pointer;
    }
    .consent label {
      color: var(--text);
      font-size: 16px;
      line-height: 1.5;
      cursor: pointer;
    }
    .consent .hint {
      display: block;
      color: var(--muted);
      font-size: 13px;
      margin-top: 8px;
      letter-spacing: 0;
      text-transform: none;
    }
    .page-main { padding: 56px 0 80px; }
    .page-main h1.page-title {
      font-size: clamp(28px, 4vw, 40px);
      letter-spacing: .22em;
      margin-bottom: 12px;
    }
    .page-main .lede { color: var(--muted); margin: 0 0 36px; }
    .page-main h2 {
      font-size: 15px;
      letter-spacing: .28em;
      color: var(--gold);
      margin: 36px 0 12px;
    }
    .nowrap { white-space: nowrap; }
    .about-headline {
      font-weight: 700;
      font-size: clamp(32px, 5.6vw, 54px);
      line-height: 1.15;
      letter-spacing: 0.01em;
      text-transform: none;
      color: var(--text);
      margin: 0 0 28px;
      max-width: 720px;
    }
    .page-main p, .page-main li { max-width: 720px; }
    .page-main p { margin: 0 0 1em; }
    .page-main ul { margin: 0 0 1.2em; padding-left: 1.2em; }
    .page-main li { margin: 0 0 .45em; }
    .page-hero-mini { padding: 28px 0 8px; border-bottom: 1px solid var(--line); }
    .page-hero-mini .wrap {
      display: flex; align-items: center; gap: 18px;
    }
    .page-hero-mini .logo { height: 64px; width: auto; }
    .page-hero-mini .wordmark { font-size: 22px; }
    .page-hero-mini .wm-small { font-size: .4em; letter-spacing: 1.12em; margin-top: .45em; }
    .page-hero-mini .wm-big { letter-spacing: .36em; }
    .page-hero-mini a.home-link { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 18px; }
    .page-hero-mini a.home-link:hover { color: var(--gold-light); }

    footer .foot-links { margin-top: 10px; }
    footer .foot-links a { margin: 0 10px; letter-spacing: .12em; }

    @media (max-width: 760px) {
      .site-nav .wrap { justify-content: center; }
      .consent { margin-left: -4px; margin-right: -4px; }
      .ed-buy-col { align-items: center; }
      .page-hero-mini .logo { height: 52px; }
    }

    /* ---------- Used & Rare nav dropdown and listing pages ---------- */
    .site-nav { position: relative; z-index: 40; }
    .nav-drop {
      position: relative;
    }
    .nav-drop > summary {
      font-size: 12px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--muted);
      cursor: pointer;
      list-style: none;
      line-height: inherit;
    }
    .nav-drop > summary::-webkit-details-marker,
    .nav-drop > summary::marker { display: none; content: ""; }
    .nav-drop > summary::after {
      content: "";
      display: inline-block;
      width: 0;
      height: 0;
      margin-left: 7px;
      margin-bottom: 1px;
      border-left: 3.5px solid transparent;
      border-right: 3.5px solid transparent;
      border-top: 4px solid currentColor;
      vertical-align: middle;
      opacity: .7;
    }
    .nav-drop > summary:hover,
    .nav-drop:hover > summary,
    .nav-drop[open] > summary { color: var(--gold-light); }
    .nav-drop-current > summary,
    .nav-drop > summary[aria-current="page"] { color: var(--gold); }
    .nav-drop > summary:focus { outline: none; }
    .nav-drop > summary:focus-visible {
      color: var(--gold-light);
      outline: 1px solid var(--gold);
      outline-offset: 4px;
    }

    .nav-drop-menu {
      display: none;
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      min-width: 168px;
      margin: 0;
      padding: 8px 0;
      list-style: none;
      background: var(--panel);
      border: 1px solid var(--line);
      box-shadow: 0 16px 32px rgba(0,0,0,.45);
      z-index: 50;
    }
    .nav-drop-menu::before {
      content: "";
      position: absolute;
      top: -10px;
      left: 0;
      right: 0;
      height: 10px;
    }
    .nav-drop-menu li { margin: 0; }
    .nav-drop-menu a {
      display: block;
      padding: 9px 18px 8px;
      font-size: 12px;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--muted);
      white-space: nowrap;
    }
    .nav-drop-menu a:hover,
    .nav-drop-menu a:focus-visible { color: var(--gold-light); }
    .nav-drop-menu a[aria-current="page"] { color: var(--gold); }

    /* Desktop: open on hover. Keyboard and mobile tap use the native
       details/summary toggle (no JavaScript). */
    @media (hover: hover) and (pointer: fine) {
      .nav-drop:hover > .nav-drop-menu { display: block; }
    }
    .nav-drop[open] > .nav-drop-menu { display: block; }

    /* Empty product grid, ready for future used/rare vinyl and shirts */
    .product-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 32px 28px;
      margin-top: 8px;
    }

    /* Landing-page choices for Metal / Rock */
    .used-rare-choices {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 280px));
      gap: 20px;
      margin-top: 12px;
    }
    .used-rare-choice {
      display: block;
      padding: 28px 24px 24px;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--text);
      text-decoration: none;
      transition: border-color .2s, color .2s;
    }
    .used-rare-choice:hover { border-color: var(--gold); color: var(--gold-light); }
    .used-rare-choice-label {
      display: block;
      font-size: 15px;
      letter-spacing: .28em;
      text-transform: uppercase;
      color: var(--gold);
    }
    .used-rare-choice:hover .used-rare-choice-label { color: var(--gold-light); }
    .used-rare-choice-note {
      display: block;
      margin-top: 10px;
      color: var(--muted);
      font-size: 15px;
      font-style: italic;
      letter-spacing: 0;
      text-transform: none;
    }

    @media (max-width: 760px) {
      /* Tighter gaps so the extra item wraps more cleanly. */
      .site-nav .wrap { gap: 10px 16px; }
      .site-nav a,
      .nav-drop > summary { letter-spacing: .16em; }
      /* Position the open menu against the whole nav bar, not the trigger,
         so it sits below Privacy instead of covering it. */
      .nav-drop { position: static; }
      .nav-drop-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: calc(100% + 2px);
        min-width: 148px;
        text-align: center;
      }
      .used-rare-choices {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
      }
    }
