/* ==========================================================================
   Black Anchor Tattoo Co. — fictional portfolio example
   Palette: near-black #0a0a0a / bone #ece5d8 / blood red #c8102e
   Type: Pirata One (blackletter display) + Archivo Narrow (hard grotesque)
   Personality: brutal, asymmetric, stamp-and-flash-sheet. Heavy rules,
   raw edges, no rounded corners, no soft shadows.
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-2: #111110;
  --bone: #ece5d8;
  --bone-dim: #c9c0b0;
  --red: #c8102e;        /* borders, rules, fills, large display only */
  --red-bright: #ff5a4d; /* small accent text — contrast-safe on near-black */
  --display: "Pirata One", "UnifrakturCook", cursive;
  --grotesque: "Archivo Narrow", "Oswald", Impact, sans-serif;
  --rule: 4px solid var(--bone);
  --rule-red: 4px solid var(--red);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background-color: var(--ink);
  /* faint grit texture, pure CSS */
  background-image:
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(236, 229, 216, 0.018) 3px 4px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(236, 229, 216, 0.012) 7px 8px);
  color: var(--bone);
  font-family: var(--grotesque);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bone); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-bright); }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
}

::selection { background: var(--red); color: var(--bone); }

.red { color: var(--red-bright); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Skip link ---------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 0; top: 0;
  transform: translateY(-150%);
  background: var(--red);
  color: var(--bone);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

/* --- Header / nav -------------------------------------------------------- */
.site-header {
  border-bottom: var(--rule-red);
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}

.masthead {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-anchor { color: var(--red-bright); flex: none; }
.brand-name {
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  border: 2px solid transparent;
}
.site-nav a:hover { border-color: var(--bone); color: var(--bone); }
.site-nav .nav-cta {
  border: 2px solid var(--red);
  color: var(--red-bright);
}
.site-nav .nav-cta:hover { background: var(--red); color: var(--bone); }

/* The toggle never renders at desktop widths — display:none here is
   unconditional, and only the mobile media query below (plus html.js)
   ever overrides it. No-JS visitors never see the button at all. */
.nav-toggle {
  display: none;
  font-family: var(--grotesque);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone);
  background: none;
  border: 2px solid var(--bone);
  padding: 0.5rem 0.9rem;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--red); color: var(--red-bright); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* Burger morphs to an ✕ while the blackout menu is open. */
.nav-toggle[aria-expanded="true"] { border-color: var(--red); color: var(--red-bright); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .nav-toggle-bars { transition: background-color 0.15s ease; }
  .nav-toggle-bars::before,
  .nav-toggle-bars::after { transition: top 0.2s ease, transform 0.2s ease; }
}

/* script.js adds .js to <html>; only then does the mobile menu become a
   full-screen blackout overlay. Without JS the nav simply stays visible
   as a wrapped link list and no button appears. */
@media (max-width: 47.99em) {
  html.js .nav-toggle { display: inline-flex; }

  html.js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 40; /* below the sticky header so the toggle stays reachable */
    background: rgba(10, 10, 10, 0.97);
    padding: 6.5rem 1.5rem 2.5rem;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
  }
  html.js .site-nav.open { visibility: visible; opacity: 1; }

  html.js .site-nav ul {
    flex-direction: column;
    gap: 0;
    max-width: 24rem;
    margin: 0 auto;
    border-top: var(--rule-red);
  }
  html.js .site-nav li { opacity: 0; }
  html.js .site-nav.open li { opacity: 1; }

  html.js .site-nav a {
    font-family: var(--display);
    font-weight: 400;
    font-size: 2.1rem;
    line-height: 1.1;
    text-transform: none;
    letter-spacing: 0.03em;
    padding: 0.7rem 0.5rem;
    border: none;
    border-bottom: 2px solid rgba(236, 229, 216, 0.25);
  }
  html.js .site-nav a:hover { color: var(--red-bright); border-bottom-color: var(--red); }
  html.js .site-nav a:active { background: var(--red); color: var(--bone); }
  html.js .site-nav .nav-cta { color: var(--red-bright); }

  /* Links stamp in: a small staggered rise + fade. Reduced motion gets an
     instant show/hide — no transforms, no transitions. */
  @media (prefers-reduced-motion: no-preference) {
    html.js .site-nav { transition: opacity 0.22s ease, visibility 0s linear 0.22s; }
    html.js .site-nav.open { transition: opacity 0.22s ease, visibility 0s; }
    html.js .site-nav li {
      transform: translateY(0.9rem);
      transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.24s ease;
    }
    html.js .site-nav.open li { transform: none; }
    html.js .site-nav.open li:nth-child(1) { transition-delay: 0.04s; }
    html.js .site-nav.open li:nth-child(2) { transition-delay: 0.09s; }
    html.js .site-nav.open li:nth-child(3) { transition-delay: 0.14s; }
    html.js .site-nav.open li:nth-child(4) { transition-delay: 0.19s; }
    html.js .site-nav.open li:nth-child(5) { transition-delay: 0.24s; }
    html.js .site-nav.open li:nth-child(6) { transition-delay: 0.29s; }
    html.js .site-nav.open li:nth-child(7) { transition-delay: 0.34s; }
  }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 2rem;
  align-items: center;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bone-dim);
  border-left: var(--rule-red);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-lede {
  font-size: 1.25rem;
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.hero-facts {
  border-top: 2px solid var(--bone);
  border-bottom: 2px solid var(--bone);
  padding: 0.9rem 0;
  margin-bottom: 2rem;
  max-width: 36rem;
}
.hero-facts p { font-size: 1rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border: 3px solid var(--red);
}
.btn-solid { background: var(--red); color: var(--bone); }
.btn-solid:hover { background: var(--ink); color: var(--red-bright); }
.btn-ghost { color: var(--bone); border-color: var(--bone); }
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); }

