/* Room 66 — basalt, Porbandar stone and brass: the palette of the Gothic buildings around the High Court */
:root {
  --basalt: #25313a;
  --basalt-2: #33424d;
  --ink: #1d262c;
  --muted: #55636c;
  --paper: #f4f5f3;
  --white: #ffffff;
  --stone: #ddd2b8;
  --stone-soft: #ebe6d8;
  --brass: #b2863b;
  --brass-ink: #7d5a1e;
  --walnut: #4a3426;
  --free: #2b7a58;
  --last: #c4851f;
  --busy: #b9bfc2;
  --line: #d3d8d5;
  --danger: #a4372f;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --r: 3px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.62 var(--serif); font-optical-sizing: auto; }
img { max-width: 100%; display: block; }
a { color: var(--brass-ink); text-underline-offset: 3px; }
a:hover { color: var(--basalt); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--basalt); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 560; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.sans { font-family: var(--sans); }
.muted { color: var(--muted); }

/* header */
.top { background: var(--basalt); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--brass); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; line-height: 1; display: flex; flex-direction: column; }
.brand small { font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .02em; color: #c9d1d5; margin-top: 4px; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; font-family: var(--sans); font-size: .98rem; }
.nav a { color: #e6eaec; text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--sans); padding: .95rem 1.35rem; border-radius: var(--r); border: 2px solid transparent; text-decoration: none; cursor: pointer; min-height: 48px; }
.btn-brass { background: var(--brass); color: #1b1407; }
.btn-brass:hover { background: #c79a4c; color: #1b1407; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-dark { background: var(--basalt); color: #fff; }
.btn-dark:hover { background: var(--basalt-2); color: #fff; }
.btn-line { background: transparent; color: var(--basalt); border-color: var(--basalt); }
.btn-line:hover { background: var(--basalt); color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.top .btn { padding: .65rem 1.05rem; min-height: 40px; font-size: .95rem; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } .nav { gap: .5rem; } }

/* hero */
.hero { position: relative; color: #fff; background: var(--basalt) url("/img/hero.jpg") center/cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(37,49,58,.96) 0%, rgba(37,49,58,.86) 46%, rgba(37,49,58,.38) 100%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { font-size: 1.28rem; color: #e3e8ea; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.1rem; }
.hero .price { font-family: var(--sans); color: #d3dade; font-size: .98rem; margin: 0; }
.hero .price strong { color: #fff; font-size: 1.15rem; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; padding-bottom: 3rem; } }

/* live board */
.board { background: var(--paper); color: var(--ink); border-top: 4px solid var(--brass); border-radius: var(--r); padding: 1.15rem 1.25rem 1.25rem; font-family: var(--sans); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.board h2 { font: 600 1.25rem/1.2 var(--serif); margin: 0; }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .2rem; }
.board-days { display: flex; gap: .35rem; }
.board-days button { font: 600 .85rem var(--sans); border: 1px solid var(--line); background: #fff; color: var(--basalt); padding: .35rem .65rem; border-radius: var(--r); cursor: pointer; }
.board-days button[aria-pressed="true"] { background: var(--basalt); color: #fff; border-color: var(--basalt); }
.board-sub { color: var(--muted); font-size: .92rem; margin: .2rem 0 .9rem; min-height: 1.4em; }
.tl { display: grid; grid-template-columns: 4.2rem 1fr; gap: .5rem .6rem; align-items: center; }
.tl-room { font-size: .85rem; color: var(--muted); }
.tl-track { position: relative; height: 30px; background: repeating-linear-gradient(90deg, var(--free) 0 1px, transparent 1px), #d9ebe2; background-size: var(--hour, 12%) 100%, auto; border-radius: 2px; overflow: hidden; }
.tl-block { position: absolute; top: 0; bottom: 0; background: var(--busy); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 3px, transparent 3px 7px); border-left: 1px solid #fff; border-right: 1px solid #fff; }
.tl-past { position: absolute; top: 0; bottom: 0; left: 0; background: rgba(244,245,243,.78); }
.tl-axis { grid-column: 2; position: relative; height: 1.2rem; font-size: .76rem; color: var(--muted); }
.tl-axis span { position: absolute; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.key { display: flex; gap: 1.1rem; font-size: .82rem; color: var(--muted); margin: .7rem 0 0; flex-wrap: wrap; }
.key i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: .35rem; border-radius: 2px; }
.key .f { background: #d9ebe2; border: 1px solid var(--free); } .key .b { background: var(--busy); }
.board-next { margin: 1rem 0 .9rem; font-size: 1.02rem; }
.board-next strong { font-weight: 700; }
.board .btn { width: 100%; }

/* sections */
section { padding: 4.5rem 0; }
.sec-stone { background: var(--stone-soft); }
.sec-dark { background: var(--basalt); color: #fff; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-dark a { color: #ecd7a8; }
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; gap: 1.2rem; } section { padding: 3.2rem 0; } }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; font-family: var(--sans); }
.facts li { border-top: 2px solid var(--basalt); padding-top: .65rem; font-size: 1rem; line-height: 1.4; }
.facts b { display: block; font: 600 1.35rem/1.2 var(--serif); margin-bottom: .15rem; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* photos */
.photos { display: grid; grid-template-columns: repeat(12, 1fr); gap: .75rem; margin-top: 2rem; }
.photos figure { margin: 0; position: relative; overflow: hidden; background: var(--basalt); border-radius: var(--r); }
.photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.photos figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem .9rem .6rem; background: linear-gradient(transparent, rgba(20,28,33,.82)); color: #fff; font: 500 .9rem/1.3 var(--sans); }
.photos .p1 { grid-column: span 7; } .photos .p2 { grid-column: span 5; } .photos .p3 { grid-column: span 4; } .photos .p4 { grid-column: span 4; } .photos .p5 { grid-column: span 4; }
@media (max-width: 700px) { .photos .p1, .photos .p2, .photos .p3, .photos .p4, .photos .p5 { grid-column: span 12; } }

/* rates */
.rates { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .rates { grid-template-columns: 1fr; gap: 2rem; } }
table.rate { border-collapse: collapse; width: 100%; font-family: var(--sans); }
table.rate th, table.rate td { text-align: left; padding: .8rem .2rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 500; }
table.rate td:last-child, table.rate th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
table.rate tr.hl td { font-size: 1.2rem; color: var(--basalt); border-bottom: 2px solid var(--brass); }
.note { font: 400 .95rem/1.5 var(--sans); color: var(--muted); max-width: 52ch; }

/* rewards */
.steps { list-style: none; counter-reset: s; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1rem; max-width: 40rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; align-items: start; font-family: var(--sans); font-size: 1.05rem; line-height: 1.45; }
.steps li::before { content: counter(s); width: 2.6rem; height: 2.6rem; border: 2px solid var(--brass); border-radius: 50%; display: grid; place-items: center; font: 600 1.2rem var(--serif); color: #ecd7a8; }
.steps b { display: block; font: 600 1.15rem var(--serif); color: #fff; }
.steps span { color: #cdd6da; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 2rem; } }
.contact dl { margin: 0; font-family: var(--sans); }
.contact dt { font-weight: 700; margin-top: 1rem; }
.contact dd { margin: .1rem 0 0; }
.big-links a { display: inline-block; font: 600 1.35rem var(--serif); margin-right: 1.2rem; }
details { border-top: 1px solid var(--line); padding: .9rem 0; font-family: var(--sans); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { margin: .7rem 0 0; font-size: 1rem; line-height: 1.55; }

/* footer */
footer { background: var(--ink); color: #b9c3c8; padding: 2.4rem 0; font: 400 .95rem/1.6 var(--sans); }
footer a { color: #e6d3a6; }
footer .wrap { display: flex; gap: 2rem; justify-content: space-between; flex-wrap: wrap; }
.wa-float { position: fixed; right: 14px; bottom: 14px; z-index: 30; background: #1f8f4e; color: #fff; text-decoration: none; font: 700 .95rem var(--sans); padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.3); display: none; }
@media (max-width: 760px) { .wa-float { display: inline-flex; } body { padding-bottom: 72px; } }

/* prose pages */
.page-head { background: var(--basalt); color: #fff; padding: 3rem 0 2.4rem; border-bottom: 3px solid var(--brass); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; color: #fff; }
.prose { padding: 3rem 1.25rem 4rem; } .prose h2 { font-size: 1.5rem; margin-top: 1.8em; } .prose h2:first-child { margin-top: 0; }
.prose p, .prose li { max-width: 68ch; }

/* ---------- booking ---------- */
.bk { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2.5rem; padding: 2.4rem 0 4rem; align-items: start; font-family: var(--sans); }
@media (max-width: 900px) { .bk { grid-template-columns: minmax(0, 1fr); } }
.bk > * { min-width: 0; }
.bk h2 { font: 600 1.3rem var(--serif); margin: 0 0 .7rem; }
.bk fieldset { border: 0; margin: 0 0 1.9rem; padding: 0; min-width: 0; }
.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x proximity; }
.day { flex: 0 0 auto; scroll-snap-align: start; min-width: 4.3rem; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: .55rem .4rem; text-align: center; cursor: pointer; font: 500 .85rem/1.25 var(--sans); color: var(--ink); }
.day b { display: block; font: 600 1.35rem/1.1 var(--serif); }
.day[aria-pressed="true"] { background: var(--basalt); color: #fff; border-color: var(--basalt); }
.day[disabled] { opacity: .4; cursor: not-allowed; background: var(--stone-soft); }
.durs { display: flex; flex-wrap: wrap; gap: .5rem; }
.dur { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r); padding: .6rem .85rem; cursor: pointer; font: 600 .98rem var(--sans); color: var(--ink); text-align: left; min-height: 48px; }
.dur small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.dur[aria-pressed="true"] { border-color: var(--basalt); background: var(--basalt); color: #fff; } .dur[aria-pressed="true"] small { color: #cdd6da; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); gap: .5rem; }
.time { border: 1.5px solid var(--free); background: #fff; color: var(--ink); border-radius: var(--r); padding: .6rem .3rem; cursor: pointer; font: 600 1rem var(--sans); font-variant-numeric: tabular-nums; min-height: 48px; }
.time small { display: block; font-weight: 500; font-size: .72rem; color: var(--free); }
.time.last { border-color: var(--last); } .time.last small { color: #8a5a0c; }
.time[aria-pressed="true"] { background: var(--basalt); border-color: var(--basalt); color: #fff; } .time[aria-pressed="true"] small { color: #cdd6da; }
.times > .empty, .times > .help { grid-column: 1 / -1; }
.empty { background: var(--stone-soft); border-radius: var(--r); padding: 1rem 1.1rem; font-size: 1rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
label span { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], textarea, select { width: 100%; font: 400 1.05rem var(--sans); padding: .75rem .8rem; border: 1.5px solid #aab3b8; border-radius: var(--r); background: #fff; color: var(--ink); min-height: 48px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--brass); outline-offset: 0; border-color: var(--basalt); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.help { font-size: .88rem; color: var(--muted); margin-top: .25rem; }
.err { background: #fbe9e7; color: #7a2018; border-left: 4px solid var(--danger); padding: .8rem 1rem; border-radius: var(--r); margin: 1rem 0; font-size: 1rem; }
.sum { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brass); border-radius: var(--r); padding: 1.2rem; }
.sum h2 { margin-bottom: .8rem; }
.sum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: 1rem; }
.sum dt { color: var(--muted); } .sum dd { margin: 0; text-align: right; font-weight: 600; }
.sum .total { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; }
.sum .btn { width: 100%; margin-top: 1rem; }
.sum .fine { font-size: .82rem; color: var(--muted); margin: .8rem 0 0; line-height: 1.45; }
.ok { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--free); border-radius: var(--r); padding: 1.6rem; font-family: var(--sans); max-width: 640px; }
.ok h2 { font: 600 1.7rem var(--serif); margin: 0 0 .3rem; }
.ok .ref { font: 700 1.5rem var(--sans); letter-spacing: .04em; background: var(--stone-soft); display: inline-block; padding: .3rem .8rem; border-radius: var(--r); margin: .4rem 0 1rem; }
.ok .acts { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }
.codebox { background: var(--stone-soft); border-radius: var(--r); padding: .9rem 1rem; margin-top: .6rem; }
details.reward summary { color: var(--brass-ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
