:root {
  --ink: #183236;
  --night: #173f43;
  --teal: #23716d;
  --sun: #f1b35b;
  --paper: #f6f2e9;
  --clay: #a84f3d;
  --mist: #e5ece8;
  --white: #fffdf8;
  --line: #ccd8d3;
  --muted: #53696a;
  --shadow: 0 14px 38px rgba(24, 50, 54, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 ui-rounded, "Avenir Next", Avenir, system-ui, sans-serif;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid #0d6b70; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.section-block { scroll-margin-top: 18px; }

.topbar { background: var(--night); color: #fff; padding: 13px 0; }
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
}
.topbar a { text-underline-offset: 3px; }
.offline { color: #ffdc9a; }
[hidden] { display: none !important; }

.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 22px 0 14px;
}
.mark { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.mark b { display: block; font-size: 1.04rem; letter-spacing: 0.02em; }
.mark small { display: block; color: #587074; }
.sigil { width: 42px; height: 42px; border-radius: 13px; background: var(--night); position: relative; }
.sigil::after {
  content: "";
  position: absolute;
  inset: 10px 15px;
  background: var(--sun);
  clip-path: polygon(50% 0, 100% 100%, 50% 74%, 0 100%);
}
.hero { padding: 28px 0 38px; }
.hero-grid {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 410px;
  overflow: hidden;
  border-radius: 26px;
  padding: 34px;
}
.hero-art { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(246,242,233,.97), rgba(246,242,233,.80) 43%, rgba(246,242,233,.13) 72%);
}
.hero-copy { max-width: 650px; }
.image-caption {
  position: absolute;
  right: 14px;
  bottom: 10px;
  margin: 0;
  color: #fff;
  font-size: 0.72rem;
  text-shadow: 0 1px 4px #173f43;
}
.eyebrow {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  max-width: 720px;
  margin: 8px 0 16px;
  font: clamp(2.55rem, 6vw, 5rem)/0.95 Georgia, serif;
  letter-spacing: -0.04em;
}
.lede { max-width: 650px; color: #435b5e; font-size: 1.13rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 11px 15px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { border-color: var(--night); background: var(--night); color: #fff; }
.primary-guide-trigger { gap: 12px; min-width: 210px; padding: 13px 19px; }
.primary-guide-trigger span { font-size: 1.1rem; }

main { padding-bottom: 60px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 15px;
}
.section-head h2 { margin: 0; font: 2rem/1 Georgia, serif; }
.section-head p { max-width: 530px; margin: 0; color: #5d7373; font-size: 0.92rem; }
.directory { border: 1px solid var(--line); border-radius: 22px; background: var(--white); padding: 17px; }
.guide-options { margin-bottom: 16px; border-radius: 18px; background: #edf3ef; padding: 18px; }
.guide-intro { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.guide-intro h3 { margin: 2px 0 0; font: 1.55rem/1.1 Georgia, serif; }
.guide-intro p { max-width: 430px; margin: 0; color: var(--muted); font-size: 0.9rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.guide-choice {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 10px;
  min-height: 100px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  padding: 15px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.guide-choice:hover, .guide-choice:focus-visible { transform: translateY(-2px); border-color: #8eaaa3; box-shadow: 0 8px 20px rgba(24, 50, 54, .09); }
.guide-choice > span { grid-row: 1 / 3; color: var(--teal); font-size: 1.4rem; line-height: 1.1; }
.guide-choice strong { align-self: end; font-size: 1rem; }
.guide-choice small { color: var(--muted); line-height: 1.35; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; border-top: 1px solid var(--line); padding-top: 13px; }
.guide-links a { color: #155c59; font-size: 0.86rem; font-weight: 750; text-underline-offset: 3px; }
.controls { margin-bottom: 4px; }
.search { display: flex; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search span { padding: 11px; color: #607779; }
.search input { width: 100%; border: 0; padding: 11px 8px; outline: 0; }
.results-head { display: flex; justify-content: flex-end; min-height: 4px; }
.count { margin: 10px 0 9px; color: #647879; font-size: 0.88rem; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.card { display: flex; flex-direction: column; gap: 9px; border: 1px solid var(--line); border-radius: 15px; padding: 16px; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.tag { color: var(--teal); font-size: 0.73rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.card h3 { margin: 3px 0 0; font-size: 1.06rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.badge { flex: none; border-radius: 999px; background: #fff0d6; padding: 4px 7px; color: #70420d; font-size: 0.74rem; }
.card details { margin-top: auto; }
.card summary { color: #17635f; font-size: 0.88rem; font-weight: 760; cursor: pointer; }
.detail { margin-top: 8px; color: var(--muted); font-size: 0.86rem; }
.detail a { color: #145e5a; font-weight: 700; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.link {
  border: 0;
  border-radius: 9px;
  background: #e9f2ed;
  padding: 8px 10px;
  color: #125b58;
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}
.empty { grid-column: 1 / -1; padding: 36px; color: #5d7373; text-align: center; }

.panel { margin: 38px 0; border: 1px solid var(--line); border-radius: 22px; background: var(--white); padding: 24px; }
.lone-groups { display: grid; gap: 9px; }
.lone-groups > details { border: 1px solid var(--line); border-radius: 14px; background: #fbfaf6; padding: 0 15px; }
.lone-groups > details[open] { padding-bottom: 15px; }
.lone-groups > details > summary { padding: 14px 0; color: #155c59; font-weight: 820; cursor: pointer; }
.group-note { margin: -2px 0 12px; color: var(--muted); font-size: .88rem; }
.lone-cards { grid-template-columns: repeat(2, 1fr); }

.place-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-grid { grid-template-columns: repeat(2, 1fr); }
.place { border-radius: 16px; background: var(--night); padding: 17px; color: #fff; }
.place:nth-child(2) { background: var(--clay); }
.place:nth-child(3) { background: #416a63; }
.place h3 { margin: 0 0 7px; font-size: 1.05rem; }
.place p { margin: 0 0 12px; color: #edf3ef; font-size: 0.9rem; }
.place a { color: #fff0cf; font-weight: 800; text-underline-offset: 3px; }
.app-links { display: flex; flex-wrap: wrap; gap: 14px; }

.draft {
  display: inline-block;
  border-radius: 999px;
  background: #fff0d6;
  padding: 5px 9px;
  color: #70420d;
  font-size: 0.8rem;
  font-weight: 850;
}
.week { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.day { border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.day h3 { margin: 0 0 7px; }
.event { border-top: 1px solid #e3e9e5; padding: 9px 0; }
.event:first-of-type { border-top: 0; }
.event b { display: block; }
.event small { color: var(--muted); }

.cafe {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 35px;
  border-radius: 22px;
  background: linear-gradient(120deg, #f1b35b, #e5825c);
  padding: 27px;
}
.cafe h2 { margin: 0 0 9px; font: 2rem/1 Georgia, serif; }
.cafe p { max-width: 650px; margin: 0; }
.cafe .button { border-color: var(--night); background: var(--night); color: #fff; white-space: nowrap; }
.fine { margin-top: 17px; color: #596b6c; font-size: 0.8rem; }

.footer { background: #123236; padding: 30px 0; color: #c9ddda; font-size: 0.86rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: #fff; }

@media (max-width: 900px) {
  .brand { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 24px, 1120px); }
  .topbar .wrap { align-items: flex-start; }
  .brand { padding-top: 15px; }
  .hero { padding-top: 18px; }
  .hero-grid { min-height: 500px; align-items: flex-end; padding: 26px 20px; }
  .hero-art img { object-position: 62% center; }
  .hero-grid::after { background: linear-gradient(90deg, rgba(246,242,233,.98), rgba(246,242,233,.73) 67%, rgba(246,242,233,.23)); }
  h1 { font-size: 3rem; }
  .place-grid, .app-grid, .cards, .week, .choice-grid, .lone-cards { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .guide-intro { align-items: start; flex-direction: column; }
  .cafe { grid-template-columns: 1fr; }
  .cafe .button { justify-self: start; }
  .card { padding: 14px; }
}

@media (max-width: 420px) {
  .brand { gap: 9px; }
  .topbar { padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
