/* Fonts are served from our own site (no Google request, so visitors' IPs stay with us). SIL Open Font License. */
@font-face { font-family: "Caprasimo"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/caprasimo-latin.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/figtree-latin.woff2") format("woff2"); }

/* Static city, guide and help pages (copied to dist/city-page.css by scripts/build-city-pages.ts). Mobile first.
   Same "Organic" look as the app (ui/theme.css): cream ground, terracotta, sage, Caprasimo + Figtree. */
:root {
  color-scheme: light;
  --bg: #f5ead8;
  --surface: #ebddc5;
  --text: #201e1d;
  --muted: #645c50;
  --border: color-mix(in srgb, #201e1d 14%, transparent);
  --primary: #c67139;
  --primary-ink: #8c491a;
  --on-primary: #f9f4ed;
  --accent: #c67139;
  --sage-tint: #f0fae1;
  --sage-ink: #3d472b;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  padding-top: 16px;
  padding-bottom: 8px;
}

.brand {
  font-family: "Caprasimo", Georgia, serif;
  font-size: 1.5rem;
  color: var(--primary-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

main {
  padding-top: 8px;
  padding-bottom: 32px;
}

.crumbs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumbs li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--muted);
}

h1,
h2,
h3 {
  font-family: "Caprasimo", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

h3 {
  font-size: 1.1rem;
  margin: 20px 0 8px;
}

p {
  margin: 0 0 12px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.direct-answer {
  background: var(--sage-tint);
  color: var(--sage-ink);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 1.05rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

#popular-cities .link-list {
  margin-bottom: 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.plan-card {
  background: var(--surface);
  border-radius: 28px;
  padding: 20px;
  min-width: 0;
}

.plan-card h3 {
  margin-top: 8px;
}

.badge {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 10px;
}

.total {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.stops {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--border);
}

.stops li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.stop-time {
  font-variant-numeric: tabular-nums;
  color: var(--primary-ink);
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
}

.stop-title {
  font-weight: 600;
}

.stop-place {
  color: var(--muted);
  font-size: 0.95rem;
  display: block;
}

.stop-desc {
  font-size: 0.95rem;
  margin: 4px 0 0;
}

.stop-cost {
  font-size: 0.9rem;
  color: var(--primary-ink);
  display: block;
  margin-top: 4px;
}

.day-label {
  font-weight: 700;
  margin: 16px 0 0;
}

.place-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.place-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.place-address {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: "Caprasimo", Georgia, serif;
  font-size: 1.15rem;
  text-decoration: none;
  border: 0;
  max-width: 100%;
}

.cta {
  margin: 28px 0 0;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.link-list li {
  border-bottom: 1px solid var(--border);
}

.link-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.site-footer a {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 600px) {
  h1 {
    font-size: 2.1rem;
  }
}

@media (min-width: 960px) {
  /* The three plans break out of the reading column so each card has room. */
  .plan-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    width: min(1100px, calc(100vw - 32px));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

.idea-list {
  padding-left: 1.4em;
  margin: 0;
}

.idea-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.idea-list p {
  margin: 2px 0 4px;
}

.jump {
  font-size: 0.95rem;
  color: var(--muted);
}

.jump a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
}
