/* ============================================================
   Firenze — Transfers & getting around
   Practical reference page. Same palette as the film, but
   built to be scanned on a phone, not scrolled as a story.
   ============================================================ */

* { box-sizing: border-box; }

html { background: #0d0b16; scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(120% 60% at 50% 0%, #241a33 0%, #0d0b16 62%),
    #0d0b16;
  background-attachment: fixed;
  color: #f6ece0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px 80px; }

/* ---------- nav ---------- */

.tnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 8px;
}
.tnav .logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: rgba(246, 236, 224, 0.95);
  text-decoration: none;
}
.tnav .links { display: flex; gap: 14px; }
.tnav .links a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(246, 236, 224, 0.72);
  text-decoration: none;
}
.tnav .links a:hover { color: #f0b968; }

/* ---------- header ---------- */

header.page {
  padding: 26px 0 8px;
  border-bottom: 1px solid rgba(246, 236, 224, 0.12);
  margin-bottom: 8px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f0b968;
}
h1 {
  margin: 10px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(36px, 8vw, 58px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.028em;
}
.sub {
  margin: 12px 0 22px;
  font-size: 15px;
  color: rgba(246, 236, 224, 0.72);
}

/* ---------- jump chips ---------- */

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; }
.jump a {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(246, 236, 224, 0.24);
  background: rgba(246, 236, 224, 0.05);
  color: rgba(246, 236, 224, 0.88);
  font-size: 12.5px; font-weight: 600;
  text-decoration: none;
}
.jump a:hover { border-color: #f0b968; color: #f0b968; }

/* ---------- sections ---------- */

section.block { margin-bottom: 40px; scroll-margin-top: 16px; }

.block-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.block h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(23px, 4.4vw, 31px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.when {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #f0b968;
}
.block > p.intro {
  margin: 6px 0 18px;
  font-size: 14.5px;
  color: rgba(246, 236, 224, 0.75);
}

/* ---------- steps ---------- */

ol.steps { list-style: none; margin: 0; padding: 0; position: relative; }
ol.steps::before {
  content: "";
  position: absolute;
  left: 15px; top: 14px; bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, rgba(240,185,104,0), rgba(240,185,104,0.45) 10%, rgba(240,185,104,0.45) 90%, rgba(240,185,104,0));
}
ol.steps > li {
  position: relative;
  padding: 0 0 20px 46px;
  min-height: 34px;
}
ol.steps > li .n {
  position: absolute;
  left: 0; top: 0;
  width: 31px; height: 31px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: #f0b968;
  color: #231806;
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px; font-weight: 600;
}
ol.steps h3 {
  margin: 4px 0 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
ol.steps p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(246, 236, 224, 0.76);
}
ol.steps p b, .fact b { color: #f6ece0; font-weight: 600; }
.tag {
  display: inline-block;
  margin-top: 7px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(240, 185, 104, 0.15);
  border: 1px solid rgba(240, 185, 104, 0.4);
  color: #f0b968;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
}

/* ---------- callouts ---------- */

.warn, .tip {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-radius: 0 12px 12px 0;
  font-size: 14px;
  line-height: 1.5;
}
.warn {
  border-left: 3px solid #e06a4a;
  background: rgba(224, 106, 74, 0.12);
  color: #f6ded4;
}
.tip {
  border-left: 3px solid #f0b968;
  background: rgba(240, 185, 104, 0.1);
  color: rgba(246, 236, 224, 0.9);
}
.warn b, .tip b { color: #fff; font-weight: 700; }

/* ---------- fact rows ---------- */

.facts { display: grid; gap: 1px; background: rgba(246,236,224,0.12); border-radius: 12px; overflow: hidden; margin-top: 16px; }
.fact {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 11px 15px;
  background: #16121f;
  font-size: 14px;
}
.fact .k { color: rgba(246, 236, 224, 0.76); }
.fact .v { font-weight: 600; white-space: nowrap; }
.fact .v.gold { color: #f0b968; }

/* ---------- walk grid ---------- */

.walks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 16px; }
.walk {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(246, 236, 224, 0.14);
  border-radius: 12px;
  background: rgba(246, 236, 224, 0.035);
  font-size: 14px;
}
.walk .m { font-family: "Fraunces", Georgia, serif; font-size: 17px; font-weight: 600; color: #f0b968; white-space: nowrap; }

footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 236, 224, 0.12);
  font-size: 13px;
  color: rgba(246, 236, 224, 0.5);
  text-align: center;
}
footer .sig { font-family: "Fraunces", Georgia, serif; font-style: italic; }

@media (max-width: 520px) {
  ol.steps > li { padding-left: 42px; }
  .fact { flex-direction: column; gap: 2px; }
  .fact .v { white-space: normal; }
}

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

/* ---------- map links ---------- */

a.walk { text-decoration: none; color: inherit; transition: border-color 220ms ease, background 220ms ease; }
a.walk:hover { border-color: rgba(240, 185, 104, 0.6); background: rgba(240, 185, 104, 0.07); }
a.walk::after {
  content: "↗";
  font-size: 11px;
  opacity: 0.4;
  margin-left: -4px;
}
a.walk:hover::after { opacity: 0.9; color: #f0b968; }

ol.steps p a, .tip a, .warn a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(rgba(240, 185, 104, 0.45), rgba(240, 185, 104, 0.45));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  padding-bottom: 2px;
  transition: color 220ms ease, background-image 220ms ease;
}
ol.steps p a::after, .tip a::after, .warn a::after {
  content: "↗"; margin-left: 4px; font-size: 0.62em; vertical-align: 0.42em; opacity: 0.55;
}
ol.steps p a:hover, .tip a:hover, .warn a:hover {
  color: #f0b968;
  background-image: linear-gradient(#f0b968, #f0b968);
}
a:focus-visible { outline: 2px solid #f0b968; outline-offset: 3px; border-radius: 3px; }
