:root {
  color-scheme: light;
  --bg: #fbf6ee;
  --card: #fffdf9;
  --ink: #1d2433;
  --body: #343c4c;
  --soft: #5e6676;
  --line: #e7dccb;
  --accent: #b23a12;
  --accent-hover: #8f2c0b;
  --teal: #2a7f74;
  --sun: #e9c46a;
}

* { box-sizing: border-box; }
img, svg { max-width: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Hub, sale and 404 pages */
.page {
  flex: 1;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.terrace { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 640 / 200; margin: 0 auto 36px; }

.label {
  display: block;
  margin: 0 0 20px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
}
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: .1em; }

h1 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--ink);
}
.domain { display: block; overflow-wrap: anywhere; }
.tld { color: var(--accent); }

.intro { max-width: 36rem; margin: 0 auto 32px; font-size: 1.15rem; color: var(--soft); }
.small { font-size: .88rem; color: var(--soft); max-width: 30rem; margin: 16px auto 0; }

.btn {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: #fff; }

.news {
  display: inline-block;
  max-width: 44rem;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: .92rem;
  line-height: 1.5;
  color: var(--soft);
  text-decoration: none;
  transition: border-color .15s;
}
.news strong { color: var(--ink); }
.news::after { content: " \2192"; color: var(--accent); }
.news:hover { border-color: var(--accent); color: var(--soft); }

.guides-section { width: 100%; max-width: 720px; margin: 48px auto 0; }
.guides-title { margin: 0 0 16px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.guides a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--c, var(--accent));
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.guides a:nth-child(6n+1) { --c: #e76f51; }
.guides a:nth-child(6n+2) { --c: #2a9d8f; }
.guides a:nth-child(6n+3) { --c: #e9c46a; }
.guides a:nth-child(6n+4) { --c: #4f7cac; }
.guides a:nth-child(6n+5) { --c: #8e7dbe; }
.guides a:nth-child(6n+6) { --c: #f28482; }
.guides a:hover { border-color: var(--c); transform: translateY(-2px); }
.guides strong { font-size: 1rem; }
.guides strong::after { content: " \2192"; color: var(--accent); }
.guides span { font-size: .9rem; line-height: 1.5; color: var(--soft); }
@media (max-width: 640px) { .guides { grid-template-columns: 1fr; } }

.hub-about { width: 100%; max-width: 720px; margin: 56px auto 0; text-align: left; color: var(--body); }
.hub-about h2 { margin: 0 0 12px; font-size: 1.2rem; color: var(--ink); }
.hub-about ul { padding-left: 1.2em; }
.hub-about li { margin-bottom: 8px; }

/* Guide pages */
.topbar {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}
.topbar a { color: var(--ink); text-decoration: none; }
.brandlink { font-weight: 800; font-size: 1.1rem; }
.topnav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .92rem; }
.topnav a { color: var(--soft); }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--accent); }

.doc { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 20px 16px 64px; font-size: 1.03rem; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; margin: 8px 0 12px; }
.doc h2 { margin: 44px 0 12px; font-size: 1.35rem; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); scroll-margin-top: 16px; }
.doc strong { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 8px; }
.doc a.cite { font-size: .8em; text-decoration: none; }

.crumbs { font-size: .85rem; color: var(--soft); }
.crumbs a { color: var(--soft); }
.meta { font-size: .9rem; color: var(--soft); }

.summary {
  margin: 24px 0 8px;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  background: #fff3e6;
  border-radius: 0 10px 10px 0;
}
.summary h2 { margin: 0 0 8px; font-size: 1.05rem; }
.summary ul { margin: 0; }

.toc { margin: 28px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.toc ol { margin: 0; }
.toc li { margin-bottom: 4px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; }
.doc caption { text-align: left; font-size: .85rem; color: var(--soft); padding-bottom: 6px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 700; }
.doc td:first-child { color: var(--ink); }
@media (max-width: 640px) {
  .doc th, .doc td { padding: 8px 6px; }
  .doc table { font-size: .88rem; }
}

.sources { font-size: .88rem; color: var(--soft); overflow-wrap: anywhere; }
.sources li { scroll-margin-top: 16px; }

.forsale-strip { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; }

.footer { padding: 24px 16px; text-align: center; font-size: .85rem; color: var(--soft); border-top: 1px solid var(--line); }
.footer p { margin: 0 0 8px; }
.footer a { color: var(--soft); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 10px; }
.footer .footer-note { font-size: .8rem; }
.footer .footer-note a { text-decoration: underline; }

/* Cookie banner (only shown when analytics is configured) */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  max-width: 560px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 8px 30px rgba(29, 36, 51, .15);
  font-size: .92rem;
}
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent button, .linkish { font: inherit; cursor: pointer; }
.consent button { padding: 8px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 700; }
.consent button.secondary { background: transparent; color: var(--accent); }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); text-decoration: underline; }

/* Sale page: what can be included */
.included { width: 100%; max-width: 520px; margin: 40px auto 0; text-align: left; }
.included ul { margin: 0; padding: 18px 22px 18px 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.included li { margin-bottom: 6px; }
.included strong { color: var(--ink); }
.intro strong { color: var(--ink); }

/* Homepage: two news pills and grouped guide sections */
.news-list { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hub .guides-section + .guides-section { margin-top: 36px; }

/* Guide pages: links to the other guides */
.related { margin-top: 48px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.related h2 { margin: 0 0 10px; font-size: 1.05rem; }
.related ul { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.related li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 640px) { .related ul { columns: 1; } }

/* Walk: numbered stops with map links */
.stops { padding-left: 1.6em; }
.stops li { margin-bottom: 14px; }
.stops li::marker { font-weight: 800; color: var(--accent); }
.doc a.map { display: inline-block; margin-left: 4px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; text-decoration: none; background: var(--card); }
.doc a.map::before { content: "\2197\00a0"; }
