/* Temporary pages for tourdupain.com and tourdupain.app. Same file in site/ and app/. */

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('/fonts/big-shoulders-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #11141c;
  --dusk: #1d2233;
  --glow: #6b3f24;
  --crust: #d9a04e;
  --borne: #c4372b;
  --stone: #eee9e0;
  --ink: #1b1a19;
  --text: #ece8ef;
  --muted: #9ba1b5;
  --glass: rgba(29, 34, 51, 0.55);
  --line: rgba(236, 232, 239, 0.12);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html[lang='en'] [data-l='nl'],
html[lang='nl'] [data-l='en'] { display: none; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(120% 55% at 50% 100%, var(--glow) 0%, transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--dusk) 70%, #2a2230 100%);
  background-color: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.55 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--crust); text-underline-offset: 0.2em; }
a:hover { color: #f0c27e; }
:focus-visible { outline: 2px solid var(--crust); outline-offset: 3px; border-radius: 4px; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(16px, 4vw, 48px);
  font: 500 0.8125rem/1 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.top .domain { text-transform: lowercase; }

.lang {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.lang:hover { border-color: var(--crust); }

main {
  display: grid;
  grid-template-columns: auto minmax(0, 34rem);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  justify-content: center;
  padding: 24px clamp(16px, 4vw, 48px) clamp(40px, 9vh, 96px);
}

/* The signature: a French kilometre stone (borne) standing on the horizon. */
.borne {
  --w: clamp(150px, 18vw, 210px);
  width: var(--w);
  position: relative;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45));
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.borne .cap {
  height: calc(var(--w) * 0.5);
  border-radius: calc(var(--w) * 0.5) calc(var(--w) * 0.5) 0 0;
  background: linear-gradient(90deg, #a92c22 0%, var(--borne) 45%, #d3473a 70%, #a92c22 100%);
  display: grid;
  place-items: end center;
  padding-bottom: calc(var(--w) * 0.06);
  color: var(--stone);
  font: 800 calc(var(--w) * 0.2)/1 'Big Shoulders Display', sans-serif;
  letter-spacing: 0.02em;
}
.borne .body {
  height: calc(var(--w) * 0.95);
  background: linear-gradient(90deg, #cfc8bb 0%, var(--stone) 40%, #faf7f1 65%, #d8d1c4 100%);
  color: var(--ink);
  text-align: center;
  padding-top: calc(var(--w) * 0.14);
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}
.borne .place { font-size: calc(var(--w) * 0.135); letter-spacing: 0.03em; line-height: 1.1; }
.borne .dist { font-size: calc(var(--w) * 0.24); line-height: 1.2; color: var(--borne); }
.borne::after {
  /* Ground shadow where the stone meets the verge. */
  content: '';
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -10px;
  height: 20px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  z-index: -1;
}

.copy {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade 900ms 150ms ease-out both;
}

.eyebrow {
  margin: 0 0 12px;
  font: 500 0.8125rem/1.3 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crust);
}

h1 {
  margin: 0 0 16px;
  font: 800 clamp(3.25rem, 9vw, 6rem)/0.9 'Big Shoulders Display', sans-serif;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}

.copy p { margin: 0 0 14px; max-width: 32rem; }
.copy p:last-child { margin-bottom: 0; }
.status {
  margin-top: 22px !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

footer {
  padding: 16px clamp(16px, 4vw, 48px) 24px;
  font: 500 0.75rem/1.5 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .borne, .copy { animation: none; }
}

@media (max-width: 760px) {
  main {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    gap: 36px;
  }
  .copy { width: 100%; }
}
