/* The website's one stylesheet. Tokens from DESIGN.md; no dark theme,
   because the app has none. Font URLs are rewritten to hashed names by
   tool/site/site_builder.dart. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces.24fe8a82.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/InstrumentSans.13448806.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4eee1;
  --ink: #1f2a2e;
  --stamp-red: #b8452e;
  --sea-green: #1f6f6b;
  --slate: #5e6461;
  --ochre: #c99a2e;
  --sand: #d9c9a6;
  --card-white: #fffcf7;
  --community: #8a5a00;
  --sport: #6b3a6e;
  --work: #2f4b7c;
  --atms: #4a5a23;
  --city: #aa151b;
  --city-stripe: #f1bf00;
  --sky: #fae7c2;
  /* The accent word on the band: the flag's second color where it
     reaches 3:1 on the fill, else Paper. Set per poster city. */
  --city-accent: #f1bf00;
  /* Where the poster's name band starts (bandStart in cities.json). */
  --band: 0.725;
  --shadow: 0 4px 20px rgb(31 42 46 / 8%);
  --gutter: 20px;
  --measure: 40rem;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sea-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--sea-green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  font-variation-settings: "opsz" 72;
}

h2 {
  font-size: 1.5rem;
  font-variation-settings: "opsz" 28;
}

h3 {
  font-size: 1.25rem;
  font-variation-settings: "opsz" 24;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  border-radius: 16px;
  z-index: 2;
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header: mark and name, the three pages, and the language switch. On
   the landing page it sits in the poster's sky color and runs into it. */

.site-header {
  background: var(--card-white);
  border-bottom: 1px solid var(--sand);
}

.site-header.on-poster {
  background: var(--sky);
  border-bottom: 0;
}

/* Small screens: name and switch on one row (or two, at large text),
   the links below. */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
}

.nav {
  order: 3;
  flex-basis: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.375rem;
  font-variation-settings: "opsz" 24;
  color: var(--ink);
  text-decoration: none;
  justify-self: start;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--sand);
}

.nav a[aria-current="page"] {
  color: var(--sea-green);
  border-bottom-color: var(--sea-green);
}

