/* StreetFocus: shared styles for all pages.
   Layout: one quiet column, a top bar with the menu, page content, a footer with the social links. */

:root {
  --bg: #0e1012;
  --surface: #161a1d;
  --line: #262c30;
  --fg: #e7e9e6;
  --muted: #8d9794;
  --accent: #9db7b0;
  --sea: #0f1316;
  --land: #1c2327;
  --land-edge: #313b41;
  --lamp: #d9a766;
  --soft: #b3bcb9;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --halo: #0b0e10;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --line: #dcd8cf;
  --fg: #1b1f21;
  --muted: #5b6663;
  --accent: #3b6a5f;
  --sea: #e8eeee;
  --land: #dde3df;
  --land-edge: #b6c0bb;
  --lamp: #96600f;
  --soft: #384240;
  --halo: #f6f4ef;
  color-scheme: light;
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }

html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  padding-inline: 1.25rem;
  padding-block: 0 3rem;
}

a { color: inherit; }

.wrap { max-width: 68rem; margin-inline: auto; }

@media (prefers-reduced-motion: no-preference) {
  .page { animation: page-in 0.5s ease both; }
  @keyframes page-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}

/* Top bar and menu */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.menu { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.menu a {
  padding-block: 0.25rem;
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.menu a:hover, .menu a:focus-visible { color: var(--fg); }
.menu a[aria-current="page"], .menu a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--accent); }

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

/* Headings and text */
.title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  text-wrap: balance;
}
.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}
.intro { margin: 0; max-width: 36rem; font-size: 1.125rem; color: var(--muted); }
.page-head { margin-bottom: 2.5rem; }
section + section, .section { margin-top: 4rem; }

