/* Kalan: banana leaf green, rice paper cream, annatto red for prices and booking. */
:root {
  color-scheme: light;
  --leaf: #1e3b2c;
  --leaf-light: #2a4f3b;
  --paper: #f5eedf;
  --paper-deep: #ebe0cb;
  --ink: #1b1a16;
  --muted: #5a5245;
  --atsuete: #a8380f;
  --atsuete-dark: #8a2d0b;
  --calamansi: #e6c350;
  --rule: #cdbf9f;
  --error: #9b1c1c;
  --display: "Young Serif", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 72px;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
  max-width: 68ch;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--atsuete);
  outline-offset: 3px;
}

.hero :focus-visible,
.upstairs :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--calamansi);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 16px;
}

.skip:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--atsuete);
  border-radius: 999px;
  background: var(--atsuete);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--atsuete-dark);
  border-color: var(--atsuete-dark);
}

.btn-small {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--leaf);
}

.btn-ghost-dark {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost-dark:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.btn-light {
  background: var(--calamansi);
  border-color: var(--calamansi);
  color: var(--leaf);
}

.btn-light:hover {
  background: var(--paper);
  border-color: var(--paper);
}

.btn-block {
  width: 100%;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* Top bar and header */
.topbar {
  background: var(--leaf);
  color: var(--paper);
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  max-width: 1200px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  font-size: 30px;
  text-decoration: none;
  color: var(--leaf);
  letter-spacing: -0.01em;
}

.main-nav {
  display: none;
  gap: 28px;
  font-weight: 500;
}

.main-nav a,
.mobile-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn-small {
  display: none;
}

/* Mobile menu dialog */
dialog {
  width: min(420px, calc(100% - 24px));
  max-height: 90dvh;
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
}

dialog::backdrop {
  background: rgb(27 26 22 / 0.6);
}

.modal-open {
  overflow: hidden;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dialog-head h2 {
  font-size: 28px;
  color: var(--leaf);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  font-size: 20px;
  font-weight: 500;
}

/* Hero */
.hero {
  background: var(--leaf);
  color: var(--paper);
  padding: 40px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(38px, 9vw, 72px);
  letter-spacing: -0.015em;
  max-width: 14ch;
}

.hero-lede {
  margin-top: 20px;
  font-size: 18px;
  color: #e8dfcb;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  font-size: 16px;
  color: #d6ccb5;
}

.hero-photo {
  margin: 0 calc(var(--gutter) * -1);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Menu */
.menu-section {
  padding: 72px 0 80px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atsuete);
  margin-bottom: 10px;
}

.section-head h2,
.story h2,
.upstairs h2,
.book h2,
.visit h2 {
  font-size: clamp(32px, 6vw, 48px);
  color: var(--leaf);
}

.section-lede {
  margin-top: 14px;
  color: var(--muted);
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1) 28px;
  padding: 0 var(--gutter) 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs [role="tab"] {
  flex: none;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

.tabs [role="tab"]:hover {
  border-color: var(--leaf);
}

.tabs [role="tab"][aria-selected="true"] {
  background: var(--leaf);
  border-color: var(--leaf);
  color: var(--paper);
}

.panel + .panel {
  margin-top: 40px;
}

.has-tabs .panel + .panel {
  margin-top: 0;
}

.panel-title {
  font-size: 26px;
  color: var(--leaf);
  margin-bottom: 8px;
}

.has-tabs .panel-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.dishes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dish {
  padding: 18px 0;
  border-bottom: 1px dashed var(--rule);
}

.dish-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.dish h4 {
  font-size: 21px;
  color: var(--ink);
}

.leader {
  flex: 1;
  min-width: 16px;
  border-bottom: 2px dotted var(--muted);
  transform: translateY(-5px);
  opacity: 0.55;
}

.price {
  font-weight: 700;
  font-size: 18px;
  color: var(--atsuete);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--leaf);
  white-space: nowrap;
}

.kamayan-note {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--paper-deep);
  border-left: 4px solid var(--leaf);
  max-width: none;
}

.menu-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.menu-photos figure {
  margin: 0;
}

.menu-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Story */
.story {
  padding: 72px 0 80px;
  background: var(--paper-deep);
}

.story-grid {
  display: grid;
  gap: 40px;
}

.story-photos {
  position: relative;
  padding-bottom: 18%;
}

.story-photo-a {
  width: 78%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-photo-b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 6px solid var(--paper-deep);
}

.story-copy p {
  margin-top: 18px;
  font-size: 17px;
}

.facts {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  border-top: 1px solid var(--rule);
}

.facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 0;
  text-align: right;
  color: var(--muted);
}

/* Upstairs room */
.upstairs {
  padding: 72px 0 80px;
  background: var(--leaf);
  color: var(--paper);
}

.upstairs h2 {
  color: var(--paper);
}

.upstairs-grid {
  display: grid;
  gap: 40px;
}

.upstairs-copy > p {
  margin-top: 18px;
  font-size: 17px;
  color: #e8dfcb;
}

.room-facts {
  margin: 28px 0 32px;
}

.room-facts div {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-top: 1px solid rgb(245 238 223 / 0.22);
}

.room-facts dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--calamansi);
}

