/* Colours taken from the logo (deep red, gold) and the temple stone. */
:root {
  --red: #7a1414;
  --gold: #d9a520;
  --stone: #e4e1da;
  --stone-dark: #6f6a62;
  --ink: #222;
  --paper: #fbfaf7;
  --link: #8a1c1c;
  --radius: 6px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: linear-gradient(#6f6a62, #b9b4ab 400px, #d6d2ca);
  color: var(--ink);
  font: 17px/1.6 Georgia, "Times New Roman", serif;
}
a { color: var(--link); }
a:hover { color: var(--red); }
img, video { max-width: 100%; height: auto; }
iframe { display: block; width: 100%; height: 400px; border: 0; }
h1, h2, h3, .site-title, .menu, .sidebar h2, .button {
  font-family: "Helvetica Neue", Arial, sans-serif;
}
h1 { font-size: 1.7rem; border-bottom: 2px solid var(--ink); padding-bottom: .3rem; margin-top: 0; }
h2 { font-size: 1.3rem; }

.frame { max-width: 1100px; margin: 0 auto; background: var(--paper); box-shadow: 0 0 20px rgba(0,0,0,.35); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 2rem; background: var(--stone); }
.brand { text-decoration: none; color: var(--ink); }
.site-title { display: block; font-size: 2.3rem; font-weight: 700; line-height: 1.1; }
.tagline { display: block; font-style: italic; font-weight: 700; max-width: 32rem; margin-top: .3rem; }
.logo { width: 96px; height: 96px; flex-shrink: 0; }
.banner { display: block; width: 100%; height: auto; aspect-ratio: 1024 / 220; object-fit: cover; }

/* Menu */
.menu { background: #3b3833; position: sticky; top: 0; z-index: 10; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; flex-wrap: wrap; justify-content: center; }
.menu a { display: block; padding: .65rem .8rem; color: #f3efe6; text-decoration: none; font-size: .95rem; }
.menu a:hover, .menu a[aria-current] { background: var(--red); color: #fff; }
.menu li { position: relative; }
.menu li ul { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: #3b3833; box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.menu-toggle { display: none; }

/* Columns */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; padding: 1.5rem 2rem 2rem; }
.sidebar section { background: var(--stone); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; font-size: .92rem; }
.sidebar h2 { font-size: 1.05rem; margin: 0 0 .5rem; border-bottom: 2px solid var(--ink); padding-bottom: .2rem; }
.sidebar ul { margin: 0; padding-left: 1.1rem; }
.sidebar .inline { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .8rem; }
.sidebar p { overflow-wrap: anywhere; }

/* Content */
figure { margin: 1rem auto; text-align: center; }
figure img { display: block; margin: 0 auto; border-radius: 3px; }
figcaption { font: italic .85rem/1.4 "Helvetica Neue", Arial, sans-serif; color: #444; margin-top: .4rem; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
article::after { content: ""; display: table; clear: both; }
article p:has(> a > img), article p:has(> img) { text-align: center; }

.gallery { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; margin: 1.5rem 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.video { position: relative; aspect-ratio: 16 / 9; margin: 1.5rem 0; }
.video iframe { position: absolute; inset: 0; height: 100%; }
video { display: block; width: 100%; margin: 1.5rem 0; }
.track { margin: 1rem 0; }
.track audio { width: 100%; }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-family: "Helvetica Neue", Arial, sans-serif; font-size: .95rem; }
th, td { border: 1px solid #ccc; padding: .45rem .6rem; text-align: left; vertical-align: top; }
thead th, tr:first-child td strong { background: var(--stone); }

.ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; margin: 1rem 0; }
.ticks h3 { grid-column: 1 / -1; margin: 0; }
.tick { background: var(--gold); padding: .6rem; border-radius: var(--radius); text-align: center; font-size: .92rem; }

blockquote { margin: 1.2rem 0; padding: .6rem 1rem; background: var(--stone); border-left: 4px solid var(--gold); }
.booking { background: var(--stone); border-radius: var(--radius); padding: 1rem 1.3rem; margin-bottom: 2rem; }
.booking h2 { margin-top: 0; }
.button { display: inline-block; background: var(--red); color: #fff; padding: .6rem 1.1rem; border-radius: var(--radius); text-decoration: none; font-weight: 700; }
.button:hover { background: #5c0d0d; color: #fff; }
.small, .meta { font-size: .85rem; color: #555; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; clear: both; }
.updates li { margin: .2rem 0; }

.site-footer { background: #3b3833; color: #ddd; text-align: center; padding: 1rem; font-size: .85rem; }
.site-footer a { color: #fff; }

/* Lightbox for gallery images */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog.lightbox img { max-width: 95vw; max-height: 88vh; display: block; }
dialog.lightbox p { color: #fff; text-align: center; font-family: sans-serif; margin: .4rem 0 0; }

/* Phones and small tablets */
@media (max-width: 820px) {
  body { font-size: 16px; }
  .site-header { padding: 1rem; }
  .site-title { font-size: 1.6rem; }
  .tagline { font-size: .85rem; }
  .logo { width: 64px; height: 64px; }
  .columns { grid-template-columns: 1fr; padding: 1rem; }
  .menu-toggle { display: block; width: 100%; padding: .7rem 1rem; background: none; border: 0; color: #fff; font: 700 1rem sans-serif; text-align: left; cursor: pointer; }
  .menu > ul { display: none; flex-direction: column; }
  .menu.open > ul { display: flex; }
  .menu li ul { display: block; position: static; box-shadow: none; min-width: 0; }
  .menu li ul a { padding-left: 2rem; font-size: .9rem; }
  .alignleft, .alignright { float: none; max-width: 100%; margin: 1rem auto; }
}

/* Booking form */
.booking form { display: grid; gap: .8rem; }
.booking label { display: grid; gap: .25rem; font: .92rem "Helvetica Neue", Arial, sans-serif; }
.booking input, .booking select, .booking textarea { font: 1rem Georgia, serif; padding: .45rem .5rem; border: 1px solid #aaa; border-radius: 4px; background: #fff; width: 100%; }
.booking .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.booking fieldset { border: 1px solid #c8c3b8; border-radius: 4px; padding: .5rem .8rem .7rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.booking legend { font: .92rem "Helvetica Neue", Arial, sans-serif; padding: 0 .3rem; }
.booking label.check { display: flex; align-items: center; gap: .35rem; }
.booking label.check input { width: auto; }
.booking .trap { position: absolute; left: -9999px; }
.booking button { border: 0; cursor: pointer; justify-self: start; font-size: 1rem; }
.notice { background: #f8d7d7; border-left: 4px solid var(--red); padding: .6rem .8rem; }
@media (max-width: 600px) { .booking .row { grid-template-columns: 1fr; } }
