/* ==========================================================================
   Zanzibar 903 · Guest Compendium
   Palette and type per the 903 style sheet: Shell paper, Granite ink,
   one accent at a time. No shadows, radii 0-2px only.
   ========================================================================== */

/* ---- Self-hosted fonts (latin subsets, OFL licensed) ------------------- */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/newsreader-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/newsreader-500-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/literata-400-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/literata-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/ibmplexmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/ibmplexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --shell: #F4EFE6;        /* page background · the walls at midday */
  --panel: #FDFBF6;        /* cards and strips */
  --dune: #DCCDB0;         /* selection, image placeholder */
  --leather: #C7A478;      /* divider glyph */
  --oak: #A5825C;          /* overlines, tags */
  --muted: #6E6154;        /* meta lines, captions */
  --border: #D8CDB9;       /* structural borders */
  --hairline: #E2D8C5;     /* row rules */
  --deep-water: #31678D;   /* links */
  --norfolk: #43503B;      /* link hover */
  --granite: #3E352D;      /* ink */

  --serif-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --serif-body: 'Literata', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;

  --pad-inline: clamp(20px, 5vw, 28px);
  --nav-height: 47px;
}

/* ---- Base ---------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--shell);
}
body {
  color: var(--granite);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--dune); }

a {
  color: var(--deep-water);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--norfolk); }
:focus-visible {
  outline: 2px solid var(--deep-water);
  outline-offset: 3px;
  border-radius: 1px;
}

h1, h2, h3, h4 { text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 12px; }

.container {
  max-width: 740px;
  margin: 0 auto;
  padding-top: clamp(44px, 8vw, 64px);
  padding-bottom: calc(clamp(64px, 10vw, 88px) + env(safe-area-inset-bottom, 0px));
  padding-left: calc(var(--pad-inline) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--pad-inline) + env(safe-area-inset-right, 0px));
}

/* ---- Header -------------------------------------------------------------- */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: 36px;
}
.masthead-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  align-self: stretch;
}
.masthead p { max-width: min(56ch, 100%); }

.overline {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--oak);
}

h1 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(34px, 3vw + 23px, 46px);
  line-height: 1.08;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero-wrap { margin-bottom: 32px; }
.hero {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  background: var(--dune);
}

/* ---- Section nav --------------------------------------------------------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 52px;
  background: var(--shell);
}
.nav a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  padding: 6px 2px;      /* invisible tap-target padding */
  white-space: nowrap;
}
.nav a[aria-current] {
  color: var(--norfolk);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--leather);
}

section { scroll-margin-top: 16px; }

@media (max-width: 720px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin-left: calc(-1 * var(--pad-inline) - env(safe-area-inset-left, 0px));
    margin-right: calc(-1 * var(--pad-inline) - env(safe-area-inset-right, 0px));
    padding: 9px calc(var(--pad-inline) + env(safe-area-inset-left, 0px));
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 22px, #000 calc(100% - 22px), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 2px; }
  section { scroll-margin-top: calc(var(--nav-height) + 12px); }
}

/* ---- Sections ------------------------------------------------------------ */
section { margin-bottom: 34px; }

.section-overline { margin-bottom: 6px; }
h2 {
  margin: 0 0 14px 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(26px, 1.3vw + 21px, 30px);
  line-height: 1.15;
}

.divider {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.measure { max-width: 62ch; }

/* ---- Fact rows (Wi-Fi, Practical) ---------------------------------------- */
.fact-group { display: flex; flex-direction: column; }
.fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.fact-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.fact-value {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}
.select-all { -webkit-user-select: all; user-select: all; }

/* ---- Wi-Fi --------------------------------------------------------------- */
#wifi h2 { margin-bottom: 16px; }
.wifi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 18px 24px;
}
.wifi-grid {
  display: grid;
  grid-template-columns: 1fr 188px;
  gap: 28px;
  align-items: center;
}
.wifi-facts { display: flex; flex-direction: column; }
.wifi-qr {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  margin: 0;
}
.wifi-qr img { width: 168px; height: 168px; display: block; }
.wifi-qr figcaption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.wifi-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  max-width: 64ch;
}
@media (max-width: 540px) {
  .wifi-grid { grid-template-columns: 1fr; gap: 20px; }
}

.copy {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 4px 9px;
  margin-left: 12px;
  cursor: pointer;
}
.copy:hover { color: var(--granite); border-color: var(--oak); }
.copy.done { color: var(--norfolk); border-color: var(--norfolk); }

/* ---- Sub-entries (Balcony) ------------------------------------------------ */
.subs { display: flex; flex-direction: column; gap: 20px; }
.sub { display: flex; flex-direction: column; gap: 5px; }
.sub h3 {
  margin: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
}

/* ---- Eat & drink entries -------------------------------------------------- */
.entries { display: flex; flex-direction: column; }
.entry {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.entry:last-child { border-bottom: 1px solid var(--hairline); }
.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
  flex-wrap: wrap;
}
.entry-head h3 {
  margin: 0;
  font-family: var(--serif-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
}
.entry-meta {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  white-space: nowrap;
}
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--oak);
}
.entry p, .item p { font-size: 15px; max-width: 66ch; }

/* ---- Map links ------------------------------------------------------------ */
.map {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 0 6px 4px;   /* invisible tap-target padding */
  margin: -6px 0;
}
.map:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.map svg { margin-left: 3px; vertical-align: 0; }

/* ---- Things to do ---------------------------------------------------------- */
.todo-note {
  margin-bottom: 24px;
  max-width: 58ch;
  font-style: italic;
  color: var(--muted);
  font-size: 15px;
}
.group-title {
  margin: 0 0 16px 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
}
.items { display: flex; flex-direction: column; gap: 18px; }
.items + .group-title { margin-top: 32px; }
.item { display: flex; flex-direction: column; gap: 3px; }
.item h4 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
}
.seasonal {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--oak);
  white-space: nowrap;
}
.meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- Practical ------------------------------------------------------------ */
#practical h2 { margin-bottom: 16px; }
#practical .fact { padding: 10px 0; }
#practical .fact-prose { display: inline; font-size: 15px; font-family: var(--serif-body); letter-spacing: 0; }
#practical .fact-prose a { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.04em; white-space: nowrap; }
.parking-note { margin-top: 14px; }

/* ---- Come back card -------------------------------------------------------- */
#comeback { margin-bottom: 56px; }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 28px clamp(22px, 4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h2 {
  margin: 0;
  font-size: clamp(24px, 1.2vw + 20px, 28px);
}
.card p { max-width: 56ch; }

/* ---- Footer ----------------------------------------------------------------- */
footer {
  border-top: 2px solid var(--granite);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.brand-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.brand-panel img { display: block; width: auto; }
.brand-panel .mantra { height: 26px; }
.brand-panel .accor { height: 42px; }
.brand-sep { width: 1px; height: 38px; background: var(--hairline); flex: none; }
.attribution {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.attribution strong { font-weight: 600; color: var(--granite); }
.colophon {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---- Motion ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Print: the page doubles as a printable handout --------------------------- */
@media print {
  html, body { background: #fff; }
  .nav, .hero-wrap, .copy, .map { display: none !important; }
  a { color: var(--granite); text-decoration: none; }
  .fact-group, .sub, .entry, .item, .card, .wifi-card, .wifi-qr { break-inside: avoid; }
  section { margin-bottom: 36px; }
  .divider { margin-bottom: 36px; }
  .container { padding: 0; max-width: none; }
  @page { margin: 18mm; }
}
