/* ───────────────────────────────────────────────────────────────────────────
   Kitty Café Life · pall.as/kittycafelife
   One stylesheet for both languages. No frameworks, no web fonts, no trackers.
   The colours are the game's own: KittyCafeLife/UI/Theme.swift (the menus)
   and Game/Art/Toon/CafePalette.swift (the café).
   ─────────────────────────────────────────────────────────────────────────── */
:root {
  --blush:   #FFD5DE;   /* the top of the title screen's sky */
  --dusty:   #E6B4B4;   /* dusty pink: awning stripes, petals, underlines */
  --mauve:   #B47B83;   /* roof bands and rings — decorative only */
  --rose:    #7F4B56;   /* the same mauve, deep enough to read (5.2:1 on blush): links, kickers */
  --cream:   #F6EEDE;   /* the page */
  --card:    #FCF8F0;   /* the cards, a touch lighter than the page */
  --pale:    #EEDED5;
  --greige:  #E6D5C5;   /* borders, the pavement */
  --sand:    #EED5A4;
  --peach:   #F6CDAC;
  --butter:  #FFEEAC;
  --vanilla: #F6EEBD;
  --sage:    #A8CFC0;   /* the café's one cool plane */
  --sage-pale: #EEE6C5;
  --sage-deep: #5D7F58;
  --ink:     #393131;   /* charcoal */
  --ink-soft:#5A4A42;   /* the brown-charcoal of the game's ink outlines */
  --ink-mute:#6F625C;
  --radius:  22px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-color: var(--dusty);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
a:hover { text-decoration-color: var(--rose); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
strong { font-weight: 700; }

.skip {
  position: absolute; left: 1rem; top: -5rem; z-index: 20;
  background: var(--ink); color: var(--cream);
  padding: .6rem 1rem; border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 1rem; }

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

/* ── The bunting from over the counter, along the top edge ───────────────── */
.bunting::before {
  content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 40px;
  pointer-events: none; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='40' viewBox='0 0 240 40'%3E%3Cpath d='M0 4Q120 28 240 4' fill='none' stroke='%23393131' stroke-opacity='.35' stroke-width='1.4'/%3E%3Cpath d='M21 9.25h18l-9 20z' fill='%23E6B4B4'/%3E%3Cpath d='M81 15.25h18l-9 20z' fill='%23EEE6C5'/%3E%3Cpath d='M141 15.25h18l-9 20z' fill='%23FFEEAC'/%3E%3Cpath d='M201 9.25h18l-9 20z' fill='%23F6EEBD'/%3E%3C/svg%3E") repeat-x center top / 240px 40px;
}

/* ── Header (the inner pages) ────────────────────────────────────────────── */
.sky {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--blush) 0%, var(--peach) 100%);
  padding-top: 52px;
}
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem; padding: .5rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none;
}
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 2px 4px rgba(180,123,131,.35)); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; padding: .35rem .1rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rose); }
.top .nav { margin-inline-start: auto; }
@media (max-width: 640px) {
  .top .nav { order: 3; flex-basis: 100%; margin-inline-start: 0; }
  .top .lang { order: 2; margin-inline-start: auto; }
}

/* ── The language switch: EN · DE, the current one filled ───────────────── */
.lang {
  display: inline-flex; align-items: center; gap: .1rem;
  font-size: .86rem; font-weight: 700; letter-spacing: .06em; line-height: 1;
}
.lang > * { padding: .4rem .6rem; border-radius: 999px; }
.lang a { color: var(--rose); text-decoration: none; border: 0; }
.lang a:hover { background: rgba(180,123,131,.16); }
.lang [aria-current] { background: var(--ink); color: var(--cream); }
.lang .sep { padding: 0; color: var(--ink-mute); }
.hero .lang { position: absolute; top: 3.1rem; right: 1.25rem; z-index: 3; }
@media (max-width: 560px) {
  .hero .lang { position: static; margin-bottom: 1.1rem; }
}
.page-head { text-align: center; padding: 1.75rem 0 2.75rem; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 0 0 .4rem; }
.page-head p { margin: 0 auto; max-width: 38rem; color: var(--ink-soft); font-size: 1.1rem; }

/* ── The hero: the café's own street ────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 4rem 1.25rem 0;
  background:
    radial-gradient(circle at 86% 14%, rgba(246,238,189,.95) 0 24px, rgba(255,238,172,.6) 56px, rgba(255,238,172,0) 170px),
    linear-gradient(180deg, var(--blush) 0%, var(--peach) 58%, #F7E3CC 100%);
}
.hero__inner { position: relative; z-index: 2; max-width: 40rem; margin: 0 auto; }
.hero h1 { margin: 0 0 1.25rem; }
.hero__badge {
  width: clamp(168px, 42vw, 250px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 10px 20px rgba(180,123,131,.35));
}
.promise {
  font-size: clamp(1.35rem, 1rem + 1.7vw, 1.95rem); font-weight: 700; line-height: 1.28;
  margin: 0 0 .75rem; letter-spacing: -0.012em;
}
.sub { max-width: 34rem; margin: 0 auto 1.5rem; color: var(--ink-soft); font-size: 1.05rem; }
.store {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
}
.store svg { width: 22px; height: 22px; flex: none; }
.store--soon {
  background: var(--card); color: var(--ink); border: 2px solid var(--mauve);
  box-shadow: 0 8px 20px -10px rgba(57,49,49,.4);
}
a.store { background: var(--ink); color: var(--cream); border: 2px solid var(--ink); }
a.store:hover { background: var(--ink-soft); border-color: var(--ink-soft); }
.facts {
  list-style: none; margin: 1.25rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem .5rem;
  font-size: .92rem; color: var(--ink-soft);
}
.facts li { padding: .3rem .85rem; background: rgba(252,248,240,.75); border-radius: 999px; }
.street {
  position: relative; z-index: 1; display: block;
  width: 100%; height: clamp(200px, 25vw, 300px); margin-top: 1.5rem;
}

/* A handful of petals adrift, fixed in place like the title screen's */
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.petal {
  position: absolute; width: 14px; height: 8px; border-radius: 50%;
  background: var(--dusty); opacity: .55; transform: rotate(var(--r));
}
@media (prefers-reduced-motion: no-preference) {
  .petal { animation: drift var(--d, 12s) ease-in-out infinite; }
  @keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(var(--r)); }
    50%      { transform: translate(8px, -14px) rotate(calc(var(--r) + 14deg)); }
  }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 3.5rem 0 .5rem; }
