/* Blue Ridge Tattoo Company.
   All colors, fonts, and sizes live here at the top, so they're easy to change in one place. */

@font-face { font-family: "Grenze Gotisch"; src: url(fonts/GrenzeGotisch-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/Barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/Barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/Barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(fonts/BarlowCondensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #0b0b0d;         /* the page: the black behind their logo */
  --ink-2: #16161b;
  --line: #2a2b33;
  --bone: #efe9dc;        /* words */
  --bone-2: #b9b3a6;      /* quieter words */
  --gold: #d6b35f;        /* their logo's gold, a touch brighter so it reads as words */
  --gold-deep: #ad9251;   /* their logo's gold, exactly */
  --pin: #4f6399;         /* their pinstripe blue */
  --stencil: #a587f2;     /* stencil purple, lifted so it reads on black */
  --brick: #8c2a2c;       /* their red brick wall */
  --head: "Grenze Gotisch", "Times New Roman", serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --cond: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
  --gutter: 16px;
  --wide: 1080px;
  --bar: 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 1.0625rem/1.5 var(--body); overflow-x: hidden; }
img, svg, canvas { display: block; }
a { color: var(--gold); text-underline-offset: .18em; }
h2 { font: 600 clamp(2.1rem, 7vw, 3.4rem)/1.05 var(--head); color: var(--bone); margin: 0 0 .5em; letter-spacing: .005em; text-wrap: balance; }
h3 { font: 600 1.45rem/1.15 var(--head); color: var(--gold); margin: 0 0 .25em; letter-spacing: .01em; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sec { padding: clamp(44px, 8vw, 88px) 0; }
.nb { white-space: nowrap; }

/* The plain links at the top */
.bar { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; justify-content: center; }
.bar nav { display: flex; gap: clamp(14px, 5vw, 34px); padding-inline: var(--gutter); }
.bar a { color: var(--bone); font: 600 1.02rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 10px 2px; }
.bar a:hover, .bar a:focus-visible { color: var(--gold); }

/* First screen: the piece fills whatever room the rest leaves */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--bar); }
.stage { position: relative; flex: 1 1 auto; min-height: calc(72vw + 130px); touch-action: pan-y; }
@media (min-width: 700px) { .stage { min-height: 420px; } }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; opacity: 0; transition: opacity .45s; }
.start { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 2; white-space: nowrap; font: 600 1.16rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #5a38b4; border: 0; border-radius: 8px; padding: 13px 18px; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); cursor: pointer; animation: ready 1.6s ease-in-out infinite; }
.start:hover, .start:focus-visible { background: #6d49cf; }
.start[hidden] { display: none; }
@keyframes ready { 50% { box-shadow: 0 4px 22px rgba(90, 56, 180, .95); } }
@media (prefers-reduced-motion: reduce) { .start { animation: none; } .stage canvas { transition: none; } }
.still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.stage-row { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; pointer-events: none; }
.stage-row > * { pointer-events: auto; }
.draft { font: 600 .84rem/1 var(--cond); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--stencil); background: rgba(11, 11, 13, .72); border-radius: 6px; padding: 7px 9px; }
.stage-buttons { display: inline-flex; gap: 8px; }
.stage-buttons[hidden] { display: none; }
.stage-buttons button { font: 600 .84rem/1 var(--cond); letter-spacing: .07em; text-transform: uppercase; color: var(--bone-2); background: rgba(11, 11, 13, .72); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-height: 34px; white-space: nowrap; cursor: pointer; }
.stage-buttons button:hover, .stage-buttons button:focus-visible { color: var(--gold); border-color: var(--gold-deep); }
.stage-buttons button[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-deep); }
.stage-buttons button[hidden] { display: none; }