.room-facts dd {
  margin: 0;
  font-size: 18px;
}

.upstairs-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
}

/* Booking */
.book {
  padding: 72px 0 80px;
}

.book-grid {
  display: grid;
  gap: 32px;
}

.book-intro > p {
  margin-top: 14px;
  font-size: 17px;
}

.policy {
  margin: 20px 0 0;
  padding: 0 0 0 20px;
  color: var(--muted);
}

.policy li + li {
  margin-top: 6px;
}

.book-call {
  margin-top: 20px;
  font-weight: 600;
}

.book-call a {
  color: var(--atsuete);
  text-underline-offset: 4px;
}

.book-card {
  background: #fffaf0;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 24px 20px;
}

.field-row {
  display: grid;
  gap: 0 16px;
}

.field-group {
  margin-bottom: 16px;
}

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #8a7d60;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

select.field:disabled {
  background: var(--paper);
  color: var(--muted);
}

textarea.field {
  resize: vertical;
}

.field[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 2px;
}

.error {
  display: block;
  font-size: 14px;
  color: var(--error);
}

.help {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.booking-form .btn-block {
  margin-top: 16px;
}

.confirmation {
  text-align: left;
}

.confirmation-icon {
  width: 44px;
  height: 44px;
  color: var(--leaf);
}

.confirmation h3 {
  margin-top: 14px;
  font-size: 28px;
  color: var(--leaf);
}

.confirmation p {
  margin-top: 10px;
  font-size: 17px;
}

.confirmation .demo-note {
  font-size: 14px;
  color: var(--muted);
}

.confirmation .btn {
  margin-top: 22px;
}

/* Visit */
.visit {
  padding: 72px 0 80px;
  background: var(--paper-deep);
}

.visit-grid {
  display: grid;
  gap: 36px;
}

.status-line {
  margin-top: 14px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--paper);
  font-size: 15px;
  font-weight: 600;
}

.status-badge.is-closed {
  background: var(--ink);
}

address {
  margin-top: 20px;
  font-style: normal;
  font-size: 17px;
  line-height: 1.8;
}

address a {
  text-underline-offset: 4px;
}

.hours {
  width: 100%;
  max-width: 460px;
  margin-top: 24px;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 500;
}

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours tr.is-today th,
.hours tr.is-today td {
  font-weight: 700;
  color: var(--leaf);
}

.getting-here {
  margin-top: 20px;
  color: var(--muted);
}

.map {
  margin: 0;
}

.map svg {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e8dfcb;
  padding: 48px 0 40px;
  font-size: 15px;
}

.site-footer .wordmark {
  color: var(--paper);
  font-size: 28px;
  margin-bottom: 8px;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-grid p + p {
  margin-top: 6px;
}

.site-footer a {
  text-underline-offset: 4px;
}

.fine {
  font-size: 14px;
  color: #c9bfa8;
}

/* Mobile action bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

.mobile-bar .btn {
  min-height: 46px;
  padding: 8px 12px;
}

/* Reveal (photos only) */
.will-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.will-reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .field-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-actions .btn-small {
    display: inline-flex;
  }

  .book-card {
    padding: 32px;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 17px;
    padding-bottom: 0;
  }

  .mobile-bar {
    display: none;
  }

  .dish p {
    font-size: 17px;
  }

  .hero {
    padding: 0;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .hero-copy {
    padding: 64px 0;
  }

  .hero-photo {
    margin: 0 calc(var(--gutter) * -1) 0 0;
    align-self: stretch;
  }

  .hero-photo img {
    height: 100%;
    aspect-ratio: 4 / 5;
  }

  .menu-section,
  .story,
  .upstairs,
  .book,
  .visit {
    padding: 104px 0 112px;
  }

  .tabs {
    margin: 0 0 32px;
    padding: 0;
    overflow: visible;
    flex-wrap: wrap;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }

  .upstairs-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 64px;
  }

  .room-facts div {
    grid-template-columns: 200px 1fr;
    align-items: baseline;
  }

  .book-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 64px;
    align-items: start;
  }

  .visit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .main-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }

  .menu-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 64px;
    align-items: start;
  }

  .menu-photos {
    grid-template-columns: 1fr;
    position: sticky;
    top: 100px;
  }

  .hero-copy {
    padding: 96px 0;
  }
}

@media (min-width: 1200px) {
  .hero-photo {
    margin-right: calc((100vw - 1200px) / -2 - var(--gutter));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .will-reveal {
    opacity: 1;
    transform: none;
  }
}
