/* Noren — marketing / guide pages.
   One design system with the app (frontend/src/design/tokens/*): warm cream
   surfaces, indigo accent, Newsreader display serif + Inter, weights 400/600
   only, radius 12 (card) / 10 (control) / 999 (pill). Marketing surfaces ship
   the Light (Day) theme only. */
@import url("https://fonts.googleapis.com/css2?family=Newsreader:opsz,wght@6..72,400;6..72,500;6..72,600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  color-scheme: light;
  /* tokens mirrored from src/design/tokens/colors.css (light) */
  --bg: #f6f2ea;
  --surface: #fdfbf6;
  --surface-raised: #ffffff;
  --line: #e4dccd;
  --ink: #221d15;
  --muted: #736a5d;
  --faint: #b8ad9c;
  --faint-dot: #9c8c75;
  --accent: #30508c;
  --accent-ink: #ffffff;
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  --tier-strong: #4a5b3e;
  --tier-mid: #a3886b;
  --map-land: #f1ead9;
  --map-road: #e0d6c2;
  --map-road-major: #cdbfa4;
  --map-water: #dfe4df;
  --shadow-marker: 0 1px 4px rgba(34, 29, 21, .35);
  --radius-card: 12px;
  --radius-control: 10px;
  --radius-pill: 999px;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: Inter, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font-sans);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
main {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 6vh, 64px) 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-bottom: clamp(30px, 6vh, 56px);
}
.mark {
  width: 25px;
  height: 25px;
  flex: none;
  color: var(--accent);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .02em;
}
.kicker::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
h1 {
  margin: 0;
  max-width: 820px;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede {
  max-width: 630px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.cta:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.secondary:hover { border-color: var(--accent); }
.trip-map-offer {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.trip-map-copy {
  margin: 0;
  max-width: 560px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
}
.trip-map-detail {
  margin: 8px 0 16px;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.request-page main {
  align-items: start;
}
.request-form {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.request-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 12px;
  background: var(--surface-raised);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.request-form input:focus-visible,
.request-form select:focus-visible,
.request-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.request-form textarea {
  resize: vertical;
}
.request-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.request-form button.cta {
  cursor: pointer;
}
.fallback-link {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 3px;
}
.map-card {
  position: relative;
  aspect-ratio: 0.86;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 42px, color-mix(in srgb, var(--map-road) 62%, transparent) 42px 43px),
    repeating-linear-gradient(90deg, transparent 0 54px, color-mix(in srgb, var(--map-road) 62%, transparent) 54px 55px),
    var(--map-land);
}
.city-map.is-real-map {
  background-image:
    linear-gradient(rgba(246, 242, 234, 0.12), rgba(246, 242, 234, 0.12)),
    var(--map-image);
  background-position: center;
  background-size: cover;
}
.route {
  display: none;
}
.pin {
  position: absolute;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--tier-strong);
  border: 2px solid var(--surface);
  box-shadow: var(--shadow-marker);
  left: var(--x);
  top: var(--y);
  transform: translate(calc(-50% + var(--pin-dx, 0px)), calc(-50% + var(--pin-dy, 0px)));
}
.pin.featured {
  background: var(--accent);
  width: 24px;
  height: 24px;
}
.map-label {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.panel {
  position: absolute;
  z-index: 3;
  left: 16px;
  right: 16px;
  top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px);
}
.panel strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.panel span {
  display: inline-flex;
  max-width: 100%;
  margin: 0 6px 6px 0;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.notes {
  margin-top: 44px;
  display: grid;
  gap: 14px;
  max-width: 690px;
}
.note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.note h2 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
.note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}
.site-foot {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 12.5px;
}
.site-foot a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-foot a:hover { color: var(--accent); }
.guides-index {
  display: block;
  max-width: 980px;
}
.guides-hero {
  max-width: 760px;
}
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
.guide-card {
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 140ms ease;
}
.guide-card:hover { border-color: var(--accent); }
.guide-card p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
}
.guide-card p::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}
.guide-card h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.guide-card a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 140ms ease;
}
.guide-card a:hover { text-decoration-color: var(--accent); }
.guide-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 860px) {
  main {
    display: block;
    width: min(100% - 28px, 680px);
    padding: 28px 0 54px;
  }
  .brand { margin-bottom: 40px; }
  .map-card {
    aspect-ratio: 1.05;
    margin-top: 34px;
  }
  .guide-list {
    grid-template-columns: 1fr;
  }
  .guide-card {
    min-height: 0;
  }
}