.hero-under { padding: 8px var(--gutter) 18px; text-align: center; }
.hero-name { margin: 0; font: 600 clamp(1.42rem, 6.8vw, 2.3rem)/1.1 var(--head); color: var(--bone); }
.hero-line { margin: 0 0 12px; font: 500 1.14rem/1.25 var(--body); color: var(--bone); text-wrap: balance; }
.call { display: block; width: min(460px, 100%); margin-inline: auto; padding: 15px 18px; text-align: center; background: var(--gold); color: #0d0c0a; border-radius: 8px; font: 600 1.42rem/1.1 var(--cond); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.call:hover, .call:focus-visible { background: #e6c673; }
.f13 { margin: 0 0 10px; color: var(--stencil); font-weight: 500; text-wrap: balance; }
.f13[hidden] { display: none; }
/* On a short phone the call button comes first, so it's always on the first screen. */
@media (max-height: 700px) and (max-width: 759px) {
  .stage { min-height: calc(72vw + 72px); }
  .hero-under { display: flex; flex-direction: column; }
  .call { order: 1; }
  .f13 { order: 2; margin: 10px 0 0; }
  .hero-facts { order: 3; }
  .skyline { order: 4; }
}
.hero-facts { margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; color: var(--bone); }
.hero-facts .dir { font-weight: 600; }
.skyline { margin: 12px auto 0; max-width: 34em; font-size: .92rem; color: var(--bone-2); text-wrap: balance; transition: opacity .8s; }
.skyline.wait { opacity: 0; }

/* Your idea, into art */
.ideas { border-top: 1px solid var(--line); }
.lede { margin: 0 0 18px; color: var(--bone-2); max-width: 34em; }
.toy canvas { width: 100%; height: clamp(300px, 70vw, 500px); touch-action: pan-y; }
.toy.drawing canvas { touch-action: none; cursor: crosshair; }
.toy-ui { min-height: 92px; padding-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.toy-say { margin: 0; font: 500 1.06rem/1.3 var(--body); color: var(--bone); }
.toy-say:empty { display: none; }
.toy-go { font: 600 1.2rem/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: #fff; background: #5a38b4; border: 0; border-radius: 8px; padding: 14px 22px; cursor: pointer; }
.toy-go:hover, .toy-go:focus-visible { background: #6d49cf; }
.toy-go[hidden] { display: none; }

/* What we do */
.work { background: var(--ink-2); }
.menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.menu blockquote { margin: 0; color: var(--bone-2); }
.work .lede { margin-bottom: 22px; }
.walkin { margin: 26px 0 0; font-weight: 500; }
.trade { margin: 4px 0 0; color: var(--bone-2); }

/* The wall: their red brick under one lamp, with frames waiting for their real work */
.wall { padding: clamp(44px, 8vw, 88px) 0; background: #0b0b0d url(wall.webp) center / cover no-repeat; }
.wall h2 { color: #fff; }
.frames { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: center; }
@media (min-width: 760px) { .frames { grid-template-columns: repeat(4, 1fr); gap: 26px; } }
.frame { margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 8px; background: #101014; border: 7px solid #060608; box-shadow: 0 10px 24px rgba(0, 0, 0, .7); text-align: center; }
.frame.tall { aspect-ratio: 3 / 4; }
.frame.gold { border-color: #a98c4a; }
.frame figcaption { font: 500 .92rem/1.25 var(--body); color: var(--bone-2); }
.frame b { display: block; margin-bottom: 4px; font: 600 1.16rem/1.1 var(--head); letter-spacing: .01em; color: var(--bone); }

/* Reviews */
.quotes { display: grid; gap: 16px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.quotes blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--pin); font-size: 1.12rem; }

/* Visit */
.visit { background: var(--ink-2); }
.visit-grid { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .visit-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.hours { border-collapse: collapse; margin: 0 0 14px; width: 100%; max-width: 420px; }
.hours th { text-align: left; font-weight: 500; padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line); }
.hours td { text-align: right; padding: 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.addr { margin: 0 0 16px; }
.visit-buttons { display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.call.small { margin: 0; width: 100%; }
.ghost { display: block; padding: 13px 18px; text-align: center; color: var(--bone); border: 2px solid var(--gold-deep); border-radius: 8px; font: 600 1.2rem/1.1 var(--cond); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.ghost:hover, .ghost:focus-visible { color: var(--gold); }
.fb { margin: 14px 0 0; }

/* Their front desk and their letter board */
.desk { position: relative; border-radius: 6px; overflow: hidden; padding: 36px 16px 74px; display: grid; place-items: center; min-height: 380px; background: #0d0c14; }
.galaxy { position: absolute; inset: 0; width: 100%; height: 100%; }
.planet { position: absolute; left: 4px; bottom: 2px; width: 168px; height: auto; }
@media (min-width: 760px) { .desk { padding-bottom: 36px; } }
.desk-note { position: absolute; z-index: 1; top: 8px; left: 12px; margin: 0; font: 500 .92rem/1.2 var(--body); color: var(--bone-2); }
.board { position: relative; transform: rotate(-1.4deg); width: min(230px, 80%); padding: 16px 14px; background: #101013 repeating-linear-gradient(0deg, #17171b 0 3px, #0a0a0c 3px 6px); border: 7px solid #050506; border-radius: 3px; box-shadow: 0 10px 26px rgba(0, 0, 0, .7); text-align: center; color: #f1efe9; font: 500 1.14rem/1.3 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.board p { margin: 0; }
.board hr { border: 0; border-top: 2px dashed #f1efe9; margin: 9px 18%; opacity: .85; }

/* Footer */
.foot { padding: 22px 0 26px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--bone-2); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 26px; }
.credit { display: inline-flex; align-items: center; gap: 7px; color: var(--bone-2); text-decoration: none; }
.credit:hover, .credit:focus-visible { color: var(--gold); }

/* The call bar that follows you down the page on a phone */
.callbar { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1.5fr 1fr; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: rgba(11, 11, 13, .96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .22s; }
.callbar.show { transform: none; }
.callbar .call, .callbar .ghost { width: auto; margin: 0; padding: 11px 10px; font-size: 1.14rem; }
@media (min-width: 760px) { .callbar { display: none; } }
@media (max-width: 759px) { body { padding-bottom: 70px; } }

/* On a roomy screen, the facts sit in one row under the call button */
@media (min-width: 760px) {
  .hero-under { padding-bottom: 22px; }
  .call { width: 380px; }
}
@media (prefers-reduced-motion: reduce) { .callbar { transition: none; } }
