/* Lift55s — the same dark ground, crimson and type as the app. */

:root {
  --ground: #0C0D0F;   /* the app's Obscuro background */
  --raised: #16181B;
  --line: #2A2D32;
  --text: #F4F5F6;
  --muted: #9AA0A8;
  --crimson: #DC143C;  /* the logo */

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;

  --measure: 38rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

html {
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 106.25%;            /* 17px */
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

@media (min-width: 48rem) {
  html { font-size: 112.5%; }    /* 18px */
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-color: var(--crimson);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 3px; }
a:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--text);
  color: var(--ground);
  padding: 0.5rem 0.75rem;
  z-index: 2;
}
.skip:focus { left: 0.5rem; }

/* Top bar on inner pages and the language switch on every page */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.bar .mark img { width: 7.5rem; }
.bar .mark { text-decoration: none; }
.bar .lang { font-size: 0.9rem; color: var(--muted); }
.bar .lang a { color: var(--muted); }
.bar .lang a:hover { color: var(--text); }
.home .bar { justify-content: flex-end; }

/* Home: the logo, the motto, the stamp */

.hero {
  padding-top: clamp(2.5rem, 10vh, 6rem);
  padding-bottom: clamp(3rem, 10vh, 6rem);
}
.hero h1 { margin: 0; }
.hero h1 img { width: min(100%, 40rem); }
.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--text);
  margin: 1.25rem 0 0;
}
.lead {
  max-width: 30rem;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 2.5rem 0 0;
}

/* The stamp is the app's own: heavy letters, doubled border, set at an angle. */
.stamp {
  display: inline-block;
  margin-top: 2.75rem;
  padding: 3px;
  border: 1px solid rgb(220 20 60 / 0.55);
  border-radius: 9px;
  transform: rotate(-6deg);
  transform-origin: left center;
  color: var(--crimson);
}
.stamp span {
  display: block;
  padding: 0.45rem 1rem 0.4rem;
  border: 3px solid var(--crimson);
  border-radius: 6px;
  font-weight: 900;
  font-stretch: condensed;
  font-size: clamp(1.35rem, 4.5vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stamp small {
  display: block;
  font-size: 0.55em;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 0.15em;
}

@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp-down 420ms cubic-bezier(.2, .9, .3, 1.25) 700ms both; }
  @keyframes stamp-down {
    from { opacity: 0; transform: rotate(-11deg) scale(1.6); }
    60%  { opacity: 1; }
    to   { opacity: 1; transform: rotate(-6deg) scale(1); }
  }
}

/* Dividers line up with the text, not the screen edge */
.features, footer {
  background-image: linear-gradient(var(--line), var(--line));
  background-repeat: no-repeat;
  background-size: calc(100% - 2 * var(--gutter)) 1px;
  background-position: center top;
}

/* Home: what the app does, as a spec sheet */

.features {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.feature { margin: 0 0 2.25rem; }
.feature h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 0.4rem;
  max-width: 20rem;
}
.feature p {
  margin: 0;
  max-width: var(--measure);
  color: var(--muted);
}
@media (min-width: 48rem) {
  .feature {
    display: grid;
    grid-template-columns: 17rem 1fr;
    gap: 2.5rem;
    margin-bottom: 2.75rem;
  }
  .feature h2 { margin: 0; }
}

/* Inner pages: privacy and support */

.page {
  padding-top: clamp(1.5rem, 6vh, 3.5rem);
  padding-bottom: 4rem;
}
.page > * { max-width: var(--measure); }
.page h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.page .dek {
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 2.5rem;
}
.page h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
  margin: 2.5rem 0 0.5rem;
}
.page p, .page li { color: var(--muted); }
.page p { margin: 0 0 1rem; }
.page strong { color: var(--text); font-weight: 700; }
.page ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.page li { margin-bottom: 0.4rem; }
.page .date { font-size: 0.9rem; color: var(--muted); margin-top: -0.25rem; }

.contact {
  margin: 0 0 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--raised);
  border-left: 4px solid var(--crimson);
  border-radius: 0 8px 8px 0;
}
.contact p { margin: 0; color: var(--text); }
.contact a { font-size: 1.25rem; font-weight: 700; }

/* 404 */

.missed {
  padding-top: clamp(3rem, 14vh, 8rem);
  padding-bottom: 4rem;
}
.missed .stamp { margin: 0 0 3rem; }
.missed p { font-size: 1.2rem; margin: 0 0 0.5rem; }
.missed p + p { color: var(--muted); }

/* Footer */

footer {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 0.75rem; }
footer a { color: var(--text); }
footer p { margin: 0; }
