:root {
  --paper: #f7f4df;
  --wine: #701d2a;
  --ink: #30201f;
  --quiet: #624f47;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
::selection { background: var(--wine); color: var(--paper); }
[hidden] { display: none !important; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px; background: var(--paper); transform: translateY(-180%); }
.skip:focus { transform: none; }

.supper-room {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(70px, 8vh, 106px) 6vw;
  display: grid;
  place-items: center;
}
.corner {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--wine);
  font-size: clamp(15px, 1.2vw, 19px);
  transition: color 180ms ease, transform 180ms ease;
}
.corner:hover { color: var(--ink); transform: translateY(-2px); }
.menu-link, .book-link { top: max(17px, 2.7vh); }
.visit-link, .studio-credit { bottom: max(17px, 2.7vh); }
.menu-link, .visit-link { left: max(6vw, env(safe-area-inset-left)); }
.book-link, .studio-credit { right: max(6vw, env(safe-area-inset-right)); }
.studio-credit { position: absolute; z-index: 1; display: grid; justify-items: end; color: var(--wine); font-size: 12px; line-height: 1.2; }
.studio-credit a { display: inline-flex; align-items: center; min-height: 26px; }
.studio-credit a:first-child { color: var(--quiet); }
.studio-credit a:hover { color: var(--ink); }
.room-centre { text-align: center; width: 100%; }
.masthead { color: var(--wine); }
.masthead h1, .sheet h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  margin: 0;
}
.masthead h1 {
  font-size: clamp(95px, min(14vw, 18vh), 184px);
  line-height: .84;
  letter-spacing: -.064em;
  padding-right: .065em;
}
.masthead p, .service { margin: 0; font-size: clamp(13px, 1vw, 16px); line-height: 1.5; }
.masthead p { margin-top: clamp(14px, 2.1vh, 23px); }
figure { margin: clamp(25px, 3.7vh, 44px) auto 0; width: min(100%, 540px, 62vh); }
.dish { display: block; width: 100%; overflow: hidden; cursor: pointer; }
.dish img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.19,1,.22,1);
}
.dish:hover img, .dish:focus-visible img { transform: scale(1.04); }
figcaption { margin-top: 13px; font: italic clamp(18px, 1.45vw, 22px)/1.2 var(--serif); color: var(--wine); }
.service { margin-top: clamp(19px, 3.4vh, 38px); color: var(--quiet); font-size: 12px; }

.sheet-contents { max-width: 560px; margin: auto; }
.sheet-contents .sheet { padding: 60px 20px; }
.menu-switch, .reservation { display: none; }
.enhanced .menu-switch { display: flex; }
.enhanced .reservation { display: grid; }
dialog {
  width: min(520px, calc(100% - 28px));
  max-height: calc(100svh - 28px);
  max-width: none;
  padding: 52px clamp(20px, 4vw, 50px) 38px;
  color: var(--wine);
  background: #fffcf1;
  border: 0;
  overscroll-behavior: contain;
}
dialog[open] { animation: sheet-arrive 280ms cubic-bezier(.2,.75,.2,1) both; }
dialog::backdrop { background: rgba(46, 17, 19, .52); }
body:has(dialog[open]) { overflow: hidden; }
.sheet-close { display: grid; place-items: center; border: 0; background: transparent; position: absolute; right: 9px; top: 9px; width: 44px; height: 44px; }
.sheet { text-align: center; }
.sheet h2 { font-size: clamp(53px, 9vw, 74px); line-height: .98; letter-spacing: -.055em; }
.sheet h2:focus, .slip-detail:focus { outline: none; }
.sheet small { display: block; font-size: 12px; line-height: 1.5; color: var(--quiet); }
.menu-switch { justify-content: center; gap: 16px; margin-top: 21px; }
.menu-switch button {
  border: 0;
  background: transparent;
  font-size: 14px;
  min-height: 44px;
  color: var(--quiet);
  padding: 5px 9px;
}
.menu-switch button[aria-pressed="true"] { color: var(--wine); font-weight: 600; }
.menu-switch button[aria-pressed="true"]::before { content: '• '; }
.menu-list, .visit-details { margin: 22px auto 28px; }
.menu-list p { margin: 12px 0; font: 22px/1.23 var(--serif); color: var(--ink); }
.menu-list p span { display: block; font: 12px/1.7 var(--sans); color: var(--quiet); }
.menu-list .menu-note { font: italic 18px/1.4 var(--serif); }
.sheet-action {
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  min-height: 46px;
  margin-top: 21px;
  color: #fff9ee;
  background: var(--wine);
  font-size: 14px;
  transition: background 200ms;
}
.sheet-action:hover { background: #411521; }
.visit-details p { font: 25px/1.22 var(--serif); color: var(--ink); }
.reservation { margin: 28px auto 0; gap: 10px; align-items: center; justify-items: center; }
.reservation > label, legend { font-size: 13px; }
.reservation input[type="date"] { width: min(100%, 225px); min-height: 44px; background: #fffdf4; border: 1px solid #ad978e; border-radius: 0; color: var(--ink); padding: 8px 12px; text-align: center; }
fieldset { padding: 0; border: 0; margin: 8px 0; min-width: 0; }
legend { text-align: center; margin: auto; margin-bottom: 6px; }
.choices { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choices span { display: grid; place-items: center; padding: 2px 7px; min-width: 42px; min-height: 44px; font-size: 14px; }
.choices input:checked + span { color: var(--paper); background: var(--wine); }
.choices input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.times span { padding: 5px 12px; }
.reservation .sheet-action { margin-top: 3px; }
.slip-detail { font: 33px/1.27 var(--serif); color: var(--ink); margin: 34px 0 22px; }
@keyframes sheet-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  .supper-room { padding: 83px 7vw; }
  .corner { font-size: 14px; }
  .studio-credit { font-size: 11px; }
  .menu-link, .book-link { top: max(12px, env(safe-area-inset-top)); }
  .visit-link, .studio-credit { bottom: max(12px, env(safe-area-inset-bottom)); }
  .masthead h1 { font-size: clamp(92px, 23vw, 124px); }
  .masthead p { max-width: 250px; margin: 15px auto 0; }
  figure { width: min(100%, 54vh); margin-top: 28px; }
  figcaption { font-size: 18px; }
  .service { margin-top: 20px; }
}
@media (max-height: 600px) and (min-width: 601px) {
  .supper-room { padding: 52px 9vw; }
  .masthead h1 { font-size: 78px; }
  .masthead p { margin-top: 8px; }
  figure { max-width: 45vh; margin-top: 15px; }
  .service { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dish:hover img, .dish:focus-visible img, .corner:hover { transform: none; }
}
