/* b24studios.dev homepage */
:root {
  --ink: #151413;
  --paper: #f4efe8;
  --paper-2: #ebe4da;
  --card: rgba(255, 255, 255, 0.62);
  --line: rgba(21, 20, 19, 0.12);
  --line-2: rgba(21, 20, 19, 0.24);
  --muted: #6b645e;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Soft window light */
.light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(255, 252, 246, 0.95) 0%, rgba(255, 252, 246, 0) 70%),
    radial-gradient(55% 45% at 10% 100%, rgba(214, 196, 176, 0.38) 0%, rgba(214, 196, 176, 0) 70%),
    radial-gradient(40% 35% at 95% 85%, rgba(196, 204, 186, 0.28) 0%, rgba(196, 204, 186, 0) 70%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: calc(20px + var(--st)) calc(24px + var(--sr)) 40px calc(24px + var(--sl));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em; /* optically centre tracked caps */
  line-height: 44px;
}

.hero { margin-top: 7vh; margin-top: 7svh; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding-left: 0.28em;
  color: var(--muted);
}
h1 {
  margin-top: 20px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(42px, 11.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 em { font-style: italic; font-weight: 300; }

/* Search */
.find { width: 100%; max-width: 520px; margin-top: 48px; min-height: 196px; }
.find-label {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 16px;
}
.field { position: relative; }
.field-icon {
  position: absolute; left: 18px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round;
  pointer-events: none;
}
.field input {
  width: 100%;
  height: 56px;
  padding: 0 52px 0 48px;
  font-size: 17px; /* 16px+ keeps iOS from zooming */
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.field input::placeholder { color: #8d857e; }
.field input:focus { border-color: var(--ink); background: rgba(255, 255, 255, 0.85); }
.field input::-webkit-search-cancel-button, .field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.clear {
  position: absolute; right: 6px; top: 6px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.clear svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.clear:hover svg { stroke: var(--ink); }

.results { list-style: none; margin: 0; padding: 0; text-align: left; }
.results:not(:empty) { border: 1px solid var(--line-2); border-top: 0; background: rgba(255, 255, 255, 0.8); }
.results li + li { border-top: 1px solid var(--line); }
.results a {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; padding: 12px 18px 12px 20px;
  transition: background 0.2s var(--ease);
}
.results a:hover, .results a.on { background: rgba(244, 239, 232, 0.9); }
.r-text { flex: 1; min-width: 0; }
.r-name { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.r-city { display: block; margin-top: 3px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.r-go { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.r-go::after { content: " \2192"; letter-spacing: 0; }
.results a:hover .r-go, .results a.on .r-go { color: var(--ink); }

.none { padding: 24px 8px 0; animation: rise 0.35s var(--ease); }
.none-title { font-family: var(--serif); font-size: 24px; line-height: 1.3; }
.none-text { margin-top: 4px; font-size: 14px; color: var(--muted); }
.none-links { margin-top: 2px; display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.none-links span { color: var(--line-2); }
.none-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-bottom: 1px solid transparent; }
.none-links a:hover { color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .none { animation: none; } }

/* Contact */
.contact { width: 100%; max-width: 520px; margin-top: auto; padding-top: 24px; }
.rule { display: block; width: 44px; height: 1px; margin: 0 auto 28px; background: var(--ink); opacity: 0.3; }
.contact-text { font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 400px; margin: 0 auto; text-wrap: balance; }
.contact-opts { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.contact-opts .btn-ink { grid-column: 1 / -1; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink); background: rgba(255, 255, 255, 0.75); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2b2926; border-color: #2b2926; }
.btn.loading { opacity: 0.6; cursor: progress; }
.phone { margin-top: 8px; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.phone a { display: inline-block; padding: 12px 2px; }
.phone a:hover { color: var(--ink); }

.foot {
  position: relative; z-index: 1;
  padding: 0 24px calc(20px + var(--sb));
  text-align: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #9a928a;
}

@media (min-width: 720px) {
  .page { padding-top: calc(36px + var(--st)); }
  .hero { margin-top: 7vh; }
  h1 { margin-top: 24px; }
  .find { margin-top: 52px; min-height: 200px; }
  .contact-opts { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .contact-opts .btn-ink { grid-column: auto; }
}
