@charset "utf-8";
/* ==========================================================================
   The Country Music Highway — site.css
   Hand-written. No framework, no CDN. Palette and type sampled from the
   original NetObjects Fusion 4.0.1 site; see design-brief.md.
   ========================================================================== */

/* --- self-hosted type. Goudy Old Style -> EB Garamond (see brief). --------
   Variable font: one file covers 400-800. Self-hosted because CLAUDE.md
   forbids CDN dependencies. */
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/ebgaramond-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('fonts/ebgaramond-latin-italic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

/* --- palette ------------------------------------------------------------ */
:root {
  /* sampled from the original artwork and inline attributes */
  --ink:            #000000;   /* BODY TEXT on all 8 pages */
  --green:          #31490F;   /* wordmark + satellite map in tcmh2.jpg */
  --red:            #F6050B;   /* homepage accent bar */
  --cream:          #FFFFCC;   /* MusicBackground.JPG, and the GIF transparent key */
  --white:          #FFFFFF;   /* BODY BGCOLOR */
  --store-blue:     #6091D3;   /* store category button letterforms */
  --store-heading:  #0033FF;   /* general_store.html inline FONT COLOR */
  --link:           #0000FF;   /* BODY LINK */
  --link-visited:   #800080;   /* BODY VLINK */

  --rule:           #31490F;
  --muted:          #4a4a3c;

  /* legacy FONT SIZE -> rem, matched to rendered size (see brief D6) */
  --fs-small: 0.9rem;   /* SIZE="-1" */
  --fs-base:  1rem;
  --fs-plus2: 1.5rem;   /* SIZE="+2" */
  --fs-plus3: 2rem;     /* SIZE="+3" */

  --serif: 'EB Garamond', Georgia, 'Times New Roman', Times, serif;

  /* the original layout widths, kept so line lengths match the 2004 site */
  --measure: 34rem;
  --indent:  2.75rem;
}

/* No prefers-color-scheme block. The banner and staff-button GIFs are black
   artwork keyed transparent to cream; they break on any dark ground, and the
   original has a strong light identity. See brief D7. */

/* --- reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 1rem 3rem;
  /* The original tile is not flat: 14 luminance levels (#F9F9C7-#FFFFCD) that
     tile into a faint mottle, clearly visible side by side with a flat fill.
     Hex is the fallback underneath, so the page is right if the JPEG fails. */
  background: var(--cream) url('../images/MusicBackground.JPG') repeat top left;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.45;
}

/* index.html and general_store.html declared no background image */
body.paper-white { background: var(--white); background-image: none; }

