/* Old Town Sound — site styles */

:root {
  --paper: #f7f4ee;
  --card: #ffffff;
  --ink: #1f1c19;
  --muted: #6b645a;
  --line: #ddd6c9;
  --accent: #920000;
  --accent-dark: #6e0000;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }

/* Header */

.site-header { border-bottom: 1px solid var(--line); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { height: 72px; width: auto; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
/* The logo already spells out the name; the text is only a fallback. */
.brand img + .brand-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

/* Sections */

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }

.hero { padding: 64px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero img,
.photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9e4da;
  border-radius: 2px;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

/* What we carry */

.shop-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  align-items: center;
}
.photo-tall { aspect-ratio: 3 / 4; }

.carry {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.carry li {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.carry strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.carry span { color: var(--muted); font-size: 0.95rem; }

/* Visit */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.visit-grid h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
address { font-style: normal; }

/* Jukebox teaser on the home page */

.teaser {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 56px;
  align-items: center;
}
.teaser-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.teaser-photos img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e9e4da;
  border-radius: 2px;
}
.teaser-photos a { display: block; }
.teaser-photos a:nth-child(2) { margin-top: 28px; }

/* Jukeboxes */

.page-head { padding: 64px 0 40px; }

.jukes { padding: 0 0 72px; border-top: 0 !important; }

.juke-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}

.juke {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.juke-photo { position: relative; }
.juke-photo > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #e9e4da;
  border-radius: 2px 2px 0 0;
}
.thumbs {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.thumbs button {
  width: 48px;
  height: 64px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 2px;
  background: none;
  cursor: pointer;
  opacity: 0.75;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button:hover,
.thumbs button[aria-pressed="true"] { opacity: 1; }
.thumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.juke-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.juke h2 { font-size: 1.5rem; margin-bottom: 0.2em; }
.price {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.features {
  margin: 0 0 1.5rem;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 0.95rem;
}
.features li { margin-bottom: 0.2em; }
.juke .btn { margin-top: auto; text-align: center; }

.note {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 2px;
}
.note p:last-child { margin-bottom: 0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* Small screens */

@media (max-width: 900px) {
  .juke-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  section { padding: 52px 0; }
  .hero { padding: 40px 0 52px; }
  .hero-grid,
  .shop-grid,
  .teaser { grid-template-columns: 1fr; gap: 28px; }
  .shop-grid .photo-tall { aspect-ratio: 4 / 3; }
  .visit-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-head { padding: 44px 0 28px; }
  .site-header .wrap { justify-content: center; text-align: center; }
  .nav { justify-content: center; }
  .brand img { height: 64px; }
}

@media (max-width: 600px) {
  .juke-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 440px) {
  .carry { grid-template-columns: 1fr; }
  .nav { gap: 4px 16px; }
}
