/* The holding page's only stylesheet. Standalone on purpose: it must render
   with neither the Worker nor the API up, so the token values it uses are
   copied from frontend/public/css/tokens.css rather than read from it. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/poppins-latin-700.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --color-blue: #0078c5;
  --color-blue-light: #a9d5f1;
  --color-blue-lighter: #e5f1f9;
  --color-navy: #1a1a2e;
  --color-white: #ffffff;
  --overlay-heavy: rgba(10, 20, 40, 0.86);
  --overlay-light: rgba(10, 20, 40, 0.42);
  --glass: rgba(255, 255, 255, 0.22);

  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-3xl: clamp(2.1rem, 1.4rem + 3.2vw, 3.4rem);
  --tracking-label: 0.125em;
  --radius-md: 12px;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-blue-lighter);
  background:
    linear-gradient(100deg, var(--overlay-heavy) 0%, var(--overlay-heavy) 38%, var(--overlay-light) 100%),
    url("img/kribi.jpg") center / cover no-repeat var(--color-navy);
}

a:focus-visible {
  outline: 3px solid var(--color-blue-light);
  outline-offset: 2px;
}

.hold-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--gutter) 0;
}

.hold-logo {
  display: block;
  width: auto;
  height: 56px;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.hold-lang {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-underline-offset: 4px;
}

.hold-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  max-width: calc(42rem + 2 * var(--gutter));
  padding: 2.5rem var(--gutter) 3rem;
}

.hold-copy {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.hold-eyebrow {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-blue-light);
}

.hold-title {
  margin: 0;
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-white);
  text-wrap: balance;
}

.hold-lead {
  margin: 0;
  max-width: 34em;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hold-contacts {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--glass);
}

.hold-contacts li {
  min-width: 0;
  border-bottom: 1px solid var(--glass);
}

.hold-contacts a {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.875rem 0.75rem 0.875rem 0;
  color: inherit;
  text-decoration: none;
}

.hold-contacts__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.hold-contacts__value {
  color: var(--color-white);
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.hold-contacts a:hover .hold-contacts__value {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hold-foot {
  margin: 0;
  font-size: var(--text-sm);
}

@media (min-width: 480px) {
  .hold-logo {
    height: 72px;
  }

  .hold-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Narrow screens stack the copy over the photo, so the overlay runs top to
   bottom and the crop favours the palms. */
@media (max-width: 767px) {
  body {
    background:
      linear-gradient(180deg, var(--overlay-heavy) 0%, var(--overlay-heavy) 60%, var(--overlay-light) 100%),
      url("img/kribi.jpg") 62% center / cover no-repeat var(--color-navy);
  }
}
