/* New Traveler coming-soon. Tokens from the brand kit (The Route): night navy, gold route. */
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0b1222;
  --navy: #14223d;
  --text: #eef1f8;
  --muted: #cfd7e6;
  --gold: #e8b25a;
  --gold2: #ffd796;
  --focus: #ffd28a;
  --cream: #f6efe2;
  --ink: #14223d;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(120% 90% at 78% 18%, #1a2c4f 0%, var(--navy) 38%, var(--night) 100%);
  color: var(--text);
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-weight: 650;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.bg-drift {
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 18% 86%, rgba(232, 178, 90, 0.22) 0%, transparent 58%),
    radial-gradient(48% 42% at 92% 12%, rgba(26, 44, 79, 0.95) 0%, transparent 62%),
    radial-gradient(36% 32% at 70% 70%, rgba(255, 215, 150, 0.12) 0%, transparent 55%);
  transform: translate3d(0, 0, 0);
}
.route {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
}
.postcards {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.postcard {
  position: absolute;
  width: 148px;
  height: 102px;
  border-radius: 8px;
  border: 2px solid rgba(232, 178, 90, 0.85);
  box-shadow: 0 10px 28px rgba(11, 18, 34, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 14px 16px;
  transform: translate3d(0, 0, 0);
}
.postcard-1,
.postcard-3 {
  background: linear-gradient(160deg, #1a2c4f 0%, #14223d 70%, #0f1a30 100%);
}
.postcard-2 {
  background: linear-gradient(160deg, #f6efe2 0%, #efe4d0 100%);
  border-color: #c98a2e;
}
.postcard-mark { display: block; }
.postcard-stamp {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 32px;
  border: 1.5px dashed rgba(232, 178, 90, 0.85);
  border-radius: 2px;
}
.stamp-dark { border-color: rgba(20, 34, 61, 0.45); }
.postcard-rule {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 0;
  border-top: 2px dotted rgba(232, 178, 90, 0.55);
}
.rule-dark { border-top-color: rgba(20, 34, 61, 0.28); }
.postcard-1 { top: 10%; right: 4%; transform: rotate(-6deg); }
.postcard-2 { top: 58%; left: 3%; transform: rotate(8deg); }
.postcard-3 { bottom: 7%; right: 5%; transform: rotate(3deg); }
@media (max-width: 700px) {
  .postcard { width: 112px; height: 78px; padding: 10px 12px; }
  .postcard-mark { width: 28px; height: 28px; }
  .postcard-stamp { width: 20px; height: 24px; top: 8px; right: 8px; }
  .postcard-1 { top: 8%; right: -18px; }
  .postcard-2 { top: auto; bottom: 20%; left: -28px; }
  .postcard-3 { bottom: 16%; right: -22px; }
}
/* Short phones (e.g. 360x640): only a peek from the edges, so cards stay off the form, footer and body text. */
@media (max-width: 700px) and (max-height: 740px) {
  .postcard { width: 100px; height: 70px; }
  .postcard-1 { top: 8%; right: -50px; }
  .postcard-2 { bottom: -56px; left: -72px; }
  .postcard-3 { bottom: -56px; right: -64px; }
  /* Cream under light text fails contrast, so this card matches the navy ones here. */
  .postcard-2 {
    background: linear-gradient(160deg, #1a2c4f 0%, #14223d 70%, #0f1a30 100%);
    border-color: rgba(232, 178, 90, 0.85);
  }
  .postcard-2 .postcard-mark path { stroke: #F6EFE2; }
  .postcard-2 .postcard-mark circle:nth-child(3) { fill: #F6EFE2; }
  .postcard-2 .postcard-stamp { border-color: rgba(232, 178, 90, 0.85); }
  .postcard-2 .postcard-rule { border-top-color: rgba(232, 178, 90, 0.55); }
  /* On a short privacy page the text fills the screen, so keep only the colour drift. */
  body:has(.privacy) .postcards { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .bg-drift {
    animation: nt-bg-drift 14s ease-in-out infinite alternate;
  }
  .postcard-1 { animation: nt-float-a 7s ease-in-out infinite; }
  .postcard-2 { animation: nt-float-b 8.5s ease-in-out infinite; }
  .postcard-3 { animation: nt-float-c 6.5s ease-in-out infinite; }
  html.motion-paused .bg-drift,
  html.motion-paused .postcard-1,
  html.motion-paused .postcard-2,
  html.motion-paused .postcard-3 {
    animation-play-state: paused;
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  body:has(.privacy) .postcard-1 { animation-name: nt-float-a-sm; }
  body:has(.privacy) .postcard-2 { animation-name: nt-float-b-sm; }
  body:has(.privacy) .postcard-3 { animation-name: nt-float-c-sm; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) and (max-height: 740px) {
  .postcard-1 { animation-name: nt-float-a-sm; }
  .postcard-2 { animation-name: nt-float-b-sm; }
  .postcard-3 { animation-name: nt-float-c-sm; }
}

@keyframes nt-bg-drift {
  from { transform: translate3d(-6%, 4%, 0) scale(1.04); }
  to { transform: translate3d(7%, -5%, 0) scale(1.1); }
}
@keyframes nt-float-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
  50% { transform: translate3d(-18px, 28px, 0) rotate(5deg); }
}
@keyframes nt-float-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(22px, -26px, 0) rotate(-4deg); }
}
@keyframes nt-float-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(3deg); }
  50% { transform: translate3d(-16px, -22px, 0) rotate(-7deg); }
}
@keyframes nt-float-a-sm {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
  50% { transform: translate3d(-6px, 10px, 0) rotate(2deg); }
}
@keyframes nt-float-b-sm {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(8px, 6px, 0) rotate(-2deg); }
}
@keyframes nt-float-c-sm {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(3deg); }
  50% { transform: translate3d(-8px, 6px, 0) rotate(-4deg); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.4em;
  flex: 0 0 auto;
  /* Brand kit lockup: mark is 1.45em, gap is 0.4em, wordmark Manrope 650. */
  font-size: calc(30px / 1.45);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.logo,
.logo:link,
.logo:visited,
.logo:hover,
.logo:active {
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  display: block;
  width: 1.45em;
  height: 1.45em;
  flex: 0 0 auto;
}
.logo-word { display: block; }
.lang-short { display: none; }
@media (max-width: 32rem) {
  .lang-full { display: none; }
  /* Override the UA [hidden] { display: none !important } rule. */
  .lang-short[hidden] { display: inline !important; }
}
.langs {
  display: flex;
  gap: 0.15rem;
  border: 1px solid rgba(232, 178, 90, 0.35);
  border-radius: 999px;
  padding: 0.15rem;
}
.langs a,
.langs a:link,
.langs a:visited {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}
.langs a[aria-current="page"] {
  background: var(--gold);
  color: var(--ink);
}
.langs a:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

main { flex: 1; padding-top: 3.5rem; }
@media (min-width: 800px) {
  .wrap { padding: 1.75rem 1.5rem 4rem; }
  .logo { font-size: calc(46px / 1.45); }
  main { padding-top: 5.25rem; }
}

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
  max-width: 18ch;
}

.draft {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(232, 178, 90, 0.4);
  border-radius: 6px;
  color: var(--gold2);
  font-size: 0.8rem;
  font-weight: 600;
}

form {
  display: grid;
  gap: 0.75rem;
  max-width: 32rem;
}
label { font-weight: 650; font-size: 0.95rem; }
.row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (min-width: 560px) {
  .row { flex-direction: row; align-items: stretch; }
}
input[type="email"] {
  flex: 1;
  appearance: none;
  border: 1px solid rgba(207, 215, 230, 0.35);
  background: rgba(11, 18, 34, 0.55);
  color: var(--text);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  min-width: 0;
}
input[type="email"]::placeholder { color: #8b97ad; }
button[type="submit"] {
  appearance: none;
  border: 0;
  background: var(--gold);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  border-radius: 10px;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  white-space: nowrap;
}
button[type="submit"]:hover { background: var(--gold2); }
button[type="submit"][disabled] { opacity: 0.7; cursor: wait; }
.consent, .status, .privacy, .foot p {
  color: var(--muted);
  font-size: 0.92rem;
}
.consent { margin: 0; }
.consent a,
.consent a:link,
.consent a:visited {
  color: var(--gold2);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 178, 90, 0.7);
}
.consent a:hover { color: var(--gold); }
.status[data-tone="ok"] { color: var(--gold2); }
.status[data-tone="err"] { color: #ffb4b4; }
.status:empty { display: none; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.15rem;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}
.channels a {
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  border-bottom: 1px solid rgba(232, 178, 90, 0.7);
  padding-bottom: 0.1rem;
}
.channels a:hover { color: var(--gold2); }

.privacy {
  margin: 0;
  max-width: 40rem;
}
.privacy h2 {
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.privacy p { margin: 0; }
.privacy p + p { margin-top: 0.75rem; }

.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(207, 215, 230, 0.15);
}
.foot a,
.foot a:link,
.foot a:visited {
  color: var(--gold2);
  text-decoration: none;
}
.foot a:hover { color: var(--gold); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.legal-flag { font-size: 0.8rem; margin-top: 0.5rem; }

@media (max-width: 389px) {
  h1 { font-size: 1.85rem; }
}