.lang {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 16px;
  padding: 0.5rem 0.875rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.lang:hover {
  border-color: var(--slate);
}

@media (min-width: 45rem) {
  .bar {
    flex-wrap: nowrap;
    min-height: 4.5rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav {
    order: 0;
    flex: 1 1 auto;
  }

  .nav ul {
    justify-content: flex-end;
    gap: 0 1.75rem;
  }
}

/* Text pages: privacy, support, legal notice. */

.page {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea-green);
  margin-bottom: 0.75rem;
}

.accent {
  color: var(--stamp-red);
}

.lead {
  font-size: 1.125rem;
  margin-top: 1.25rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

.app-part {
  background: var(--card-white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 2rem;
}

.app-part > * + * {
  margin-top: 1rem;
}

.note {
  color: var(--slate);
  font-size: 0.875rem;
}

.updated {
  margin-top: 2.5rem;
  color: var(--slate);
  font-size: 0.875rem;
}

.address {
  font-style: normal;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--sand);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.875rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

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

.site-footer li a[aria-current="page"] {
  color: var(--sea-green);
}

.copyright {
  color: var(--slate);
  margin-top: 0.5rem;
}

/* Landing page. The poster is the page's one standout moment: its scene
   runs edge to edge under the header, and the hero text sits on the name
   band in the city color, with the flag stripe below, as in the app. */


.scene {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / var(--band);
  overflow: hidden;
  background: var(--sky);
}

.scene img {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
  object-position: 50% 0;
}

/* "Jetzt hier · Las Palmas" as a Paper pill, like the city pills on the
   map. */
.here {
  position: absolute;
  left: var(--gutter);
  bottom: 1rem;
  background: var(--paper);
  color: var(--city);
  border: 2px solid var(--city);
  border-radius: 16px;
  padding: 0.25rem 0.75rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  font-variation-settings: "opsz" 24;
}

.here span {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}

.band {
  background: var(--city);
  color: var(--paper);
  padding: 2rem 0 2.5rem;
}

.band .eyebrow {
  color: var(--paper);
}

.band h1 {
  font-size: clamp(2rem, 1.25rem + 3.5vw, 3.5rem);
  font-variation-settings: "opsz" 144;
  line-height: 1.05;
}

/* The accent word takes the flag's second color on the band, where it
   is readable. */
.band .accent {
  color: var(--city-accent);
}

.band .lead {
  font-size: 1.25rem;
}

.band .subtitle {
  margin-top: 0.5rem;
}

/* Where the visitor is, from the rough location (spec 014 R11): right
   under the heading, large enough to read as part of the hero. */
.band .where {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-variation-settings: "opsz" 48;
  line-height: 1.25;
  color: var(--city-accent);
}

.band .where + .lead {
  margin-top: 1rem;
}

/* The email hint at the end of the band, set apart by a thin Paper
   rule. */
.band .ask {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(244 238 225 / 40%);
}

/* The distance the middleware puts into the pill: plain text, not the
   small caps of the label. */
.here .km {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: normal;
  text-transform: none;
  margin-right: 0;
}

.band a {
  color: var(--paper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.band a:focus-visible {
  outline-color: var(--paper);
}

.stripe {
  height: 6px;
  background: var(--city-stripe);
}

/* The poster mosaic (spec 014 R11): every poster's scene as a tile, on
   Paper, with the app's neutral accent (Ink, no flag stripe) below. */
.mosaic {
  --city: var(--ink);
  --city-stripe: var(--ink);
  --city-accent: var(--ochre);
  --sky: var(--paper);
}

.scene.tiles {
  aspect-ratio: auto;
  padding: 0.5rem var(--gutter) 4.25rem;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 1440px;
  margin: 0 auto;
}

/* A tile shows the scene above the poster's name band: the square poster
   is scaled so the scene fills the tile's height, centered. */
.tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--sky);
}

.scene .tile img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto;
  height: calc(100% / var(--band));
  max-width: none;
  aspect-ratio: 1;
  transform: translateX(-50%);
  object-fit: fill;
  /* Not the wide poster's window offset from .scene img. */
  object-position: 50% 0;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (min-width: 45rem) {
  .scene {
    aspect-ratio: auto;
    height: clamp(20rem, 38vw, 34rem);
  }

  /* The window shows the middle of the scene above the name band. The
     poster is as wide as the screen, at most 1440 px. */
  .scene img {
    object-position: 50%
      calc(clamp(20rem, 38vw, 34rem) / 2 - var(--band) / 2 * min(100vw, 1440px));
  }

  .here {
    left: max(var(--gutter), calc(50% - var(--measure) / 2));
    bottom: 1.5rem;
  }

  .scene.tiles {
    height: auto;
    padding-bottom: 5rem;
  }

  .tile-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* Wider than the poster: the scene stays at most 1440 px in the middle,
   and its edges fade into the poster's sky color, so the picture reaches
   both sides of the screen without being stretched. */
@media (min-width: 1441px) {
  .scene img {
    max-width: 1440px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  }
}

.section {
  padding-top: 3.5rem;
}

/* The three points stand open on Paper: the tilted pictogram spots are
   their personality, as on the app's topic pages. */
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.point svg {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 1rem;
}

.point h2 {
  hyphens: auto;
  font-size: 1.5rem;
  font-variation-settings: "opsz" 28;
  margin-bottom: 0.5rem;
}

.chip {
  display: inline-block;
  margin-top: 1rem;
  border-radius: 16px;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.chip-confirmed {
  background: var(--sea-green);
  color: var(--paper);
}

.coverage h2,
.screens h2 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  font-variation-settings: "opsz" 48;
}

/* What's in the app (spec 019 R3): open on Paper like the points, no
   cards. The figure takes its topic's tint, as key figures do in the app. */
.topic-community {
  --tint: var(--community);
}

.topic-sports {
  --tint: var(--sport);
}

.topic-work {
  --tint: var(--work);
}

.topic-atms {
  --tint: var(--atms);
}

/* One column on a phone, so long German labels such as
   "Tischtennisclubs" stay whole; two from 30rem; one wrapping row from
   45rem. */
.categories {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
}

@media (min-width: 30rem) {
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.categories li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  line-height: 1.2;
}

.categories svg {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.categories .figure {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  font-variation-settings: "opsz" 36;
  color: var(--tint);
}

.categories .label {
  min-width: 0;
}

/* Saved places waiting for their details (spec 019 R8): smaller, in
   Slate, like the app's topics still to come. */
.saved {
  margin-top: 2.5rem;
}

.saved .saved-list {
  margin-top: 1rem;
}

.saved-list svg {
  width: 2rem;
  height: 2rem;
}

.saved-list .figure {
  font-size: 1.25rem;
  font-variation-settings: "opsz" 24;
  color: var(--slate);
}

.handmade {
  max-width: 36rem;
  margin-top: 2.5rem;
}

.saved h3,
.handmade h3 {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.byline svg {
  width: 1em;
  height: 1em;
}

.countries {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.countries li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.screens .wrap {
  margin-bottom: 1.5rem;
}

/* Three phones side by side; on narrow screens the row scrolls. */
.shots {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem var(--gutter) 1.5rem;
  max-width: calc(52rem + 2 * var(--gutter));
  margin: 0 auto;
}

.shots:focus-visible {
  outline: 3px solid var(--sea-green);
  outline-offset: -3px;
}

.shots figure {
  margin: 0;
  flex: 0 0 min(15rem, 70vw);
  scroll-snap-align: center;
}

.shots img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--sand);
  box-shadow: var(--shadow);
}

@media (min-width: 45rem) {
  .points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }

  .categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }

  .shots {
    justify-content: center;
    overflow-x: visible;
  }

  .shots figure {
    flex: 1 1 0;
    max-width: 16rem;
  }
}

.availability {
  padding-bottom: 4rem;
}

.availability p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  font-variation-settings: "opsz" 28;
}

/* The three cards get more room than the text measure. */
.wrap.wide {
  max-width: calc(64rem + 2 * var(--gutter));
}

/* Poster cities, generated from cities.json and tool/accents.json. */
.city-florianopolis {
  --city: #007b2e;
  --city-stripe: #ffdf00;
  --city-accent: #ffdf00;
  --sky: #fce9c3;
  --band: 0.735;
}
.city-sao-paulo {
  --city: #007b2e;
  --city-stripe: #ffdf00;
  --city-accent: #ffdf00;
  --sky: #fce9c2;
  --band: 0.7;
}
.city-bansko {
  --city: #007a5a;
  --city-stripe: #d62612;
  --city-accent: #f4eee1;
  --sky: #f4e3c8;
  --band: 0.799;
}
.city-sofia {
  --city: #007a5a;
  --city-stripe: #d62612;
  --city-accent: #f4eee1;
  --sky: #fbe8c4;
  --band: 0.828;
}
.city-varna {
  --city: #007a5a;
  --city-stripe: #d62612;
  --city-accent: #f4eee1;
  --sky: #fae7c3;
  --band: 0.848;
}
.city-berlin {
  --city: #d60000;
  --city-stripe: #ffcc00;
  --city-accent: #ffcc00;
  --sky: #fae9c9;
  --band: 0.747;
}
.city-quito {
  --city: #034ea2;
  --city-stripe: #ffdd00;
  --city-accent: #ffdd00;
  --sky: #fceac6;
  --band: 0.742;
}
.city-bali {
  --city: #ce1126;
  --city-stripe: #f4eee1;
  --city-accent: #f4eee1;
  --sky: #fbeac6;
  --band: 0.752;
}
.city-sorong {
  --city: #ce1126;
  --city-stripe: #f4eee1;
  --city-accent: #f4eee1;
  --sky: #fbebc6;
  --band: 0.752;
}
.city-magdalena {
  --city: #ce1126;
  --city-stripe: #fcd116;
  --city-accent: #fcd116;
  --sky: #fae9c5;
  --band: 0.744;
}
.city-manila {
  --city: #0038a8;
  --city-stripe: #fcd116;
  --city-accent: #fcd116;
  --sky: #fcedcc;
  --band: 0.774;
}
.city-tagbilaran {
  --city: #0038a8;
  --city-stripe: #fcd116;
  --city-accent: #fcd116;
  --sky: #faebcb;
  --band: 0.766;
}
.city-lagos {
  --city: #006600;
  --city-stripe: #ff0000;
  --city-accent: #f4eee1;
  --sky: #fae9c8;
  --band: 0.758;
}
.city-las-palmas-de-gran-canaria {
  --city: #aa151b;
  --city-stripe: #f1bf00;
  --city-accent: #f1bf00;
  --sky: #fbe7c2;
  --band: 0.725;
}
.city-bangkok {
  --city: #2d2a4a;
  --city-stripe: #a51931;
  --city-accent: #f4eee1;
  --sky: #f8e9c8;
  --band: 0.78;
}
.city-koh-phangan {
  --city: #2d2a4a;
  --city-stripe: #a51931;
  --city-accent: #f4eee1;
  --sky: #faeac6;
  --band: 0.775;
}
.city-koh-samui {
  --city: #2d2a4a;
  --city-stripe: #a51931;
  --city-accent: #f4eee1;
  --sky: #fae9c6;
  --band: 0.766;
}
.city-phuket {
  --city: #2d2a4a;
  --city-stripe: #a51931;
  --city-accent: #f4eee1;
  --sky: #fae7c3;
  --band: 0.772;
}
.city-da-nang-hoi-an {
  --city: #d3231c;
  --city-stripe: #ffff00;
  --city-accent: #ffff00;
  --sky: #fae7c3;
  --band: 0.78;
}
.city-ho-chi-minh-stadt {
  --city: #d3231c;
  --city-stripe: #ffff00;
  --city-accent: #ffff00;
  --sky: #f9e7c2;
  --band: 0.776;
}
