/* Ride8's front page, www.ride8.dk. A static file on the staging box, served by
   nginx; nothing here reaches another host. Colours, type and the gold-as-metal
   are www.concierge8.dk's own (src/components/welcome/welcome.css), so the two
   front doors read as one family. Fonts are the repository's, self-hosted. */

@font-face { font-family: "Ride8 Display"; src: url("/fonts/fraunces-display-340.woff2") format("woff2"); font-weight: 300 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Ride8 Display"; src: url("/fonts/fraunces-display-340-italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Ride8 Sans"; src: url("/fonts/figtree-normal-latin.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Ride8 Mark"; src: url("/fonts/barlow-condensed-700-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --night: #0b0a09;
  --ground: #100f0d;
  --raised: #191714;
  --raised-soft: #26231e;
  --cream: #f2ede2;
  --sage: #b3ab9d;
  --moss: #989083;
  --field-line: #8f8778;
  --button-ink: #14110b;
  --error: #f3a995;
  --metal: linear-gradient(180deg, #ecd9ac 0%, #d9bc86 52%, #c7a467 100%);
  --metal-hover: linear-gradient(180deg, #f5e7c4 0%, #e5cc9c 52%, #d3b176 100%);
  --metal-text: linear-gradient(100deg, #f3e2b8 0%, #dcc08e 45%, #c9a25f 100%);
  --hairline: linear-gradient(90deg, rgb(243 226 184 / 62%), rgb(212 175 106 / 34%) 38%, rgb(165 123 61 / 10%) 82%, transparent);
  --rule: rgb(220 192 142 / 20%);
  --focus: #f3e2b8;

  --display: "Ride8 Display", "Iowan Old Style", "Palatino Linotype", Palatino, "Noto Serif", Georgia, serif;
  --sans: "Ride8 Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mark-face: "Ride8 Mark", "Arial Narrow", sans-serif;

  --gutter: clamp(1rem, 0.6rem + 2vw, 4rem);
  --text-base: clamp(0.98rem, 0.94rem + 0.17vw, 1.22rem);
  --text-lead: clamp(1.08rem, 0.99rem + 0.38vw, 1.5rem);
  --text-display: clamp(2.5rem, 1.6rem + 4vw, 6.75rem);
  --text-h2: clamp(1.45rem, 1.25rem + 0.8vw, 2.2rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(70rem 40rem at 85% -10%, rgb(201 162 95 / 10%), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgb(201 162 95 / 6%), transparent 60%),
    var(--ground);
  color: var(--cream);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.page {
  max-width: 78rem;
  margin: 0 auto;
  padding: clamp(1rem, 0.6rem + 1.5vw, 2rem) var(--gutter) 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* The bar: the logo and the way in. */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  background: var(--metal);
  color: var(--button-ink);
  font-family: var(--mark-face);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 35%), 0 6px 18px rgb(0 0 0 / 35%);
}
.word { font-weight: 650; font-size: 1.35rem; letter-spacing: -0.01em; }
.eight { background: var(--metal-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.pill:hover { border-color: var(--cream); }

main { flex: 1; display: grid; align-content: center; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding: clamp(3rem, 2rem + 5vw, 7rem) 0; }

/* The headline, as www.concierge8.dk sets it: upright, then the gold italic. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  color: #dcc08e;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.rule { display: inline-block; width: 3rem; height: 1px; background: var(--hairline); }
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 340;
  font-size: var(--text-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h1 em {
  font-style: italic;
  background: var(--metal-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { max-width: 38rem; margin: 1.75rem 0 0; color: var(--sage); font-size: var(--text-lead); line-height: 1.5; }

/* Signing in: the company's own address, then the brass plate. */
.sign-in {
  max-width: 44rem;
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgb(38 35 30 / 70%), rgb(25 23 20 / 70%));
  box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
}
h2 { margin: 0; font-family: var(--display); font-weight: 340; font-size: var(--text-h2); line-height: 1.15; }
.hint { margin: 0.6rem 0 1.4rem; color: var(--moss); font-size: 0.95rem; }
.door { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; }
.field {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--night);
  cursor: text;
}
.field:focus-within { border-color: var(--focus); }
.prefix, .suffix { color: var(--moss); white-space: nowrap; }
.prefix { font-size: 0.9rem; }
.field input {
  flex: 1;
  min-width: 4ch;
  border: 0;
  background: transparent;
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 0.15rem;
}
.field input::placeholder { color: #6f685d; font-weight: 400; }
.field input:focus { outline: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--metal);
  color: var(--button-ink);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%), 0 10px 24px rgb(0 0 0 / 30%);
}
.button:hover { background: var(--metal-hover); }
.note { min-height: 1.5em; margin: 0.8rem 0 0; color: var(--error); font-size: 0.92rem; }

.foot { display: flex; align-items: center; gap: 1rem; color: var(--moss); font-size: 0.9rem; }
.foot p { margin: 0; }
.foot a { color: var(--sage); }

@media (max-width: 34rem) {
  .door { grid-template-columns: 1fr; }
  .prefix { display: none; }
  .button { width: 100%; }
  .pill { padding: 0 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .pill, .field { transition: background 160ms ease, border-color 160ms ease; }
}