.hero-emblem {
  color: var(--red);
  justify-self: end;
  width: min(220px, 100%);
  border: var(--rule);
  padding: 1.5rem 1.25rem;
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(200, 16, 46, 0.06) 10px 20px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-emblem svg {
    animation: emblem-sway 7s ease-in-out infinite alternate;
    transform-origin: 50% 12%;
  }
  @keyframes emblem-sway {
    from { transform: rotate(-2.5deg); }
    to   { transform: rotate(2.5deg); }
  }
}

/* --- Ticker ----------------------------------------------------------------- */
.ticker {
  border-top: var(--rule-red);
  border-bottom: var(--rule-red);
  overflow: hidden;
  background: var(--ink-2);
  padding: 0.55rem 0;
}
.ticker p {
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.85rem;
  color: var(--bone-dim);
}
@media (prefers-reduced-motion: no-preference) {
  .ticker p { display: inline-block; animation: ticker-scroll 36s linear infinite; }
  @keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
}

/* --- Sections ------------------------------------------------------------------ */
.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.section-alt {
  max-width: none;
  background: var(--ink-2);
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.section-alt > * { max-width: 69.5rem; margin-left: auto; margin-right: auto; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  border-bottom: var(--rule);
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
}
.section-no {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--red-bright);
  border: 2px solid var(--red);
  padding: 0.15rem 0.5rem;
}
.section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
}

.section-intro {
  font-size: 1.15rem;
  max-width: 46rem;
  margin-bottom: 2.5rem;
}
.section-intro strong { color: var(--red-bright); }

.fine-rule {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bone-dim);
  font-size: 0.95rem;
  border-top: 2px solid var(--bone);
  padding-top: 1.25rem;
  max-width: 46rem;
}
.dagger { color: var(--red-bright); flex: none; }

/* --- Pricing ---------------------------------------------------------------------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border: var(--rule);
}
.price-card {
  padding: 1.75rem 1.5rem;
  border-right: 2px solid var(--bone);
  border-bottom: 2px solid var(--bone);
}
/* deliberately asymmetric: alternate cards get a heavy red top bar */
.price-card:nth-child(odd) { box-shadow: inset 0 8px 0 0 var(--red); }

.price-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.price-tag {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red-bright);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.price-tag span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bone-dim);
}
.price-card p:last-child { font-size: 0.98rem; }

/* --- Artists: flash-sheet grid ----------------------------------------------------- */
.flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.75rem;
}

.flash-card {
  position: relative;
  border: var(--rule);
  outline: 2px solid var(--bone);
  outline-offset: 5px; /* double border = flash-sheet frame */
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 16, 46, 0.12), transparent 38%),
    var(--ink);
  padding: 2.25rem 1.5rem 1.75rem;
  margin: 7px; /* room for the outline */
}
/* stagger — raw, asymmetric */
@media (min-width: 64em) {
  .flash-card:nth-child(even) { transform: translateY(1.25rem); }
}

.flash-stamp {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: var(--bone);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--bone);
  transform: rotate(3deg);
}

.flash-art {
  color: var(--bone);
  border-bottom: 2px solid var(--bone);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.flash-card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.05;
  margin-bottom: 0.25rem;
}
.flash-style {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.flash-card p:last-child { font-size: 0.98rem; }

/* --- Flash & recent work: paper flash-sheet tiles ----------------------------------- */
.flash-sheet {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 1.75rem;
}

.flash-tile {
  position: relative;
  background: var(--bone);
  color: var(--ink);
  border: var(--rule);
  outline: 2px solid var(--bone);
  outline-offset: 5px; /* same double-framed flash-sheet treatment as the artist cards */
  margin: 7px;
  padding: 1.5rem 1.1rem 1rem;
}
/* hand-pinned to the wall: slight alternating tilt */
@media (min-width: 48em) {
  .flash-tile:nth-child(3n+1) { transform: rotate(-0.6deg); }
  .flash-tile:nth-child(3n)   { transform: rotate(0.7deg); }
}

.flash-tile .tile-stamp {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--ink);
  color: var(--bone);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  padding: 0.25rem 0.6rem;
  border: 2px solid var(--red);
  transform: rotate(-2deg);
}

