:root {
  --oat: #e6e1d3;
  --oat-line: #cfc6b0;
  --ink: #2a211b;
  --ink-soft: #5b4e44;
  --hearth: #241a15;
  --hearth-ink: #ede6d6;
  --hearth-soft: #b9ac98;
  --clay: #5c2e25;
  --clay-card: #6b3a30;
  --clay-ink: #f1e6d8;
  --straw: #dcd5bc;
  --tile: #eadfc2;
  --tile-edge: #b9a272;
  --blue: #23559a;
  --blue-dark: #1b4580;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --slab: "Zilla Slab", Georgia, serif;
  --gl: 20px;
  --gr: 20px;
}
@media (min-width: 1000px) { :root { --gl: 132px; --gr: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--oat);
  color: var(--ink);
  font: 400 15px/1.7 var(--mono);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .track:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 3px;
}
.dark a:focus-visible, .dark button:focus-visible, .dark summary:focus-visible { outline-color: var(--tile); }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 96px; top: 24px; z-index: 50; background: var(--tile); padding: 8px 12px; }

.wrap {
  width: min(1100px, 100% - var(--gl) - var(--gr));
  margin-left: max(var(--gl), (100% - 1100px) / 2);
}

/* Headings */
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 68%; font-weight: 800; line-height: .94; text-transform: uppercase; letter-spacing: -.005em; }
h2 { font-size: clamp(42px, 5.2vw, 66px); }
h3 { font-size: clamp(34px, 3.8vw, 48px); }
.aside { display: block; margin: 12px 0 0; font: 400 15px/1.4 var(--mono); }

