/* Yuri Town — one stylesheet for every page. Nothing here loads from another host. */

@font-face {
  font-family: "Lilita One";
  src: url("/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --sky: #3d8fe0;
  --sky-deep: #1f63b8;
  --sky-pale: #dff0ff;
  --sun: #ffc928;
  --sun-deep: #e0a500;
  --asphalt: #23262e;
  --asphalt-2: #2e323c;
  --grass: #3fae4a;
  --kerb: #d8433b;
  --cyan: #2cc6e8;

  --bg: #eaf5ff;
  --panel: #ffffff;
  --text: #1c1f26;
  --muted: #4a5160;
  --link: #1757a6;
  --line: #c9dcef;
  --shadow: 0 6px 0 rgba(20, 40, 80, 0.14);

  --display: "Lilita One", "Arial Rounded MT Bold", "Arial Rounded MT", ui-rounded, system-ui, sans-serif;
  --body: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --wrap: 72rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171a20;
    --panel: #23262e;
    --text: #f1f3f7;
    --muted: #b7bdc9;
    --link: #8cc8ff;
    --line: #353a46;
    --sky-pale: #1d2a3d;
    --shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.6rem, 9vw, 5rem);
}

h2 {
  font-size: clamp(1.9rem, 5.5vw, 2.8rem);
}

h3 {
  font-size: 1.55rem;
}

p,
ul {
  margin: 0 0 1em;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--sun);
  color: var(--asphalt);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

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

.site-header {
  background: var(--asphalt);
  color: #fff;
  border-bottom: 6px solid var(--sun);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  padding-block: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 3px solid var(--sun);
}

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

.site-nav a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 2px solid transparent;
}

.site-nav a:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.site-nav a[aria-current="page"] {
  background: var(--sun);
  color: var(--asphalt);
}

/* ---------- buttons and chips ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.1;
  text-decoration: none;
  color: var(--asphalt);
  background: var(--sun);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 3px solid var(--asphalt);
  box-shadow: 0 5px 0 var(--asphalt);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--asphalt);
}

.button:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--asphalt);
}

.button small {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button svg {
  width: 1.6rem;
  height: 1.6rem;
  flex: none;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  background: rgba(255, 255, 255, 0.92);
  color: var(--asphalt);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 2px solid var(--asphalt);
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(ellipse at 85% -10%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, var(--sky) 0%, #6db6f2 70%, #9fd2f7 100%);
  color: #fff;
  padding-block: clamp(2rem, 6vw, 4rem) 0;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .hero {
    background:
      radial-gradient(ellipse at 85% -10%, rgba(255, 201, 40, 0.18), transparent 55%),
      linear-gradient(180deg, #123a6b 0%, #1d538f 70%, #2a659f 100%);
  }
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.1em;
  text-shadow: 0 4px 0 var(--sky-deep), 0 8px 0 rgba(20, 40, 80, 0.25);
}

.hero .tagline {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--sun);
  text-shadow: 0 3px 0 var(--asphalt);
  margin-bottom: 0.6em;
  line-height: 1.15;
}

.hero .promo {
  font-size: 1.15rem;
  max-width: 34rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero .cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin: 1.5rem 0 1.25rem;
}

.hero-shot {
  margin: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 6px solid #fff;
  border-bottom: 0;
  overflow: hidden;
  box-shadow: 0 -2px 30px rgba(10, 30, 70, 0.25);
  align-self: end;
}

@media (min-width: 900px) {
  .hero-shot {
    margin-top: 1rem;
    transform: rotate(1.2deg) translateY(10px);
  }
}

.road {
  height: 22px;
  background:
    repeating-linear-gradient(90deg, var(--kerb) 0 32px, #fff 32px 64px);
  border-top: 6px solid var(--grass);
}

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

.section {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.section-alt {
  background: var(--sky-pale);
}

.kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--asphalt);
  color: var(--sun);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

@media (prefers-color-scheme: dark) {
  .kicker {
    background: var(--sun);
    color: var(--asphalt);
  }
}

.story {
  background: var(--sun);
  color: var(--asphalt);
  border-radius: var(--radius);
  border: 4px solid var(--asphalt);
  box-shadow: 0 8px 0 var(--asphalt);
  padding: clamp(1.5rem, 5vw, 3rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 760px) {
  .story {
    grid-template-columns: auto 1fr;
  }
}

.story img {
  width: clamp(120px, 22vw, 200px);
  border-radius: 28%;
  border: 5px solid var(--asphalt);
  margin-inline: auto;
}

.story h2 {
  margin-bottom: 0.35em;
}

.story p {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  line-height: 1.5;
  margin: 0;
}

.story .kicker {
  background: var(--asphalt);
  color: var(--sun);
}

/* feature rows: text beside a screenshot */