/* Home: hero */
.hero {
  padding: clamp(2.5rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: var(--surface);
  background-image:
    radial-gradient(ellipse 28% 55% at 82% 30%, rgba(217, 167, 102, 0.22), transparent 70%),
    radial-gradient(ellipse 18% 40% at 64% 18%, rgba(217, 167, 102, 0.12), transparent 70%),
    linear-gradient(180deg, #1b2024 0%, #0f1214 100%);
  background-size: cover;
  background-position: center;
}
.hero {
  --bg: #0e1012; --surface: #161a1d; --line: #262c30; --fg: #e7e9e6;
  --muted: #8d9794; --accent: #9db7b0; --soft: #b3bcb9; --lamp: #d9a766;
  color: var(--fg);
}
.hero > * { max-width: 40rem; }
.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.lead { margin: 0 0 1rem; font-size: 1.125rem; max-width: 36rem; }
.lead em { font-style: normal; color: var(--accent); }
.meta {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.latest {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  color: var(--accent);
}
.latest::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Text blocks */
.prose { max-width: 40rem; }
.prose p { margin: 0 0 1rem; font-size: 1.0625rem; }
.prose p:last-child { margin-bottom: 0; }
.more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.more:hover, .more:focus-visible { border-bottom-color: var(--accent); }

/* Video cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.card:focus-within, .card:focus-visible { transform: translateY(-4px); border-color: var(--accent); }
@media (hover: hover) { .card:hover { transform: translateY(-4px); border-color: var(--accent); } }
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background: #000;
}
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  background:
    radial-gradient(ellipse 60% 70% at 50% 40%, rgba(157, 183, 176, 0.10), transparent 70%),
    #0a0c0d;
  border-bottom: 1px solid var(--line);
}
.play {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.card:hover .play, .card:focus-visible .play { background: var(--accent); color: var(--bg); }
.caption { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem 1.25rem; min-width: 0; }
.city { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; color: var(--muted); }
.tag { margin: 0; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.watch { margin-top: 0.5rem; width: fit-content; font-size: 0.875rem; color: var(--accent); text-decoration: none; }
a.watch:hover { text-decoration: underline; }

.desc { margin: 0.5rem 0 0; font-size: 0.9375rem; line-height: 1.55; color: var(--soft); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font: inherit;
  color: var(--fg);
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent); color: var(--bg); }
.btn.alt { border-color: var(--line); color: var(--muted); }
.btn.alt:hover, .btn.alt:focus-visible { background: transparent; border-color: var(--accent); color: var(--fg); }

/* Panels (subscribe, collaborations, playlist) */
.panel {
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  line-height: 1.2;
}
.panel p { margin: 0 0 1.25rem; color: var(--muted); }
.panel p.status { margin: 0.75rem 0 0; min-height: 1.5em; font-size: 0.875rem; color: var(--accent); }
.stack { display: grid; gap: 1.5rem; }
.stack > section { margin-top: 0; }
.signup { display: flex; flex-wrap: wrap; gap: 0.75rem; max-width: 34rem; }
.signup input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mail-addr { display: block; margin-bottom: 1rem; font-size: 1.0625rem; overflow-wrap: anywhere; user-select: all; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Facts (Behind the walk) */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}
.fact { min-width: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.fact p { margin: 0; }
.fact-label {
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact-value { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; }
.fact-note { margin-top: 0.5rem; color: var(--muted); }

/* Map */
.map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}
.map-head .title, .map-head .section-title { margin: 0; }
.count { margin: 0; color: var(--muted); }
.count strong {
  margin-right: 0.4rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent);
}
.hint { margin: 0.75rem 0 0; font-size: 0.875rem; color: var(--muted); }
.map-frame {
  overflow: hidden;
  background: var(--sea);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.map-frame svg { display: block; width: 100%; height: auto; }
.sea { fill: var(--sea); }
.land { fill: var(--land); stroke: var(--land-edge); stroke-width: 0.8; stroke-linejoin: round; }
.borders { fill: none; stroke: var(--land-edge); stroke-width: 0.6; stroke-dasharray: 2 3; }
.pt { outline: none; cursor: default; }
.pt .hit { fill: transparent; }
.pt .ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transition: opacity 0.3s ease; }
.pt .dot { fill: var(--accent); }
.pt .label {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.04em;
  paint-order: stroke;
  stroke: var(--halo);
  stroke-width: 4px;
  stroke-linejoin: round;
  transition: fill 0.3s ease;
}
.pt:hover .ring, .pt:focus .ring { opacity: 1; }
.pt:hover .label, .pt:focus .label { fill: var(--fg); }
.pt:focus-visible .ring { opacity: 1; stroke-width: 2.5; }

/* Breadcrumbs */
.crumbs { margin: 0 0 1.5rem; font-size: 0.875rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; }
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.3s ease, border-color 0.3s ease; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--fg); border-bottom-color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--fg); }

/* FAQ */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.faq-item { min-width: 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.faq-item h3 { margin: 0 0 0.5rem; font-family: var(--font-display); font-weight: 400; font-size: 1.375rem; line-height: 1.25; }
.faq-item p { margin: 0; color: var(--soft); }

/* Viewer comments (sample text) */
.sample-note {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--muted);
  border: 1px dashed var(--land-edge);
  border-radius: 10px;
}
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.quote {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-family: var(--font-display); font-size: 1.375rem; line-height: 1.3; }
.quote figcaption { margin-top: auto; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .faq-list { grid-template-columns: minmax(0, 1fr); }
}

/* Usability */
html { scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 0.5rem); }
main:focus { outline: none; }
.hero > .brand { max-width: none; }

/* The menu stays in view on larger screens. On phones it scrolls away to save space. */
@media (min-width: 721px) {
  .topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
}

/* Theme toggle */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; color: var(--fg); }
@media (hover: hover) { .theme-toggle:hover { color: var(--fg); border-color: var(--accent); } }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .sun { display: none; }
:root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
:root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
.menu { order: 3; flex-basis: 100%; }
@media (min-width: 721px) {
  .menu { order: 2; flex-basis: auto; margin-left: auto; }
  .theme-toggle { order: 3; }
}

/* Bigger tap targets without changing the layout */
.menu a, .crumbs a, .totop { position: relative; }
.menu a::before, .crumbs a::before { content: ""; position: absolute; inset: -0.75rem -0.5rem; }
.crumbs { margin-bottom: 1rem; }

