/* Metzler Apps. A quiet, neutral studio shell. Each app brings its own look
   inside its panel: Glidepath's airport signs, Lamplight's night and gold.
   System fonts only, so the site loads nothing from anyone else. */

:root {
  --ground: #F3F4F5;
  --raised: #FFFFFF;
  --edge: rgba(20, 23, 26, 0.14);
  --text: #14171A;
  --muted: #4A5057;
  --on-text: #F3F4F5;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  /* Glidepath's sign lettering. DIN Condensed ships with Apple devices. */
  --sign: "DIN Condensed", "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;

  /* Glidepath */
  --gp-black: #15181C;
  --gp-yellow: #F9C21A;
  --gp-grey: #C5CBD2;
  /* Lamplight */
  --ll-night: #1A1229;
  --ll-gold: #F0C47A;
  --ll-frame: #0E0A15;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0E1012;
    --raised: #181B1F;
    --edge: rgba(255, 255, 255, 0.16);
    --text: #F3F4F5;
    --muted: #B4BAC2;
    --on-text: #0E1012;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

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

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 75rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.narrow { max-width: 46rem; }

/* Header */
.site-header { padding: 1.5rem 0; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand svg { width: 2rem; height: 2rem; flex: none; }
.brand svg rect { fill: var(--text); }
.brand svg path { stroke: var(--ground); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; font-size: 0.9375rem; font-weight: 500; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

main { flex: 1; padding: 0 0 5.5rem; }

h1, h2, h3 { font-weight: 600; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 1.5rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; margin: 3rem 0 0.75rem; }
h3 { font-size: 1.3125rem; letter-spacing: -0.01em; margin: 1.75rem 0 0.5rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
.eyebrow { margin: 0 0 1.25rem; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 40rem; text-wrap: pretty; }
.note { color: var(--muted); font-size: 0.9375rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 48px; padding: 0 1.375rem; border-radius: 0.75rem; background: var(--text); color: var(--on-text); font-size: 1rem; font-weight: 600; text-decoration: none; }
.button:hover { opacity: 0.86; }
.button svg { width: 1.125rem; height: 1.125rem; flex: none; }

/* Home: the opening statement */
.intro { padding: 3.5rem 0; }
.intro h1 { max-width: 58rem; }
.intro .lead { margin: 0; }

/* App panels. Each one is in its app's own colours, whatever the page's. */
.panels { display: grid; gap: 1.5rem; }
.panel { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 1.75rem; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
@media (min-width: 56rem) {
  .panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 32.5rem; }
}
.panel-text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.125rem; padding: clamp(1.75rem, 5vw, 3.5rem); }
.panel-text p { margin: 0; max-width: 26.5rem; text-wrap: pretty; }
.panel-text h1, .panel-text h2 { margin: 0.375rem 0 0; }
.panel-text .button, .panel-text .panel-foot { margin-top: auto; }
.panel-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem; }
.panel-mark img { display: block; width: 56px; height: 56px; }
.panel-media { position: relative; min-height: 20rem; }
.panel-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }

/* Glidepath: sign black, sign yellow, condensed capitals */
.panel-glidepath { background: var(--gp-black); }
.panel-glidepath h1, .panel-glidepath h2 { font-family: var(--sign); font-weight: 700; font-size: clamp(3.5rem, 6.4vw, 5.25rem); line-height: 0.9; letter-spacing: 0.02em; text-transform: uppercase; }
.panel-glidepath .tagline { font-family: var(--sign); font-weight: 700; font-size: 1.5rem; line-height: 1.1; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gp-yellow); }
.panel-glidepath p { color: var(--gp-grey); }
.panel-glidepath .button { border-radius: 0.625rem; background: var(--gp-yellow); color: var(--gp-black); }
.sign-tag { display: inline-block; padding: 0.4375rem 0.625rem 0.1875rem; border-radius: 0.375rem; background: var(--gp-yellow); color: var(--gp-black); font-family: var(--sign); font-weight: 700; font-size: 1.0625rem; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }

