/* Timeless Body Arts. Keeps the look of the Weebly site: Montserrat on white, charcoal band, framed artist cards. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fff;
  --ink: #2b2b2b;
  --ink-soft: #666;
  --rule: #dcdcdc;
  --band: #383838;
  --band-ink: #d9d9d9;
  --alert: #7a2e2e;
  --measure: 44rem;
  --wide: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-color: #999; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid #4a7ab8; outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 0.5rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 2em 0 0.6em; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin-top: 0; text-align: center; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h2.small { font-size: 1rem; margin: 1.6rem 0 0.4rem; }
h2.rule {
  text-align: center; font-weight: 400; color: #888; font-size: 1.6rem;
  border-bottom: 1px solid var(--rule); padding-bottom: 1rem; margin: 3.5rem 0 2rem;
}
p { margin: 0 0 1em; }

/* Header */
.site-header {
  max-width: var(--wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.5rem 1rem;
}
.brand img { width: 150px; }
.site-nav ul, .sub-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
}
.site-nav a {
  font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.12em;
  text-decoration: none; padding: 0.3rem 0.2rem; border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.sub-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sub-nav ul { max-width: var(--wide); margin: 0 auto; padding: 0.7rem 1rem; justify-content: center; gap: 0.4rem 1.6rem; }
.sub-nav a { font-size: 0.875rem; text-decoration: none; color: var(--ink-soft); }
.sub-nav a:hover { color: var(--ink); }
.sub-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

main { padding: 3rem 1rem 4.5rem; }

/* Buttons */
.button {
  display: inline-block; padding: 0.7rem 1.6rem;
  border: 1px solid var(--ink); color: var(--ink);
  font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  text-decoration: none;
}
.button:hover { background: var(--ink); color: #fff; }
.button.dark { background: var(--ink); color: #fff; }
.button.dark:hover { background: #000; }
.button.light { border-color: var(--band-ink); color: #fff; }
.button.light:hover { background: #fff; color: var(--band); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* Home */
.intro { text-align: center; max-width: 36rem; margin: 0 auto 3rem; }
.lede { font-weight: 600; font-size: 1rem; text-align: center; }

.band {
  margin: 0 -1rem; padding: 3.5rem 1rem 4rem;
  background: var(--band); color: var(--band-ink);
}
.band h2 {
  text-align: center; color: var(--band-ink);
  font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 700;
  margin: 0 auto 2.5rem; max-width: var(--wide);
  border-top: 1px solid #4a4a4a; border-bottom: 1px solid #4a4a4a; padding: 1.2rem 0;
}
.split {
  max-width: 64rem; margin: 0 auto;
  display: grid; gap: 3rem; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.band .split { text-align: center; }
.band h3 { font-size: 2rem; font-weight: 700; color: #fff; margin: 0 0 0.3rem; }
.band .where { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.3rem; }
.band .big { font-size: 1.2rem; }
.band .hours { margin: 0 auto 1rem; }

.about {
  max-width: var(--wide); margin: 3.5rem auto 0;
  border-top: 1px solid var(--rule); padding-top: 1.5rem;
  display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center; font-size: 0.9375rem;
}
.about p { margin: 0; }

.artist-cards {
  list-style: none; padding: 0; margin: 3rem auto 0; max-width: var(--wide);
  display: grid; gap: 1.5rem; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.artist-cards a { display: block; border: 1px solid var(--rule); padding: 5px; background: #fff; }
.artist-cards a:hover { border-color: var(--ink); }
.artist-cards img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.closer { margin-top: 3rem; }
.center { text-align: center; }
.narrow { max-width: 40rem; margin-left: auto; margin-right: auto; }

/* Hours table */
.hours { border-collapse: collapse; font-size: 0.9375rem; margin-bottom: 1rem; }
.hours th { text-align: left; font-weight: 400; padding: 0.1rem 1.4rem 0.1rem 0; }
.hours td { padding: 0.1rem 0; }

/* Wide pages (sections, artists, contact) */
.wide { max-width: var(--wide); margin: 0 auto; }
.three-col {
  display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center; color: var(--ink-soft); margin-top: 2rem;
}
.three-col p { margin: 0; }
.aftercare-teaser {
  display: grid; gap: 2.5rem; align-items: center; max-width: 52rem; margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.aftercare-teaser img { width: 100%; }
.aftercare-teaser .button { min-width: 16rem; text-align: center; }

.artist-head {
  display: grid; gap: 3rem; align-items: start; margin-top: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.portrait { width: 100%; }
.artist-body { color: #444; }

.gallery {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
}
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery + .center { margin-top: 2rem; }

.piercing-intro {
  display: grid; gap: 3rem; align-items: start; margin-top: 2rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}
.hours-card { border: 1px solid var(--rule); padding: 0.5rem 1.5rem 1rem; }
.jewelry-row {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: 0.75rem; grid-template-columns: repeat(4, 1fr);
}
.jewelry-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.link-grid {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.link-grid a {
  display: block; height: 100%; padding: 1.2rem 1.4rem; text-decoration: none;
  border: 1px solid var(--rule);
}
.link-grid a:hover { border-color: var(--ink); }
.link-grid strong { display: block; font-size: 1.05rem; }
.link-grid span { color: var(--ink-soft); font-size: 0.9rem; }

.contact .split { max-width: none; margin-top: 2rem; }

/* Text pages */
.page { max-width: var(--measure); margin: 0 auto; }
.page ul, .page ol { padding-left: 1.3rem; }
.page li { margin-bottom: 0.35em; }
.note { font-size: 0.9rem; color: var(--ink-soft); }

details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary {
  cursor: pointer; list-style: none; font-weight: 600;
  padding: 0.9rem 2rem 0.9rem 0; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-size: 1.3rem; font-weight: 300; }
details[open] > summary::after { content: "–"; }
details[open] { padding-bottom: 1rem; }

.page table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; margin: 1rem 0 1.5rem; }
.page table th, .page table td { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--rule); }
.page table th { text-align: left; }

.alert { border-left: 4px solid var(--alert); padding: 0.75rem 1rem; background: #f6eeee; color: var(--alert); }

.booking { margin-top: 1.5rem; }
.booking-card { border: 1px solid var(--rule); padding: 1.75rem 1.75rem 1.25rem; text-align: center; }
.booking-card .button { background: var(--ink); color: #fff; font-size: 0.9375rem; padding: 0.95rem 2.5rem; }
.booking-card .button:hover { background: #000; }
.booking-embed { min-height: 30rem; }
.booking-fallback { font-size: 0.9rem; margin-top: 0.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem 1rem 2rem; font-size: 0.875rem; }
.footer-grid {
  max-width: var(--wide); margin: 0 auto; text-align: center;
  display: grid; gap: 2rem; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.site-footer h2 { font-size: 0.9375rem; margin: 0 0 0.8rem; }
.site-footer .hours { margin: 0 auto 0.8rem; font-size: 0.875rem; }
.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
.social { display: flex; justify-content: center; gap: 1.2rem; }
.fine { max-width: var(--wide); margin: 2.5rem auto 0; font-size: 0.75rem; font-style: italic; color: var(--ink-soft); }

@media (max-width: 900px) {
  .artist-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { flex-direction: column; gap: 1rem; }
  .site-nav ul { justify-content: center; gap: 0.3rem 1.3rem; }
  .split, .about, .three-col, .aftercare-teaser, .artist-head, .piercing-intro, .link-grid, .footer-grid { grid-template-columns: 1fr; }
  .artist-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
  .jewelry-row { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .page table { font-size: 0.85rem; }
  .page table th, .page table td { padding: 0.4rem 0.3rem; }
}