.section__head { text-align: center; margin-bottom: 1.75rem; }
.kicker {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--rose); background: var(--blush);
  padding: .28rem .75rem; border-radius: 999px; margin-bottom: .7rem;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); margin: 0 0 .5rem; }
.lede { color: var(--ink-soft); max-width: 40rem; margin: 0 auto; font-size: 1.08rem; }

.card {
  background: var(--card);
  border: 1.5px solid rgba(180,123,131,.22);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 0 rgba(57,49,49,.04), 0 16px 36px -24px rgba(180,123,131,.55);
}

/* The gallery */
.gallery { display: grid; gap: 1.5rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; }
.shot img {
  width: 100%; aspect-ratio: 1600 / 736; object-fit: cover;
  border-radius: 18px; border: 4px solid var(--card); background: var(--pale);
  box-shadow: 0 12px 30px -16px rgba(90,74,66,.5);
}
.shot figcaption { padding: .6rem .4rem 0; color: var(--ink-soft); font-size: .95rem; }

/* Two cities */
.cities { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cities { grid-template-columns: 1fr 1fr; } }
.city { text-align: center; padding-top: 1.75rem; }
.city img { width: auto; max-width: 100%; height: clamp(170px, 24vw, 230px); object-fit: contain; margin: 0 auto .5rem; }
.city p { margin: 0; color: var(--ink-soft); }

/* Features */
.features { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { display: flex; flex-direction: column; gap: .55rem; }
.feature h3 { margin: 0; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.icon {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--blush); color: var(--ink-soft);
}
.icon svg { width: 26px; height: 26px; }
.icon--butter  { background: var(--butter); }
.icon--sage    { background: var(--sage); }
.icon--peach   { background: var(--peach); }
.icon--vanilla { background: var(--vanilla); }
.icon--pale    { background: var(--pale); }
.feature--wide { grid-column: 1 / -1; background: var(--sage-pale); border-color: rgba(93,127,88,.3); }
@media (min-width: 600px) {
  .feature--wide { flex-direction: row; align-items: center; gap: 1.25rem; }
  .feature--wide .icon { width: 58px; height: 58px; }
  .feature--wide .icon svg { width: 32px; height: 32px; }
}

/* The family line */
.family {
  margin-top: 3.5rem; padding: 3rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, #FBE4E8 100%);
  text-align: center;
}
.family p { max-width: 40rem; margin: 0 auto; font-size: 1.12rem; }
.family .small { margin-top: .8rem; font-size: .96rem; color: var(--ink-soft); }
.pawtrail { display: block; width: 150px; height: 22px; margin: 0 auto 1.25rem; }

/* ── Inner pages: prose ─────────────────────────────────────────────────── */
.prose { width: min(100% - 2rem, 46rem); margin: 2.75rem auto 1.5rem; padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 2rem; }
.prose + .prose { margin-top: 0; }
.prose h2 { font-size: 1.35rem; margin: 1.75rem 0 .45rem; }
.prose h2:first-child, .prose .meta:first-child + h2 { margin-top: 0; }
.prose p { margin: 0 0 .9rem; }
.prose p:last-child { margin-bottom: 0; }
.prose blockquote {
  margin: .5rem 0 1rem; padding: .85rem 1.1rem;
  border-left: 4px solid var(--dusty); background: var(--cream); border-radius: 0 12px 12px 0;
}
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: .25rem 0 1rem; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--greige); vertical-align: top; }
.prose th { color: var(--ink-soft); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.table-wrap { overflow-x: auto; }
.meta { color: var(--ink-mute); font-size: .92rem; margin: 0 0 1rem; }
.contact { background: var(--blush); border-color: rgba(180,123,131,.3); }
.contact h2 { margin-top: 0; }
.faq h2 { display: flex; gap: .55rem; align-items: baseline; }
.faq h2::before { content: "?"; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blush); color: var(--rose); font-size: 1rem; line-height: 1.6rem; text-align: center; transform: translateY(-.15rem); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { border-top: 1.5px solid var(--greige); padding: 1.75rem 0 2.5rem; font-size: .95rem; color: var(--ink-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-weight: 600; }
.foot nav a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--dusty); }
.foot nav a:hover { border-bottom-color: var(--rose); }
.foot__links { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; }
.foot .lang a { color: var(--rose); border-bottom: 0; }
.foot p { margin: 0; }