img { max-width: 100%; height: auto; border: 0; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:visited { color: var(--link-visited); }
a:hover, a:focus-visible { text-decoration-thickness: 2px; }

/* real focus states -- the original had none */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

:target { scroll-margin-top: 1rem; }

/* skip link */
.skip {
  position: absolute; left: -9999px;
  background: var(--white); color: var(--ink);
  padding: 0.5rem 0.85rem; border: 2px solid var(--green); z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* --- page frame ---------------------------------------------------------
   The original sat flush left with a spacer-GIF indent, not centred. Kept. */
.page {
  max-width: var(--measure);
  margin: 0;
  padding-left: var(--indent);
  padding-top: 1.25rem;
}
.page--wide { max-width: 40rem; }

/* --- flourish banner ----------------------------------------------------
   Original: one 350x32 GIF per section, a serif label between two
   calligraphic ornaments. Reused as-is. */
.banner { margin: 0 0 0.35rem; }
.banner img { display: block; }

/* Composed banner, for pages the original never had a GIF for (brief D12).
   Ornaments are cropped from Purpose_NAltMusicBanner.gif. */
.banner--composed {
  display: flex; align-items: center; gap: 0.5rem;
  max-width: 350px;
}
.banner--composed img { flex: 0 0 auto; width: 68px; max-width: 68px; }
.banner--composed .banner-text {
  font-size: 1.35rem; font-weight: 400; margin: 0;
  white-space: nowrap; color: var(--ink);
}

/* --- staff-button nav ---------------------------------------------------
   The signature element: each item is a fragment of musical staff, 100x60.
   Normalized to sit above the content on every page (brief D9). */
.staffnav { margin: 0.5rem 0 1.1rem; }
.staffnav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0;
}
.staffnav li { margin: 0; }
.staffnav a {
  display: block; line-height: 0;
  border-bottom: 4px solid transparent;   /* uniform current-page signal */
  text-decoration: none;
}
.staffnav a img { display: block; width: 100px; height: 60px; }
.staffnav a[aria-current='page'] { border-bottom-color: var(--green); }
.staffnav a:hover, .staffnav a:focus-visible { border-bottom-color: var(--red); }

/* --- bracketed text nav (footer) ---------------------------------------
   Period-correct [Home] [Purpose] ... Keep the brackets. */
.textnav { margin: 1.75rem 0 0; padding-top: 0.75rem; }
.textnav p { margin: 0; }
.textnav .b { color: var(--muted); }

/* --- content ------------------------------------------------------------ */
main h1, main h2, main h3 { font-weight: 700; line-height: 1.25; }

/* h1 is visually hidden on pages whose title is carried by the banner GIF,
   so the document still has one real heading. */
.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.prose { padding: 0 0.45rem; }        /* stands in for CELLPADDING=7 */
.prose p { margin: 0 0 1rem; }
.prose ol { margin: 0 0 1rem; padding-left: 1.6rem; }
.prose ol li { margin: 0 0 0.4rem; }
.prose .small { font-size: var(--fs-small); }

.centered { text-align: center; }

.subhead {
  text-align: center; font-weight: 700;
  margin: 1.75rem 0 1rem; font-size: 1.15rem;
}
.subhead i { font-style: italic; }

.toll-title {
  font-size: var(--fs-plus3); font-weight: 700; font-style: italic;
  margin: 2rem 0 0.75rem; line-height: 1.15;
}

.package { margin: 0 0 1.15rem; }
.package .head  { margin: 0; }
.package .name  { font-weight: 700; }
.package .price { font-variant-numeric: tabular-nums; }
/* tight italic run of lines, as the original's <BR>-separated block */
.package .detail {
  margin: 0; font-size: var(--fs-small); font-style: italic; line-height: 1.35;
}

.note { font-size: var(--fs-small); }

/* --- homepage splash ---------------------------------------------------- */
/* index.html declared TOPMARGIN=0 LEFTMARGIN=0 -- flush to the corner. */
body.paper-white.splash-page { padding-left: 0; padding-right: 0; }

.splash {
  position: relative;
  max-width: 576px;
  margin: 0;
  line-height: 0;
}
.splash > img { display: block; width: 100%; }

/* The original used a client-side USEMAP. Replaced with real anchors laid
   over the artwork in percentage units so they scale (brief D2). */
.splash .hotspot {
  position: absolute;
  display: block;
  border: 2px solid transparent;
  border-radius: 2px;
  text-indent: -9999px;       /* label stays for AT, art carries the visual */
  overflow: hidden;
}
.splash .hotspot:hover, .splash .hotspot:focus-visible {
  border-color: var(--red);
  background: rgba(246, 5, 11, 0.08);
}
/* coords from index.html's MAP, as % of 576x453 */
.splash .hs-purpose { left: 37.50%; top: 91.39%; width: 16.84%; height: 5.52%; }
.splash .hs-store   { left: 55.03%; top: 91.17%; width: 16.84%; height: 5.30%; }
.splash .hs-members { left: 73.61%; top: 91.39%; width: 15.28%; height: 5.30%; }

/* Below 560px the in-image nav strip gets too small to hit reliably, so a
   real text nav appears underneath it. */
.splash-nav { display: none; }
@media (max-width: 560px) {
  .splash .hotspot { display: none; }
  .splash-nav { display: block; margin-top: 1rem; }
}

/* Home page footer nav: present for discoverability (privacy policy), but
   deliberately understated so the splash artwork stays the page. */
.splash-footer { padding-top: 0.25rem; padding-left: 1.5rem; }
.splash-footer .textnav { margin-top: 0.5rem; font-size: 0.9rem; }

/* --- general store ----------------------------------------------------- */
.store-lockup { max-width: 486px; margin: 0 0 1rem; }
.store-welcome {
  text-align: center; color: var(--store-heading);
  font-size: var(--fs-plus2); font-weight: 700;
  margin: 0 0 0.35rem;
}
.store-blurb { text-align: center; margin: 0 0 2rem; }

/* Four category buttons. Measured off the original render: a single
   horizontal row starting ~36px in, ~35px gaps, each button sitting exactly
   1px lower than the one before it -- a NetObjects rowspan artifact, but it
   is what the page looked like, so the 1px drift is reproduced rather than
   flattened or exaggerated into a diagonal. */
.store-cats {
  list-style: none; margin: 0 0 2.5rem; padding: 0 0 0 2.25rem;
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: 0.75rem 2.2rem;
}
.store-cats li { margin: 0; }
.store-cats a { display: block; line-height: 0; }
.store-cats img { display: block; }
.store-cats li:nth-child(1) { padding-top: 0; }
.store-cats li:nth-child(2) { padding-top: 1px; }
.store-cats li:nth-child(3) { padding-top: 2px; }
.store-cats li:nth-child(4) { padding-top: 3px; }
@media (max-width: 620px) {
  .store-cats { padding-left: 0; gap: 1rem 1.5rem; }
}

.store-footer { text-align: center; font-size: var(--fs-small); }
.store-footer .copyright { display: block; margin-top: 0.5rem; }

/* --- members / genre pages --------------------------------------------- */
.section-title { font-size: var(--fs-plus2); font-weight: 400; margin: 0 0 0.6rem; }
.artist-list { list-style: none; margin: 0; padding: 0; }
.artist-list li { margin: 0 0 0.5rem; }
.empty-state { font-style: italic; color: var(--muted); margin: 0.5rem 0 0; }

/* --- artist page ------------------------------------------------------- */
.artist-name {
  color: var(--green);
  font-size: 2.1rem; font-weight: 700;
  margin: 0 0 0.25rem; line-height: 1.1;
}
.artist-portrait {
  float: right; margin: 0.35rem 0 0.75rem 1.25rem;
  max-width: 250px;
}
.article-kicker {
  text-align: center; color: var(--green);
  font-size: var(--fs-plus2); font-weight: 400;
  margin: 1rem 0 0.15rem; line-height: 1.25;
}
.article-sub   { text-align: center; margin: 0; }
.article-credit {
  text-align: center; font-size: var(--fs-small);
  color: var(--muted); margin: 0 0 1.25rem;
}
.article-byline { font-weight: 700; font-size: var(--fs-small); margin: 0 0 1rem; }
.article-body { font-size: var(--fs-small); }
.article-body p { margin: 0 0 0.9rem; }

.products { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.products li {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.5rem 0; border-bottom: 1px solid rgba(49,73,15,0.18);
}
.products .item { flex: 1 1 14rem; }
.products .price { font-weight: 700; font-variant-numeric: tabular-nums; }
.products .ship { font-size: var(--fs-small); color: var(--muted); }

.contact-block { margin: 1.25rem 0 0; }
.contact-block dt { font-weight: 700; margin-top: 0.6rem; }
.contact-block dd { margin: 0.1rem 0 0; }
.contact-block address { font-style: normal; }

hr.rule {
  border: 0; height: 1px; background: var(--rule); opacity: 0.35;
  margin: 2rem 0 1.5rem;
}

/* --- contact / mailto callout ------------------------------------------ */
.contact-cta {
  margin: 2rem 0 0; padding: 0.9rem 1rem;
  background: var(--white);
  border-left: 4px solid var(--green);
}
.contact-cta p { margin: 0; }
body.paper-white .contact-cta { background: var(--cream); }

/* --- 404 --------------------------------------------------------------- */
.notfound { padding-top: 2rem; }
.notfound h1 { font-size: var(--fs-plus3); margin: 0 0 0.75rem; }

/* --- responsive -------------------------------------------------------- */
@media (max-width: 700px) {
  :root { --indent: 0.5rem; }
  .artist-portrait { float: none; margin: 0 0 1rem; max-width: 100%; }
}
@media (max-width: 420px) {
  body { font-size: 1rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .staffnav a img { width: 84px; height: 50px; }
  /* :not() is load-bearing -- .banner--composed also carries .banner, so an
     unscoped `.banner img` stretched each flourish ornament to 320px and blew
     the page out to ~780px at 360px wide. */
  .banner:not(.banner--composed) img { width: 100%; max-width: 320px; }
  .banner--composed { max-width: 100%; gap: 0.35rem; }
  .banner--composed img { width: 40px; }
  .banner--composed .banner-text { white-space: normal; font-size: 1.2rem; }
}
/* holds together down to 360px */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}

@media print {
  .staffnav, .textnav, .skip, .contact-cta { display: none; }
  body { background: #fff; }
  a { color: #000; text-decoration: underline; }
}