/* Wooden letter tiles */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 4px; margin: 0; }
.word { display: flex; gap: 4px; }
.word + .word { margin-left: clamp(14px, 3vw, 36px); }
.tile {
  --r: 0deg;
  display: grid; place-items: center;
  width: clamp(46px, 7.4vw, 96px); aspect-ratio: 1;
  background: var(--tile);
  color: var(--ink);
  font: 700 clamp(34px, 5.6vw, 74px)/1 var(--slab);
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: inset 0 -4px 0 var(--tile-edge), 0 6px 14px rgba(0,0,0,.28);
  transform: rotate(var(--r));
}
.tile:nth-child(3n+1) { --r: -2.5deg; }
.tile:nth-child(3n+2) { --r: 1.5deg; }
.tile:nth-child(4n) { --r: -1deg; background: #e2d6b5; }
/* "Backpackers" sits on its own row; on narrow screens its tiles shrink so all 11 fit. */
.word.long { flex-basis: 100%; justify-content: center; margin-left: 0; }
.word.long .tile { width: min(clamp(46px, 7.4vw, 96px), calc((100vw - 40px - 10 * 4px) / 11)); font-size: min(clamp(34px, 5.6vw, 74px), calc((100vw - 40px - 10 * 4px) / 11 * .74)); }
@media (prefers-reduced-motion: no-preference) {
  /* Hover: the tile under the mouse lifts and twists, its neighbours shuffle a little. */
  .tiles .tile { transition: transform .22s cubic-bezier(.3, .8, .4, 1.25); }
  .tiles .tile:hover { transform: translateY(-7px) rotate(calc(var(--r) * -2.5)); }
  .tiles .tile:hover + .tile { transform: translate(3px, -2px) rotate(calc(var(--r) + 2deg)); }
  .tiles .tile:has(+ .tile:hover) { transform: translate(-3px, -2px) rotate(calc(var(--r) - 2deg)); }
  .hero .tile { animation: drop .5s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
  @keyframes drop { from { opacity: 0; transform: translateY(-12px) rotate(var(--r)); } }
}

/* Fixed brand tiles and round buttons */
.rail { position: fixed; left: 32px; top: 50%; transform: translateY(-50%); z-index: 20; display: none; flex-direction: column; gap: 6px; text-decoration: none; }
.rail .tile { width: 40px; font-size: 24px; box-shadow: inset 0 -3px 0 var(--tile-edge), 0 3px 8px rgba(0,0,0,.25); }
@media (min-width: 1000px) { .rail { display: flex; } }

.round {
  position: fixed; left: 16px; z-index: 30;
  display: grid; place-items: center;
  width: 72px; height: 72px; border-radius: 50%;
  border: 0; cursor: pointer;
  font: 500 13px/1.25 var(--mono); text-align: center; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.menu-btn { top: 16px; background: var(--tile); color: var(--ink); }
.menu-btn svg { width: 28px; height: 28px; }
.book-btn { bottom: 16px; background: var(--blue); color: #fff; width: 80px; height: 80px; }
.book-btn:hover { background: var(--blue-dark); }
.dock { display: contents; }
@media (max-width: 699px) {
  body { padding-bottom: 64px; }
  .dock { display: flex; justify-content: space-between; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: 64px; padding: 0 12px; background: var(--hearth); box-shadow: 0 -2px 12px rgba(0,0,0,.2); }
  .dock .round { position: static; width: 48px; height: 48px; box-shadow: none; }
  .dock .menu-btn svg { width: 22px; height: 22px; }
  .dock .book-btn { width: auto; height: 44px; padding: 0 22px; border-radius: 4px; font-size: 14px; }
  .dock .book-btn br { display: none; }
  .menu .close { top: auto; bottom: 8px; left: 12px; width: 48px; height: 48px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 4px;
  background: var(--ink); color: var(--oat);
  font: 500 14px/1.2 var(--mono); text-decoration: none;
}
.btn:hover { background: #000; }
.btn svg { width: 16px; height: 16px; flex: none; }
.dark .btn { background: var(--tile); color: var(--ink); }
.dark .btn:hover { background: #fff6dd; }
.btn.blue { background: var(--blue); color: #fff; }
.btn.blue:hover { background: var(--blue-dark); }

/* Hero */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center;
  padding: 120px 20px 140px;
  color: var(--hearth-ink); background: var(--hearth);
  isolation: isolate; overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 45%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(36,26,21,.58), rgba(36,26,21,.82) 75%), rgba(60,30,15,.25); }
.hero-inner { max-width: 640px; text-align: center; }
.hero .sub { margin: 28px 0 0; font-size: 16px; }
.hero .lede { margin: 16px auto 32px; max-width: 34em; font-size: 15px; color: #e4dccb; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .btn.ghost { background: transparent; color: var(--hearth-ink); box-shadow: inset 0 0 0 1px rgba(237,230,214,.55); }
.hero .btn.ghost:hover { background: rgba(237,230,214,.1); }

/* Rows: photo beside text */
.section { padding: 110px 0; }
.section.tight-top { padding-top: 0; }
.row { display: grid; gap: 28px; align-items: center; }
.row + .row { margin-top: 110px; }
@media (min-width: 860px) {
  .row { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .row.flip > .media { order: 2; }
  .row.flip { grid-template-columns: 1fr 1.1fr; }
}
.row .text > p:first-of-type { margin-top: 24px; }
.row .text .btn { margin-top: 8px; }
.intro { max-width: 640px; margin-bottom: 72px; }
.intro p { margin-top: 24px; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.facts li { padding: 4px 12px; border-radius: 4px; background: rgba(255,255,255,.55); font-size: 13px; line-height: 1.4; }
.dark .facts li { background: rgba(255,255,255,.1); }

/* Carousel */
.carousel { position: relative; border-radius: 10px; overflow: hidden; background: #d4ccb8; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nav-btn, .btn, .round, .foot-nav a, .menu nav a { transition: background-color .15s ease-out, color .15s ease-out; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 20px 36px; color: #fff; font-size: 13px; line-height: 1.4;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.carousel.single figcaption { padding-bottom: 16px; }
.nav-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(36,26,21,.55); color: #fff;
}
.nav-btn:hover { background: rgba(36,26,21,.8); }
.nav-btn svg { width: 18px; height: 18px; }
.nav-btn.prev { left: 12px; }
.nav-btn.next { right: 12px; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.dots span.on { background: #fff; }
.carousel.single .nav-btn, .carousel.single .dots { display: none; }

/* Dorm accordion */
.acc { margin-top: 30px; border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--ink); }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 12px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500;
}
.acc summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 14px; height: 14px; flex: none; color: var(--blue); }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: currentColor; transition: transform .2s; }
.plus::after { transform: rotate(90deg); }
details[open] > summary .plus::after { transform: rotate(0); }
.acc .body { padding: 0 12px 20px; }
.acc ul { margin: 0 0 14px; padding-left: 1.2em; }
.acc .more { font-weight: 500; }

/* Quote */
.quote { padding: 20px 0 120px; }
.quote blockquote { margin: 0; max-width: 900px; }
.quote blockquote p { font: 500 clamp(22px, 2.6vw, 32px)/1.35 var(--display); font-stretch: 92%; letter-spacing: -.01em; }
.quote footer { font-size: 14px; color: var(--ink-soft); }

/* Split: house */
.split { display: grid; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-photo { position: relative; color: var(--hearth-ink); background: var(--hearth); isolation: isolate; padding: 110px 20px 96px var(--gl); }
.split-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.split-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(36,26,21,.78), rgba(36,26,21,.9)); }
.split-photo .inner { max-width: 480px; }
.split-photo p:first-of-type { margin-top: 24px; }
.split-list { background: var(--straw); padding: 96px 20px 96px; }
@media (min-width: 900px) { .split-list { padding: 110px var(--gr) 110px 72px; } .split-photo { padding-right: 56px; } }
.house { max-width: 500px; border-top: 1px solid #b6a582; }
.house details { border-bottom: 1px solid #b6a582; }
.house summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 12px; cursor: pointer; list-style: none;
  font: 800 clamp(26px, 2.6vw, 32px)/1 var(--display); font-stretch: 70%; text-transform: uppercase; color: var(--clay);
}
.house summary::-webkit-details-marker { display: none; }
.house .plus { color: var(--clay); }
.house .body { padding: 0 12px 20px; }
.house .body img { margin-top: 12px; border-radius: 6px; width: 100%; max-width: 300px; aspect-ratio: 4 / 5; object-fit: cover; }

/* Good to know */
.info { background: var(--clay); color: var(--clay-ink); padding: 110px 0; }
.info h2 { text-align: center; margin-bottom: 48px; }

/* Find us */
.contact { margin: 24px 0 28px; padding: 0; list-style: none; }
.contact li { padding: 8px 0; border-bottom: 1px solid var(--oat-line); }
.contact li:first-child { border-top: 1px solid var(--oat-line); }
.contact span { display: inline-block; min-width: 6.5em; color: var(--ink-soft); }

/* Footer */
.site-foot { background: var(--hearth); color: var(--hearth-ink); padding: 100px 0 130px; }
.foot-grid { display: grid; gap: 56px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.site-foot .slogan { font-size: clamp(40px, 5vw, 64px); color: var(--tile); max-width: 12em; }
.plate { display: inline-block; margin: 32px 0 28px; padding: 16px 20px; background: var(--oat); border-radius: 6px; }
.plate img { width: 190px; }
.foot-contact p { margin: 0 0 6px; }
.foot-nav { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (min-width: 900px) { .foot-nav { align-items: flex-end; } }
.foot-nav a { font: 800 26px/1.15 var(--display); font-stretch: 70%; text-transform: uppercase; color: var(--hearth-soft); text-decoration: none; }
.foot-nav a:hover { color: var(--tile); }
.foot-small { margin-top: 56px; font-size: 13px; color: var(--hearth-soft); }
.foot-small a { margin-right: 18px; }

/* Menu dialog */
.menu {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0; padding: 0;
  background: var(--hearth); color: var(--hearth-ink);
}
.menu::backdrop { background: rgba(0,0,0,.5); }
.menu .inner { min-height: 100%; padding: 120px var(--gr) 120px var(--gl); display: grid; gap: 40px; align-content: start; }
@media (min-width: 900px) { .menu .inner { grid-template-columns: 1.3fr 1fr; align-content: center; } }
.menu nav { display: flex; flex-direction: column; gap: 4px; }
.menu nav a { font: 800 clamp(44px, 7vw, 80px)/1 var(--display); font-stretch: 66%; text-transform: uppercase; text-decoration: none; color: var(--tile); }
.menu nav a:hover { color: #fff; }
.menu .close { top: 16px; background: var(--tile); color: var(--ink); position: absolute; }
.menu .plate { margin-top: 0; }

/* Home: short links to info.html */
.house-more { max-width: 500px; margin: 24px 0 0; padding: 0 12px; font-weight: 500; }
.info .lead { max-width: 36em; margin: 0 auto 28px; text-align: center; }
.info .center { text-align: center; margin: 0; }
.info.short { padding: 90px 0; }
.info.short h2 { margin-bottom: 24px; }

/* Info page top */
.page-top { background: var(--hearth); color: var(--hearth-ink); padding: 140px 20px 88px; text-align: center; }
.tiles.sm { column-gap: clamp(14px, 3vw, 36px); }
.tiles.sm .word + .word { margin-left: 0; }
.tiles.sm .tile { width: clamp(36px, 5.2vw, 66px); font-size: clamp(26px, 3.9vw, 50px); }
@media (prefers-reduced-motion: no-preference) {
  .page-top .tile { animation: drop .5s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
}
.page-top .sub { margin: 28px 0 0; font-size: 16px; }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 28px auto 0; padding: 0; list-style: none; max-width: 720px; }
.jump a { color: var(--tile); }

/* Info page blocks */
.narrow { max-width: 820px; }
.terms { margin: 32px 0 32px; border-top: 1px solid var(--ink); }
.terms > div { display: grid; gap: 4px 32px; padding: 18px 12px; border-bottom: 1px solid var(--ink); }
@media (min-width: 700px) { .terms > div { grid-template-columns: 13em 1fr; } }
.terms dt { font-weight: 600; }
.terms dd { margin: 0; }
.terms dd p:last-child { margin-bottom: 0; }
.acc .body p { margin: 0 0 12px; }
.ticks { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(241,230,216,.3); }
.ticks li { padding: 9px 4px; border-bottom: 1px solid rgba(241,230,216,.3); line-height: 1.45; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.line:hover { background: rgba(42,33,27,.08); }
.info .row { align-items: start; }
.row + .narrow { margin-top: 56px; }
