@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #14110f;
  --ink-2: #1c1815;
  --line: #2e2823;
  --line-2: #453c33;
  --text: #ece5d8;
  --muted: #a1978a;
  --brass: #c8a56a;
  --brass-hi: #dcbd88;
  --brass-ink: #171006;
  --risk: #e58a6c;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration-color: var(--brass);
  text-underline-offset: 0.25em;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  padding-top: calc(0.9rem + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  width: 5.25rem;
  display: block;
}

.brand svg {
  display: block;
  width: 100%;
  height: auto;
}

.top-label,
.kicker,
.group-title,
.steps,
label span,
.sum dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.top-label {
  color: var(--brass);
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 8rem;
}

.pad {
  padding: 2rem 1.25rem;
}

.muted {
  color: var(--muted);
}

.steps {
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.steps b {
  color: var(--brass);
  font-weight: 600;
}

h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.25rem, 9vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.lede {
  color: var(--muted);
  margin: 0 0 2rem;
}

.group-title {
  color: var(--brass);
  margin: 2rem 0 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line-2);
}

/* Selectable rows (services, people) */
.row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.row .box {
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid var(--line-2);
  transition: background 0.16s, border-color 0.16s;
}

.row[aria-pressed='true'] .box {
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.row .name {
  font-weight: 600;
}

.row .meta {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.row .price {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--brass);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.row.person .name {
  font-family: var(--display);
  font-weight: 350;
  font-size: 1.5rem;
}

/* Days and times */
.days {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 0 -1.25rem 1.5rem;
  padding: 0.25rem 1.25rem 0.75rem;
  scrollbar-width: none;
}

.days::-webkit-scrollbar {
  display: none;
}

.day {
  flex: 0 0 auto;
  min-width: 4.1rem;
  padding: 0.7rem 0.5rem;
  background: none;
  border: 1px solid var(--line-2);
  text-align: center;
  cursor: pointer;
}

.day small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.day strong {
  display: block;
  font-family: var(--display);
  font-weight: 350;
  font-size: 1.5rem;
  line-height: 1.2;
}

.day[aria-pressed='true'] {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--brass-ink);
}

.day[aria-pressed='true'] small {
  color: var(--brass-ink);
}

.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr));
  gap: 0.5rem;
}

.time {
  padding: 0.8rem 0;
  background: none;
  border: 1px solid var(--line-2);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s, color 0.16s;
}

.time:hover {
  border-color: var(--brass);
  color: var(--brass-hi);
}

.part {
  grid-column: 1 / -1;
  margin: 1rem 0 0.1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.part:first-child {
  margin-top: 0;
}

/* Form */
label {
  display: block;
  margin-bottom: 1.25rem;
}

label span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 0;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.hp {
  position: absolute;
  left: -9999px;
}

/* Summary card */
.sum {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
}

.sum::before {
  content: '';
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 6px;
  background: repeating-linear-gradient(115deg, var(--brass) 0 6px, transparent 6px 14px);
}

.sum dl {
  margin: 0;
  display: grid;
  gap: 0.9rem;
}

.sum dt {
  color: var(--muted);
}

.sum dd {
  margin: 0.15rem 0 0;
  font-family: var(--display);
  font-weight: 350;
  font-size: 1.35rem;
  line-height: 1.25;
}

.sum dd.price {
  color: var(--brass);
}

/* Buttons and the sticky action bar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--brass-ink);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--brass-hi);
}

.btn[disabled] {
  opacity: 0.4;
  cursor: default;
}

.btn.ghost {
  background: none;
  color: var(--text);
  border-color: var(--line-2);
}

.btn.danger {
  background: none;
  color: var(--risk);
  border-color: var(--line-2);
}

.stack {
  display: grid;
  gap: 0.6rem;
}

.bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

.bar-in {
  max-width: 40rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 1.25rem calc(0.7rem + env(safe-area-inset-bottom));
}

.bar .btn {
  width: auto;
  min-width: 9rem;
}

.bar-info {
  font-size: 0.9rem;
  color: var(--muted);
}

.bar-info strong {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-weight: 350;
  font-size: 1.25rem;
}

.back {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.25em;
}

.error {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--risk);
  color: var(--risk);
}

.fine {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1rem 0 0;
}

.screen {
  animation: rise 0.45s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen {
    animation: none;
  }
}