/* Reading */
p { text-wrap: pretty; }
.desc { font-size: 1rem; line-height: 1.6; }
a.watch, .more { text-decoration: underline; text-decoration-color: rgba(157, 183, 176, 0.45); text-underline-offset: 0.25em; }
a.watch:hover, .more:hover, .more:focus-visible { text-decoration-color: var(--accent); }
.more { border-bottom: 0; }

/* Video: a still picture until the viewer presses play */
.facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: #000;
  cursor: pointer;
}
.facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.3s ease; }
.facade .play { position: relative; background: rgba(14, 16, 18, 0.55); }
.facade:hover img, .facade:focus-visible img { opacity: 1; }
.facade:hover .play, .facade:focus-visible .play { background: var(--accent); color: var(--bg); }
.facade:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }

.totop { flex-basis: 100%; width: fit-content; padding-block: 0.5rem; font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.totop:hover, .totop:focus-visible { color: var(--fg); }

@media (max-width: 720px) {
  .links { width: 100%; }
  .links .btn { flex: 1 1 100%; text-align: center; }
}

/* Blog */
.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 0.05rem 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--lamp);
  border: 1px solid currentColor;
  border-radius: 999px;
}
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.post {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  color: inherit;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.post:focus-visible { border-color: var(--accent); }
@media (hover: hover) { .post:hover { transform: translateY(-4px); border-color: var(--accent); } }
.post .kicker { margin: 0; }
.post h2, .post h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; line-height: 1.2; text-wrap: balance; }
.post p { margin: 0; color: var(--soft); }
.post .kicker { color: var(--muted); }
.post .more-link { margin-top: auto; padding-top: 0.5rem; font-size: 0.9375rem; color: var(--accent); }

.article { max-width: 42rem; }
.article .lede { margin: 0; font-size: 1.25rem; line-height: 1.55; color: var(--soft); }
.article > p:not(.sample-note) { margin: 0 0 1rem; font-size: 1.0625rem; }
.article h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.625rem, 3.5vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}
.article figure { margin: 2rem 0; }
.article figcaption { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.article .player { border-radius: 14px; overflow: hidden; }
.slot-box {
  display: grid;
  place-content: center;
  gap: 0.5rem;
  aspect-ratio: 16 / 9;
  max-width: 100%;
  padding: 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--land-edge);
  border-radius: 14px;
}
.slot-box p { margin: 0; font-size: 0.9375rem; color: var(--muted); }
.slot-box .slot-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--fg); }

.toc { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.toc-title { margin: 0 0 0.5rem; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { padding-block: 0.5rem; }
.toc a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(157, 183, 176, 0.45); text-underline-offset: 0.25em; }
.toc a:hover, .toc a:focus-visible { text-decoration-color: var(--accent); }

.related { margin-top: 3.5rem; }
.related .post-grid { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 720px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); }
}

.hub { margin-top: 3rem; }
.hub h2 { margin-top: 0; }
.sort { display: flex; gap: 0.5rem; margin-top: 1rem; }
.sort button { min-height: 2.75rem; padding: 0 1.25rem; font: inherit; font-size: 0.9375rem; color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.sort button[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); }
.sort button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.tile { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.tile-thumb { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--accent); }
.tile-thumb svg { width: 2rem; height: 2rem; }
.tile-title { font-size: 0.9375rem; line-height: 1.35; color: var(--fg); }
.tile-meta { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.site-footer p { margin: 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; text-wrap: balance; }
.links { display: flex; flex-wrap: wrap; gap: 0.75rem; }

@media (max-width: 720px) {
  .topbar { margin-bottom: 2rem; }
  .grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .pt .label { font-size: 21px; stroke-width: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .play, .btn, .menu a { transition: none; }
  .card:hover, .card:focus-within, .card:focus-visible { transform: none; }
}

/* Video thumbnails stay dark in the light theme */
.facade, .slot-box .play { --accent: #9db7b0; --fg: #e7e9e6; --bg: #0e1012; }
