/* Forge & Cove booking pages. Palette and type follow forgeandcove.com (src/styles/global.css). */
:root {
  --ink: #050706;
  --stone: #1F211D;
  --cream: #FBE5CE;
  --sand: #D0BFAE;
  --paper: #F7F0E6;
  --sage: #A0A98C;
  --olive: #546048;
  --teal: #5E8A86;
  --line: #e6e1d8;
  --field: #d9d3c8;
  --muted: rgba(31, 33, 29, .64);
  --err: #9b2c1f;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--stone);
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: var(--olive); }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* top bar, as on the website */
.strip { background: var(--ink); color: var(--cream); font-size: .76rem; padding: 8px 0; }
.strip .wrap { display: flex; justify-content: space-between; gap: 12px; white-space: nowrap; }
.strip a { color: var(--cream); }
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.top img { height: 56px; width: auto; display: block; }
.top .back { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--stone); text-decoration: none; }
.top .back:hover { opacity: .7; }
@media (max-width: 640px) { .strip .hide-sm { display: none; } .top img { height: 46px; } }

main { padding: 44px 0 72px; }
.eyebrow { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; color: var(--olive); }
h1 { font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.06; letter-spacing: -.01em; margin: 10px 0 12px; }
h2 { font-weight: 700; font-size: 1.3rem; line-height: 1.2; margin: 0 0 14px; }
.lead { color: var(--muted); max-width: 52ch; margin: 0 0 30px; }

/* buttons, as on the website */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: .95rem 1.6rem; border: 1px solid var(--stone); border-radius: 2px; background: #fff; color: var(--stone); cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--stone); color: var(--paper); }
.btn.dark { background: var(--stone); color: var(--paper); }
.btn.dark:hover { background: var(--olive); border-color: var(--olive); }
.btn.danger { border-color: var(--err); color: var(--err); }
.btn.danger:hover { background: var(--err); color: #fff; }
.btn:disabled { opacity: .55; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--olive); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 640px) { .btn { font-size: .74rem; letter-spacing: .1em; padding: .9rem 1.1rem; width: 100%; } }

/* picker */
.book { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 3px; background: #fff; }
.book > section { padding: 26px 28px; }
.book > section + section { border-left: 1px solid var(--line); }
@media (max-width: 820px) {
  .book { grid-template-columns: 1fr; }
  .book > section { padding: 20px 16px; }
  .book > section + section { border-left: 0; border-top: 1px solid var(--line); }
}
.step { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.step b { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); }
.step span { font-weight: 700; font-size: 1.05rem; }

.month { font-weight: 600; font-size: .95rem; margin: 0 0 10px; }
.grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.grid .dow { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 2px; }
.day { aspect-ratio: 1 / 1; min-height: 40px; border: 1px solid transparent; border-radius: 2px; background: none; font: inherit; font-size: .95rem; color: rgba(31, 33, 29, .3); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.day small { font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.day.open { color: var(--stone); background: var(--paper); border-color: var(--line); cursor: pointer; font-weight: 600; }
.day.open:hover { border-color: var(--stone); }
.day.on { background: var(--stone); color: var(--paper); border-color: var(--stone); }
.day.blank { visibility: hidden; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.time { font: inherit; font-weight: 600; font-size: .92rem; padding: 12px 8px; border: 1px solid var(--field); border-radius: 2px; background: #fff; color: var(--stone); cursor: pointer; }
.time:hover { border-color: var(--stone); }
.time.on { background: var(--stone); color: var(--paper); border-color: var(--stone); }
.dayname { font-weight: 700; margin: 0 0 4px; }
.tznote { color: var(--muted); font-size: .8rem; margin: 0 0 14px; }
.empty { color: var(--muted); font-size: .95rem; }

/* form */
.book.single { grid-template-columns: 1fr; }
.submitrow { display: flex; align-items: center; gap: 12px 22px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.submitrow p { margin: 0; max-width: 56ch; }
@media (max-width: 640px) { .submitrow { flex-direction: column-reverse; align-items: stretch; } }
.chosen { background: var(--paper); border-left: 3px solid var(--olive); padding: 12px 14px; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: space-between; }
.chosen strong { font-weight: 700; }
label.f { display: block; margin: 0 0 14px; }
label.f > span { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: rgba(31, 33, 29, .72); margin-bottom: 5px; }
label.f > span i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  display: block; width: 100%; font: inherit; font-size: 16px; color: var(--stone);
  padding: 11px 12px; border: 1px solid var(--field); border-radius: 3px; background: #fff;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--olive); outline-offset: 0; border-color: var(--olive); }
.f.bad input, .f.bad select { border-color: var(--err); }
.ferr { color: var(--err); font-size: .85rem; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: .82rem; color: var(--muted); }
.alert { padding: 12px 16px; border-radius: 3px; margin: 0 0 18px; background: #fbeae7; color: var(--err); border: 1px solid #efc9c2; }
.alert.ok { background: #eef1ea; color: var(--olive); border-color: #d6ddcd; }

/* confirmation and manage page */
.card { border: 1px solid var(--line); border-radius: 3px; background: #fff; padding: 28px; max-width: 680px; }
@media (max-width: 640px) { .card { padding: 20px 16px; } }
.card.done { border-top: 4px solid var(--olive); }
.card.cancelled { border-top: 4px solid var(--sand); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; background: var(--paper); padding: 16px 18px; margin: 18px 0 22px; }
dl.facts dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--olive); padding-top: 3px; }
dl.facts dd { margin: 0; }
@media (max-width: 480px) { dl.facts { grid-template-columns: 1fr; gap: 2px; } dl.facts dd { margin-bottom: 8px; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.addcal { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; margin: 0 0 20px; }
details.more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; }
details.more summary { cursor: pointer; font-weight: 600; }

footer.site { background: var(--ink); color: rgba(251, 229, 206, .7); font-size: .8rem; padding: 26px 0; }
footer.site a { color: var(--cream); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
