
:root {
  --fairway: #1c3a2a;
  --cream: #f3eee4;
  --sand: #e4d8c4;
  --brass: #a6843c;
  --ink: #1b1914;
  --mute: #6a6256;
  --card: #fffdf8;
  --line: #ddd3c3;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.45;
}
a { color: var(--fairway); }
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; background: rgba(243,238,228,.94);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.brand { font-family: Fraunces, Georgia, serif; font-size: 1.25rem; color: var(--fairway); line-height: 1; }
.brand small { display: block; margin-top: 4px; font-family: Outfit, sans-serif; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.call {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--fairway); color: var(--cream); text-decoration: none; font-weight: 600;
}
.wrap { max-width: 960px; margin: 0 auto; padding: 16px 16px 48px; }
.hero {
  border-radius: 18px; overflow: hidden; background: var(--fairway); color: var(--cream);
  padding: 28px 20px;
}
.hero h1 { font-family: Fraunces, Georgia, serif; font-weight: 520; font-size: clamp(2rem, 6vw, 3.2rem); margin: 0; line-height: 1.05; }
.hero p { margin: 8px 0 0; opacity: .9; }
.note { color: var(--mute); font-size: .95rem; }
.day { margin-top: 28px; }
.day h2 { font-family: Fraunces, Georgia, serif; color: var(--fairway); font-size: 1.6rem; margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: 1fr 1fr; } }
.slot {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
}
.time { font-family: Fraunces, Georgia, serif; font-size: 2rem; margin: 0; line-height: 1; }
.price { margin: 8px 0 0; color: var(--mute); }
.price strong { color: var(--fairway); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.players { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 4px 10px; min-height: 44px; }
.players select { border: 0; background: transparent; font: inherit; font-weight: 600; min-height: 36px; }
.join, .book {
  flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: var(--brass);
  color: var(--ink); font-weight: 700; padding: 0 16px; cursor: pointer;
}
.callout {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
}
.callout h2 { margin-top: 0; }
.foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--mute); font-size: .8rem; }
.who { font-size: .85rem; color: var(--mute); }

.panel { max-width: 440px; margin: 24px auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.panel h2 { font-family: Fraunces, Georgia, serif; color: var(--fairway); margin: 0 0 8px; }
label { display: block; font-weight: 600; margin-top: 14px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--cream); padding: 0 12px; font: inherit;
}
.submit { margin-top: 18px; width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: var(--fairway); color: var(--cream); font-weight: 700; cursor: pointer; }
.links { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.fine { color: var(--mute); font-size: .85rem; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.admin-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.admin-nav a.on { background: var(--fairway); color: var(--cream); }
.stats { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat b { display: block; font-family: Fraunces, Georgia, serif; font-size: 2rem; color: var(--fairway); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.times label { margin: 0; font-weight: 500; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.slot-edit { display: grid; gap: 10px; }
@media (min-width: 800px) {
  .slot-edit { grid-template-columns: 150px 130px 100px 90px 1fr auto; align-items: end; }
}
.slot-edit label { margin-top: 0; }
.ghost { background: transparent; color: var(--fairway); border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 0 12px; font-weight: 600; cursor: pointer; }
.booked { color: #8a3b2a; font-weight: 700; }
.open { color: var(--fairway); font-weight: 700; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.days a { white-space: nowrap; text-decoration: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; }
.days a.on { background: var(--fairway); color: var(--cream); }

.week { position: relative; }
.daypick { position: absolute; left: -9999px; }
.week .day { display: none; }
#d1:checked ~ #panel1, #d2:checked ~ #panel2, #d3:checked ~ #panel3, #d4:checked ~ #panel4, #d5:checked ~ #panel5, #d6:checked ~ #panel6, #d7:checked ~ #panel7 { display: block; }
.daybar {
  position: sticky; top: 69px; z-index: 4;
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 10px 2px 12px; margin: 4px 0 0;
  background: rgba(243,238,228,.96);
}
.daybar label {
  flex: 0 0 84px; min-height: 76px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--card);
  font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 650;
}
.daybar label b { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; font-weight: 520; letter-spacing: 0; text-transform: none; line-height: 1; }
.daybar label small { font-weight: 550; color: var(--mute); letter-spacing: 0; text-transform: none; }
#d1:checked ~ .daybar label[for="d1"], #d2:checked ~ .daybar label[for="d2"], #d3:checked ~ .daybar label[for="d3"], #d4:checked ~ .daybar label[for="d4"], #d5:checked ~ .daybar label[for="d5"], #d6:checked ~ .daybar label[for="d6"], #d7:checked ~ .daybar label[for="d7"] {
  background: var(--fairway); color: var(--cream); border-color: var(--fairway);
}
#d1:checked ~ .daybar label[for="d1"] small, #d2:checked ~ .daybar label[for="d2"] small, #d3:checked ~ .daybar label[for="d3"] small, #d4:checked ~ .daybar label[for="d4"] small, #d5:checked ~ .daybar label[for="d5"] small, #d6:checked ~ .daybar label[for="d6"] small, #d7:checked ~ .daybar label[for="d7"] small { color: #e4d8c4; }

.book-check { display: none; position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 30; background: rgba(27,25,20,.5); align-items: flex-end; justify-content: center; }
.book-check.is-open { display: flex; }
.book-check-card { width: 100%; max-width: 28rem; background: var(--card); border-radius: 24px 24px 0 0; padding: 20px 20px 28px; }
.book-check-card h2 { font-family: Fraunces, Georgia, serif; color: var(--fairway); margin: 4px 0 8px; }
@media (min-width: 720px) {
  .book-check { align-items: center; }
  .book-check-card { border-radius: 24px; }
}
