/* Shear Illusions. Every color, font, and main size is set here, in one place. */
:root {
  --paper: #fbf8f6;
  --tint: #f3ece9;
  --ink: #2e1a33;
  --ink-soft: #5c4a60;
  --plum: #5e3863;
  --pink: #c21c74;       /* pink for words on a light background, dark enough to read */
  --call: #b3186b;       /* the call button: white words on this read clearly */
  --call-hover: #96125a;
  --panel: #f5f3f4;      /* the frosted white of their sign panels */
  --panel-edge: #d6d2d5;
  --bar: #24122a;        /* the dark strip at the top and bottom */
  --bar-ink: #fbeef5;
  --glass: #1b1f24;      /* their door */

  --display: "Dosis", "Trebuchet MS", Verdana, sans-serif;
  --body: "Cabin", "Segoe UI", Roboto, Arial, sans-serif;

  --gutter: 0.75rem;
  --radius: 5px;
}

@font-face { font-family: "Dosis"; src: url("fonts/dosis-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Dosis"; src: url("fonts/dosis-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("fonts/cabin-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cabin"; src: url("fonts/cabin-600.woff") format("woff"); font-weight: 600; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 3.25rem; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--body); padding-bottom: 5rem; }
img { max-width: 100%; height: auto; }
h1, h2, p, ul, table, blockquote, address { margin: 0; padding: 0; }
a { color: var(--pink); }
:focus-visible { outline: 3px solid #1f7fd1; outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 30; }
.skip:focus { left: .5rem; top: .5rem; }

/* ---- The wall ---- */
.wall { background: #6d6256 url("wall.webp") center top / 640px auto repeat; padding-bottom: 1.1rem; }

.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.1rem; padding: .35rem var(--gutter); background: var(--bar); font: 700 1.0625rem/1.5 var(--display); letter-spacing: .02em; }
.top a { color: var(--bar-ink); text-decoration: none; padding: .25rem 0; }
.top a:hover { color: #ff9fce; }
.draft { margin-left: auto; font: 500 .875rem/1.5 var(--display); color: #e8c6d9; letter-spacing: .04em; white-space: nowrap; }

.hero { max-width: 48rem; margin: 0 auto; padding: .8rem var(--gutter) 0; display: flex; flex-direction: column; gap: .8rem; }
.hero-side { display: contents; }
.hero-trick { order: 2; }
.sign { order: 1; }
.plaques { order: 3; }
.button.call-hero { order: 4; display: none; }

/* Their raised, frosted white panels. */
.plate {
  background: linear-gradient(180deg, #fbfafb 0%, var(--panel) 45%, #ebe8ea 100%);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px #fff, inset 0 0 0 .3rem #f8f7f8, inset 0 0 0 calc(.3rem + 1px) var(--panel-edge), 0 2px 0 #bdb8ba, 0 .4rem .9rem rgba(25, 15, 8, .55);
}
.sign { position: relative; z-index: 2; border-radius: var(--radius); box-shadow: 0 2px 0 #bdb8ba, 0 .4rem .9rem rgba(25, 15, 8, .55); }
.sign img { display: block; width: 100%; border-radius: var(--radius); }

.plaques { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.plaque { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .55rem .7rem; min-height: 3.6rem; text-align: center; }
.plaque-family { font: 400 .9375rem/1.2 var(--body); color: var(--ink); text-align: left; text-wrap: balance; }
.plaque-family img { width: 2rem; flex: none; }
.plaque-walk { font: 500 1.375rem/1.1 var(--display); color: var(--ink); }

/* ---- The comb ---- */
.stage { position: relative; padding: 44px 0 22px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.stage.grabbing { cursor: grabbing; }
.stage:focus-visible { outline-offset: 0; }
.stage canvas { position: absolute; left: 0; top: 0; display: block; pointer-events: none; }
.panel { position: relative; aspect-ratio: 3 / 2; border: 7px solid #f7f5f6; border-radius: var(--radius); background: #160a1b; box-shadow: 0 2px 0 #bdb8ba, 0 .4rem .9rem rgba(25, 15, 8, .55); overflow: hidden; }
.still { position: absolute; inset: 0; margin: auto; width: 60%; }
.stage.live .still { display: none; }
.stage:not(.live) ~ .hint, .stage:not(.live) ~ .tools { display: none; }  /* no script, no trick to explain */

.hint { padding: .5rem .8rem; margin-top: .4rem; text-align: center; font: 700 1.1875rem/1.2 var(--display); color: var(--plum); min-height: 2.5rem; }
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .45rem; }
.tool { border: 0; border-radius: 99px; padding: .32rem .8rem; min-height: 2rem; font: 700 .9375rem/1.2 var(--display); letter-spacing: .02em; color: var(--bar-ink); background: rgba(36, 18, 42, .92); cursor: pointer; }
.tool:hover { background: #3b2141; }
.tool[hidden] { display: none; }
.tool-main { min-height: 2.6rem; padding: .4rem 1.15rem; font-size: 1.125rem; color: var(--plum); background: linear-gradient(180deg, #fff, #efedef); box-shadow: 0 2px 0 #bdb8ba, 0 .25rem .6rem rgba(25, 15, 8, .5); }
.tool-main:hover { background: #fff; }
.tools { align-items: center; }

/* ---- Buttons ---- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: .55rem 1.2rem; border-radius: var(--radius); background: var(--call); color: #fff; font: 700 1.25rem/1.15 var(--display); letter-spacing: .02em; text-align: center; text-decoration: none; box-shadow: 0 2px 0 #7c0f4a; }
.button:hover { background: var(--call-hover); }
.button-quiet { background: var(--plum); box-shadow: 0 2px 0 #3b2141; }
.button-quiet:hover { background: #4a2c4f; }

.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr auto; gap: .4rem; padding: .45rem var(--gutter) calc(.45rem + env(safe-area-inset-bottom)); background: var(--bar); }
/* Sized from the screen as well as the text, so the phone number never breaks across two lines. */
.callbar .button { font-size: min(1.25rem, 5.6vw); padding: .5rem .6rem; white-space: nowrap; }

/* ---- The plain part of the page ---- */
.sec { padding: 2.75rem 0; }
.sec-tint { background: var(--tint); }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.1rem; }
h2 { font: 700 2.125rem/1.1 var(--display); color: var(--plum); text-wrap: balance; }

.services { list-style: none; margin-top: 1.4rem; display: grid; gap: .1rem 2rem; font: 500 1.5rem/1.25 var(--display); }
.services li { padding: .55rem 0; border-bottom: 1px solid #e6dcda; }
.walkins { margin-top: 1.4rem; font-size: 1.125rem; }
.walkins strong { font-weight: 600; }

.quotes { margin-top: 1.25rem; display: grid; gap: 1rem; }
.quotes blockquote { font: 500 1.4375rem/1.3 var(--display); color: var(--ink); padding-left: .9rem; border-left: 4px solid #e8579f; }
.note { color: var(--ink-soft); font-size: .9375rem; margin-top: 1rem; }

.visit { display: grid; gap: 2.5rem; }
.door { position: relative; margin-top: 1rem; padding: 1.5rem 1.25rem 1.4rem; border-radius: 3px; background: linear-gradient(115deg, rgba(255, 255, 255, .07) 0 18%, rgba(255, 255, 255, 0) 18% 34%, rgba(255, 255, 255, .05) 34% 42%, rgba(255, 255, 255, 0) 42%), var(--glass); border: .45rem solid #0c0e10; color: #f3f3f3; font: 500 1.5rem/1.3 var(--body); font-style: normal; text-align: center; }
.door span { display: block; }
.door-town { font-size: 1.1875rem; margin-top: .3rem; color: #cfd2d6; }
.visit-door .button { margin-top: 1rem; }

.hours { margin-top: 1rem; width: 100%; border-collapse: collapse; font-size: 1.125rem; }
.hours th { text-align: left; font-weight: 400; padding: .65rem .5rem .65rem 0; }
.hours td { text-align: right; font-weight: 600; padding: .65rem 0 .65rem .5rem; white-space: nowrap; }
.hours td.blank { font-weight: 400; font-style: italic; color: var(--ink-soft); }
.hours tr { border-bottom: 1px solid #e6dcda; }
.hours tr.today th { font-weight: 600; color: var(--pink); }
.hours tr.today th::after { content: " \00b7\00a0today"; font-weight: 400; }
.visit-hours .button { margin-top: 1.1rem; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.25rem; padding: 1rem 1.1rem; background: var(--bar); color: var(--bar-ink); font-size: .9375rem; }
.foot .draft { margin: 0; }
.credit { display: inline-flex; align-items: center; gap: .45rem; color: var(--bar-ink); text-decoration: none; }
.credit:hover { text-decoration: underline; }
.credit img { width: 1.25rem; height: 1.25rem; }

/* ---- Wider screens ---- */
@media (min-width: 40rem) {
  .wall { background-size: 1000px auto; }
  .services { grid-template-columns: 1fr 1fr; }
  .visit { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .plaque-family { font-size: 1.0625rem; justify-content: center; }
  .plaque-walk { font-size: 1.75rem; }
  .plaque-family img { width: 2.5rem; }
  .panel { aspect-ratio: 2 / 1; max-height: max(14rem, calc(100vh - 11rem)); }
  .hint { font-size: 1.375rem; }
}

/* Big enough for the sign and the comb side by side. */
@media (min-width: 70rem) and (min-height: 34rem) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .button.call-hero { display: flex; }
  .hero { max-width: 120rem; padding: 1.4rem 2rem .9rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 1.75rem; align-items: start; }
  .hero-side { display: flex; flex-direction: column; gap: .9rem; align-self: center; }
  .hero-trick { order: 0; }
  .sign, .plaques, .button.call-hero { order: 0; }
  .button { font-size: 1.375rem; }
  .button.call-hero { min-height: 4rem; font-size: 1.625rem; }
  .panel { aspect-ratio: 8 / 5; max-height: max(14rem, calc(100vh - 16rem)); }
}

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

@media print {
  .callbar, .tools, .top { display: none; }
  body { padding: 0; }
}