.feature {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

.feature + .feature {
  margin-top: clamp(2.5rem, 7vw, 4.5rem);
}

@media (min-width: 860px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }

  .feature.flip > :first-child {
    order: 2;
  }
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 5px solid var(--asphalt);
  box-shadow: var(--shadow);
  background: var(--asphalt);
}

.places {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.places li {
  background: var(--panel);
  border: 2px solid var(--line);
  border-left: 8px solid var(--sun);
  border-radius: 14px;
  padding: 0.55rem 0.9rem;
}

/* cards */

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--sky-deep);
}

@media (prefers-color-scheme: dark) {
  .card h3 {
    color: var(--sun);
  }
}

.card p:last-child {
  margin-bottom: 0;
}

/* screenshot strip: CSS scroll-snap, no script */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 40rem);
  gap: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem;
  margin: 0;
  list-style: none;
  scrollbar-color: var(--sun) transparent;
}

.gallery li {
  scroll-snap-align: center;
  margin: 0;
}

.gallery figure {
  margin: 0;
}

.gallery .shot {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery .shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery figcaption {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-top: 0.6rem;
  text-align: center;
}

.hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* the "no ads" strip */

.promise {
  background: var(--asphalt);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  text-align: center;
  border-bottom: 8px solid var(--sun);
}

.promise h2 {
  color: var(--sun);
}

.promise ul {
  justify-content: center;
}

.promise p {
  margin: 1rem 0 0;
}

.promise a {
  color: #8cc8ff;
}

.center {
  text-align: center;
}

/* ---------- document pages (privacy, support) ---------- */

.page-head {
  background: linear-gradient(180deg, var(--sky) 0%, #6db6f2 100%);
  color: #fff;
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

@media (prefers-color-scheme: dark) {
  .page-head {
    background: linear-gradient(180deg, #123a6b 0%, #1d538f 100%);
  }
}

.page-head h1 {
  font-size: clamp(2.3rem, 8vw, 3.8rem);
  text-shadow: 0 4px 0 var(--sky-deep);
  margin-bottom: 0.2em;
}

.page-head p {
  margin: 0;
  font-size: 1.15rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.doc {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

.doc section {
  background: var(--panel);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem clamp(1.1rem, 4vw, 1.8rem);
  box-shadow: var(--shadow);
}

.doc section + section {
  margin-top: 1.5rem;
}

.doc h2 {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
}

.doc h3 {
  font-family: var(--body);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.3em;
}

.doc ul {
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.5rem;
}

.doc section > :last-child {
  margin-bottom: 0;
}

.doc section.highlight {
  background: var(--sun);
  color: var(--asphalt);
  border-color: var(--asphalt);
}

.doc section.highlight a {
  color: var(--asphalt);
}

.doc section.highlight a.email {
  color: var(--asphalt);
  background: #fff;
}

.email {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  overflow-wrap: anywhere;
  background: var(--panel);
  color: var(--link);
  border: 3px solid var(--asphalt);
  border-radius: 14px;
  padding: 0.4rem 0.9rem;
  margin: 0.25rem 0 0.75rem;
}

.updated {
  color: var(--muted);
  font-style: italic;
}

.faq h3 + p {
  margin-bottom: 1.25rem;
}

/* ---------- 404 ---------- */

.lost {
  text-align: center;
  padding-block: clamp(3rem, 10vw, 6rem);
}

.lost .big {
  font-family: var(--display);
  font-size: clamp(5rem, 22vw, 9rem);
  line-height: 1;
  color: var(--sun);
  text-shadow: 0 6px 0 var(--asphalt);
  margin: 0 0 0.2em;
}

@media (prefers-color-scheme: dark) {
  .lost .big {
    text-shadow: 0 6px 0 #000;
  }
}

.lost .button {
  margin-top: 1rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--asphalt);
  color: #d7dbe3;
  border-top: 6px solid var(--sun);
  padding-block: 1.75rem;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}

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

.site-footer a {
  color: #fff;
}

.site-footer p {
  margin: 0;
}

/* ---------- motion ---------- */

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .button:hover,
  .button:active {
    transform: none;
  }

  .hero-shot {
    transform: none !important;
  }
}

.cta-bottom {
  margin: 2.25rem 0 0;
}

@media (prefers-color-scheme: dark) {
  .promise {
    border: 3px solid var(--line);
    border-bottom: 8px solid var(--sun);
  }

  .story {
    box-shadow: 0 8px 0 #000;
  }
}
