/* Pingwin Air – static site (INT53, photos INT57). No scripts, no trackers, no external requests. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #eef4f6;
  --text: #17222c;
  --muted: #52606b;
  --line: #d9e1e5;
  --brand: #0b5f86;
  --brand-ink: #ffffff;
  --accent: #e8743b;
  --link: #0a5d84;
  --hero-1: #0f3f5e;
  --hero-2: #127c8f;
  --hero-text: #ffffff;
  --code-bg: #e9eef1;
  --radius: 14px;
  --wrap: 46rem;
  --font-head: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1820;
    --surface: #13222d;
    --surface-2: #172a37;
    --text: #e6edf1;
    --muted: #a3b2bc;
    --line: #263946;
    --brand: #4fb3dc;
    --brand-ink: #062030;
    --accent: #f39a6b;
    --link: #7cc8ea;
    --hero-1: #0a2a3f;
    --hero-2: #0d5462;
    --code-bg: #1c3140;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font-body);
  overflow-wrap: break-word;
}

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.5rem/1 var(--font-head); letter-spacing: 0.01em; margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.lang { font-size: 0.9rem; font-weight: 600; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; }

/* Hero (home) */
.hero { background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: var(--hero-text); padding: 48px 0 44px; }
.hero .wrap { display: grid; gap: 18px; justify-items: start; }
.hero-icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); }
.hero h1 { font: 700 clamp(2.6rem, 9vw, 4rem)/0.95 var(--font-head); margin: 0; letter-spacing: 0.01em; }
.hero .tagline { font-size: 1.2rem; margin: 0; max-width: 32rem; opacity: 0.95; }
.soon { display: inline-block; background: rgb(255 255 255 / 0.14); border: 1px solid rgb(255 255 255 / 0.35); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 0.95rem; }

/* Page body */
main { display: block; }
.page { padding: 32px 0 48px; }
.page h1 { font: 700 clamp(2.1rem, 7vw, 2.8rem)/1.05 var(--font-head); margin: 0 0 6px; }
.updated { color: var(--muted); margin: 0 0 24px; font-size: 0.95rem; }
h2 { font: 700 1.65rem/1.15 var(--font-head); margin: 2.2rem 0 0.6rem; letter-spacing: 0.01em; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: 0.35rem; }
li > ul { margin-top: 0.35rem; }
strong { font-weight: 650; }
code { background: var(--code-bg); border-radius: 5px; padding: 0.05em 0.35em; font-size: 0.92em; }

.lead { font-size: 1.15rem; color: var(--text); }
.note { color: var(--muted); font-size: 0.95rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 1rem; }
.card > :last-child { margin-bottom: 0; }
.card > h2:first-child { margin-top: 0; }
.summary { background: var(--surface-2); }
.summary h2 { margin-top: 0; font-size: 1.35rem; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.button { display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 700; border-radius: 999px; padding: 10px 18px; }
.button:hover { filter: brightness(1.08); }
.mail { font-weight: 600; word-break: break-all; }

.toc { columns: 2 14rem; column-gap: 2rem; padding-left: 1.2rem; }
.toc li { break-inside: avoid; }

/* Tables become stacked rows on narrow screens */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .stack thead { position: absolute; left: -9999px; }
  .stack tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { display: block; border: 0; padding: 4px 14px; }
  .stack td::before { content: attr(data-label); display: block; font-size: 0.8rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
}

/* FAQ */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.faq summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: 650; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 14px; }
.faq .answer > :last-child { margin-bottom: 0; }

/* Home features */
.features { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0; }
.features h3 { margin: 0 0 4px; font: 700 1.3rem/1.15 var(--font-head); }
.features p { margin: 0; color: var(--muted); }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { margin: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 0.92rem; font-weight: 600; }

.other-langs { display: grid; gap: 8px; }
.other-langs p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 0.92rem; padding: 22px 0 28px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0 0 10px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0 0 6px; }

/* INT57: photo hero, feature rows and gallery (home pages) */
picture { display: block; }
.hero-photo { position: relative; overflow: hidden; isolation: isolate; padding: 0; min-height: clamp(26rem, 62vh, 40rem); display: flex; align-items: flex-end; background: var(--hero-1); }
.hero-photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 12% 45%; z-index: -2; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(4 20 32 / 0) 30%, rgb(4 20 32 / 0.55) 62%, rgb(4 20 32 / 0.88) 100%),
              linear-gradient(90deg, rgb(4 20 32 / 0.45) 0%, rgb(4 20 32 / 0) 60%); }
.hero-photo .hero-content { width: 100%; max-width: 72rem; padding-top: 56px; padding-bottom: 40px; }
.hero-photo .hero-icon { width: 80px; height: 80px; border-radius: 18px; }
.hero-photo h1, .hero-photo .tagline { text-shadow: 0 2px 12px rgb(0 0 0 / 0.55); }
@media (max-width: 899px) {
  .hero-photo { display: block; min-height: 0; background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); }
  .hero-photo .hero-bg { position: static; display: block; height: auto; aspect-ratio: 4 / 3; object-position: 14% 50%; }
  .hero-photo::after { display: none; }
  .hero-photo .hero-content { position: relative; padding-top: 0; padding-bottom: 32px; margin-top: -44px; }
  .hero-photo .hero-icon { width: 72px; height: 72px; border-radius: 16px; border: 3px solid rgb(255 255 255 / 0.9); }
}
@media (min-width: 900px) {
  .hero-photo .hero-bg { object-position: 50% 45%; }
  .hero-photo::after { background: linear-gradient(180deg, rgb(4 20 32 / 0) 45%, rgb(4 20 32 / 0.7) 100%),
              linear-gradient(270deg, rgb(4 20 32 / 0.72) 0%, rgb(4 20 32 / 0.35) 38%, rgb(4 20 32 / 0) 62%); }
  .hero-photo .hero-content { justify-items: end; text-align: right; }
  .hero-photo .tagline { max-width: 26rem; }
}
.hero-photo .soon { margin: 4px 0 0; background: rgb(4 20 32 / 0.55); border-color: rgb(255 255 255 / 0.5); }

.wrap.wide, .home > .wrap, .site-header .wrap, .site-footer .wrap { max-width: 72rem; }
.home .lead { max-width: 40rem; }
.features-list { display: grid; gap: 28px; margin: 28px auto 8px; }
.feature { display: grid; gap: 14px 32px; align-items: center; }
.feature-media img, .gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 6px 22px rgb(0 0 0 / 0.18); background: var(--surface-2); }
.feature-text h3 { font: 700 clamp(1.6rem, 4vw, 2rem)/1.1 var(--font-head); margin: 0 0 8px; letter-spacing: 0.01em; }
.feature-text p { margin: 0; color: var(--muted); font-size: 1.05rem; }
@media (min-width: 760px) {
  .feature { grid-template-columns: 1.35fr 1fr; }
  .feature.flip { grid-template-columns: 1fr 1.35fr; }
  .feature.flip .feature-media { order: 2; }
}

.gallery { margin-top: 2.6rem; }
.gallery h2 { margin-top: 0; }
.gallery ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.gallery li { margin: 0; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: var(--radius); }
.gallery a:hover img { filter: brightness(1.06); }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
  .faq details { border: 0; }
}