.tile-art {
  display: block;
  width: 100%;
  height: auto;
}

.flash-tile figcaption {
  margin-top: 0.9rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.flash-tile figcaption strong {
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.flash-tile figcaption .tile-style { color: var(--red); }

/* banner lettering inside the flash SVGs */
.flash-lettering {
  font-family: var(--grotesque);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  fill: var(--ink);
}

/* --- About --------------------------------------------------------------------------- */
.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: start;
}
.about-text p { margin-bottom: 1.1rem; max-width: 40rem; }

.about-rules {
  border: var(--rule-red);
  padding: 1.5rem;
  background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(236, 229, 216, 0.03) 12px 24px);
}
.about-rules h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--bone);
  padding-bottom: 0.4rem;
}
.about-rules ul { list-style: none; }
.about-rules li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  border-bottom: 1px solid rgba(236, 229, 216, 0.18);
}
.about-rules li:last-child { border-bottom: none; }
.about-rules li::before {
  content: "\2715"; /* ✕ */
  position: absolute;
  left: 0;
  color: var(--red-bright);
  font-weight: 700;
}

/* --- FAQ ---------------------------------------------------------------------------------- */
.faq-list { max-width: 50rem; }

.faq-item {
  border: 3px solid var(--bone);
  border-left: 10px solid var(--red);
  margin-bottom: 1rem;
  background: var(--ink);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red-bright);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item summary:hover { background: rgba(200, 16, 46, 0.08); }
.faq-item summary h3 {
  display: inline;
  font-family: var(--grotesque);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.faq-item > p {
  margin: 0 1.25rem 1.25rem;
  border-top: 2px solid rgba(236, 229, 216, 0.2);
  padding-top: 1rem;
}

/* --- Hours & location ------------------------------------------------------------------------ */
.visit-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.visit-block h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  margin-bottom: 1rem;
  border-bottom: var(--rule-red);
  display: inline-block;
  padding-bottom: 0.2rem;
}

.hours-table { width: 100%; border-collapse: collapse; border: var(--rule); }
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 2px solid rgba(236, 229, 216, 0.25);
}
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: none; }
.hours-table th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}
.hours-note {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--bone-dim);
}
.hours-note.red { color: var(--red-bright); }

.address-block { font-size: 1.1rem; margin-bottom: 1rem; line-height: 1.5; }
.visit-block p { margin-bottom: 1rem; max-width: 34rem; }

/* --- Contact ------------------------------------------------------------------------------------ */
.section-contact { border-top: var(--rule-red); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.contact-card {
  display: block;
  border: var(--rule);
  padding: 1.5rem 1.4rem;
  text-decoration: none;
  background: var(--ink-2);
}
.contact-card:hover { border-color: var(--red); }
.contact-card:hover .contact-value { color: var(--red-bright); }
.contact-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bone-dim);
  margin-bottom: 0.4rem;
}
.contact-value {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  overflow-wrap: anywhere;
  margin-bottom: 0.35rem;
}
.contact-hint { display: block; font-size: 0.9rem; color: var(--bone-dim); }

/* --- Footer --------------------------------------------------------------------------------------- */
.site-footer {
  border-top: var(--rule-red);
  background: var(--ink-2);
  margin-top: 2rem;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}
.footer-brand {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.footer-inner p { margin-bottom: 0.35rem; }
.footer-fine { color: var(--bone-dim); font-size: 0.88rem; margin-top: 1rem; }

/* --- Responsive collapses ----------------------------------------------------------------------------- */
@media (max-width: 56em) {
  .hero { grid-template-columns: 1fr; }
  .hero-emblem { justify-self: start; }
  .about-cols,
  .visit-cols { grid-template-columns: 1fr; }
}

/* Social links (fictional .example profiles) */
.social-links { display: flex; gap: 1.2rem; list-style: none; justify-content: center; padding: 0 1.5rem; margin: 1.5rem auto 0; }
.social-links a { display: inline-flex; color: inherit; opacity: 0.85; }
.social-links a:hover, .social-links a:focus-visible { opacity: 1; }
.social-links svg { width: 1.3rem; height: 1.3rem; }


/* Anchor targets clear the sticky header instead of sliding under it */
[id] {
  scroll-margin-top: 83px;
}

/* Booking never hides behind the blackout menu. */
.header-book { display: none; }

@media (max-width: 720px) {
  .header-book {
    display: inline-block;
    background: var(--blood, #b3202c);
    color: #0a0a0a;
    font-weight: 700;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    margin-right: 0.7rem;
  }
}