/* Lamplight: the night, one gold, serif headlines */
.panel-lamplight { background-color: var(--ll-night); background-image: radial-gradient(70% 90% at 100% 0%, rgba(122, 79, 87, 0.62) 0%, rgba(122, 79, 87, 0) 60%); }
.panel-lamplight h1, .panel-lamplight h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.75rem, 5vw, 3.875rem); line-height: 1; letter-spacing: -0.01em; }
.panel-lamplight .tagline { font-family: var(--serif); font-style: italic; font-size: 1.4375rem; line-height: 1.3; color: var(--ll-gold); }
.panel-lamplight p { color: rgba(255, 255, 255, 0.76); }
.panel-lamplight .verse { font-family: var(--serif); font-style: italic; color: var(--ll-gold); }
.panel-lamplight .button { border-radius: 999px; background: var(--ll-gold); color: var(--ll-night); }
.gold-tag { display: inline-block; padding: 0.3125rem 0.625rem; border: 1px solid rgba(240, 196, 122, 0.55); border-radius: 999px; color: var(--ll-gold); font-size: 0.8125rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; }

.panel-phones { display: flex; justify-content: center; align-items: flex-end; gap: 1.25rem; min-height: 0; padding: 3.5rem 2rem 0; }
.phone { flex: 0 1 12.75rem; min-width: 0; margin-bottom: -2.25rem; padding: 0.375rem; border-radius: 2.125rem; background: var(--ll-frame); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.35); }
.phone img { display: block; width: 100%; height: auto; border-radius: 1.75rem; }
.phone:nth-child(2) { margin-bottom: -6.875rem; }
.panel-phones.three { gap: 1rem; padding: 3rem 1.5rem 0; }
.panel-phones.three .phone { flex-basis: 10.5rem; margin-bottom: -5.5rem; padding: 0.3125rem; border-radius: 1.75rem; }
.panel-phones.three .phone img { border-radius: 1.4375rem; }
.panel-phones.three .phone:nth-child(2) { margin-bottom: -1.5rem; }
@media (max-width: 55.99rem) {
  .panel-phones { padding-top: 0.5rem; }
  .phone { margin-bottom: -1.5rem; }
  .phone:nth-child(2) { margin-bottom: -4.5rem; }
  .panel-phones.three .phone { margin-bottom: -3rem; }
  .panel-phones.three .phone:nth-child(2) { margin-bottom: 0; }
}
@media (max-width: 30rem) {
  .site-nav { width: 100%; justify-content: space-between; gap: 0 0.5rem; font-size: 0.875rem; }
}

/* Sections under the panels */
.section { padding-top: 6rem; }
.section > h2 { margin: 0 0 2.5rem; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.rules li { margin: 0; padding-top: 1.25rem; border-top: 2px solid var(--text); }
.rules h3 { margin: 0 0 0.5rem; }
.rules p { margin: 0; font-size: 1rem; color: var(--muted); }

/* Glidepath's page: a screenshot on a sign-yellow field, and the poster */
.figure { margin: 0; }
.figure-field { display: flex; justify-content: center; padding: clamp(1.25rem, 4vw, 3rem); border-radius: 1.75rem; background: var(--gp-yellow); }
.device { width: 100%; max-width: 60rem; padding: 0.5rem; border-radius: 1.875rem; background: var(--gp-black); box-shadow: 0 24px 50px rgba(21, 24, 28, 0.28); }
.device img { display: block; width: 100%; height: auto; border-radius: 1.375rem; }
.figure figcaption { margin-top: 0.875rem; font-size: 0.9375rem; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); } }
.split h2 { margin: 0 0 1rem; }
.split p { max-width: 30rem; color: var(--muted); }
.poster { display: block; width: 100%; max-width: 24rem; height: auto; margin: 0 auto; border-radius: 1.25rem; box-shadow: 0 24px 50px rgba(21, 24, 28, 0.22); }

/* Support and legal pages */
.legal { padding-top: 3rem; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
.legal h2 { font-size: 1.625rem; }
.legal .updated { color: var(--muted); margin-bottom: 2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--edge); padding: 1.25rem 0 2rem; color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 1.75rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; display: flex; align-items: center; min-height: 44px; }
