/* Base layout for the welcome, account and information pages. Colours come from /auth/twokulu.css. */
:root {
  color-scheme: light;
  font-family: var(--tk-font-sans);
  color: var(--tk-ink);
  background: var(--tk-surface);
  font-synthesis: none;
  --ocean: var(--tk-link);
  --ink: var(--tk-ink);
  --muted: var(--tk-ink-muted);
  --line: var(--tk-line);
  --wash: var(--tk-surface-sunken);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; }
main { max-width: 560px; margin: 0 auto; padding: max(32px, env(safe-area-inset-top)) 26px max(40px, env(safe-area-inset-bottom)); }
button, input, a { -webkit-tap-highlight-color: transparent; }
.brand { display: flex; justify-content: space-between; color: var(--ink); text-decoration: none; font-size: 24px; font-weight: 500; margin-bottom: 48px; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
h1, h2, h3 { font-family: var(--tk-font-display); font-weight: 500; }
h1 { margin: 0 0 21px; font-size: clamp(36px, 7vw, 48px); line-height: 1.08; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
form { margin: 31px 0 20px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
input { display: block; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--tk-line-strong); border-radius: var(--tk-radius-sm); background: var(--tk-surface-raised); color: var(--ink); font: inherit; font-size: 16px; }
input::placeholder { color: var(--tk-ink-muted); opacity: 1; }
input + label { margin-top: 20px; }
button, .button { display: block; width: 100%; min-height: 48px; margin-top: 14px; padding: 13px 20px; border: 1px solid var(--tk-primary); border-radius: var(--tk-radius-pill); background: var(--tk-primary); color: var(--tk-on-primary); font: inherit; font-weight: 500; line-height: 1.35; text-align: center; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--tk-focus); outline-offset: 2px; }
.quiet { background: transparent; border-color: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.note a { color: var(--ocean); text-underline-offset: 3px; }
#status { margin: 20px 0; padding: 0; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
#status:empty { display: none; }
[hidden] { display: none !important; }

.auth-shell { max-width: 1240px; min-height: 100vh; min-height: 100svh; padding: 0; }
.welcome-scene { position: relative; isolation: isolate; height: clamp(270px, 36svh, 390px); margin: 0; overflow: hidden; background: var(--tk-ink); }
.welcome-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 42% 56%; }
.scene-brand { position: absolute; top: max(25px, env(safe-area-inset-top)); left: 26px; margin: 0; padding: 8px 16px 8px 12px; border-radius: var(--tk-radius-pill); color: var(--ink); background: var(--tk-surface-raised); font-size: 22px; }
.scene-brand:focus-visible { outline-color: #fff; }
.welcome-scene figcaption { position: absolute; bottom: 18px; left: 26px; padding: 5px 10px; border-radius: 5px; background: #1c2331a6; color: #fff; font-size: 11px; font-weight: 500; line-height: 1.4; }
.auth-content { padding: 31px 26px max(23px, env(safe-area-inset-bottom)); }
.auth-copy { max-width: 430px; margin: 0 auto; }
.auth-copy > p { font-size: 15px; }
.auth-copy #app-note { font-size: 12px; margin-top: 13px; }
.auth-copy #intro { max-width: 37ch; }
.form-note { margin: 14px 0 0; text-align: center; }
.auth-footer { max-width: 430px; margin: 37px auto 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-bottom: 10px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; }
.photo-credit { margin: 0; font-size: 10px; line-height: 1.5; color: var(--muted); text-align: center; }
.photo-credit a { color: inherit; text-underline-offset: 2px; }

.trip-hub { background: var(--tk-surface); }
.trips-shell { max-width: 1080px; padding-top: max(25px, env(safe-area-inset-top)); }
.hub-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 47px; }
.hub-header .brand { margin: 0; }
.hub-header > a:last-child { padding: 10px 0 10px 15px; color: var(--ocean); font-size: 13px; text-underline-offset: 4px; }
.hub-heading h1 { margin-bottom: 13px; }
.hub-heading > p { margin-bottom: 8px; font-size: 15px; }
.hub-heading .account { font-size: 12px; overflow-wrap: anywhere; }
.trip-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 27px 0 0; }
.trip { display: block; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: var(--tk-radius-lg); background: none; color: var(--ink); text-align: left; }
.trip-image { position: relative; display: block; height: 188px; overflow: hidden; background: var(--tk-surface-sunken); }
.trip-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 35% 55%; }
.trip--family .trip-image img { object-position: 75% 70%; }
.trip-current { position: absolute; top: 14px; left: 15px; padding: 6px 10px; border-radius: 6px; background: var(--tk-surface-raised); color: var(--ink); font-size: 11px; font-weight: 500; }
.trip-body { display: block; padding: 23px 23px 21px; }
.trip strong { display: block; font-family: var(--tk-font-display); font-size: 27px; line-height: 1.2; letter-spacing: -.01em; font-weight: 500; }
.trip-date { display: block; margin-top: 9px; font-size: 13px; line-height: 1.5; color: var(--muted); font-weight: 400; }
.trip-action { display: block; width: fit-content; margin-top: 23px; padding-bottom: 3px; border-bottom: 1px solid var(--tk-line-strong); color: var(--ocean); font-size: 13px; font-weight: 500; }
.hub-footer { margin-top: 27px; padding-top: 8px; }
.hub-footer .quiet { width: auto; margin: 0 auto 13px; padding: 12px 15px; min-height: 44px; }
.hub-footer .note { text-align: center; }
.trip-empty { grid-column: 1 / -1; margin: 0; padding: 0; font-size: 15px; color: var(--muted); }

.info main { max-width: 680px; }
.info .brand { margin-bottom: 42px; }
.info h2 { margin-top: 32px; font-size: 22px; letter-spacing: -.01em; }
.info a { color: var(--ocean); }
.info h1 { max-width: 480px; }

@media (hover: hover) {
  button:not(.quiet):not(.trip):not(:disabled):hover, .button:hover { opacity: .92; }
  .trip:not(:disabled):hover img { transform: scale(1.02); }
  .quiet:hover { color: var(--ink); background: var(--tk-surface-sunken); }
}
@media (min-width: 700px) {
  .trip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; }
  .trips-shell { padding: 42px 40px 48px; }
  .hub-header { margin-bottom: 58px; }
  .trip-image { height: 235px; }
}
@media (min-width: 900px) {
  .welcome { padding: 32px; background: var(--tk-surface); }
  .auth-shell { display: grid; grid-template-columns: 1.16fr 1fr; min-height: min(760px, calc(100svh - 64px)); overflow: hidden; border-radius: var(--tk-radius-lg); background: var(--tk-surface-raised); }
  .welcome-scene { height: 100%; min-height: 680px; }
  .welcome-photo { object-position: 43% 50%; }
  .scene-brand { top: 33px; left: 33px; }
  .welcome-scene figcaption { bottom: 30px; left: 33px; }
  .auth-content { display: flex; flex-direction: column; justify-content: center; padding: 61px 48px 30px; }
  .auth-copy { width: 100%; margin: auto 0; }
  .auth-copy h1 { font-size: clamp(45px, 4.2vw, 57px); }
  .auth-footer { width: 100%; margin-top: 44px; }
}
@media (min-width: 1300px) {
  .welcome { padding-top: max(32px, calc((100svh - 760px) / 2)); }
}
@media (max-width: 360px) {
  .auth-content, .trips-shell { padding-right: 20px; padding-left: 20px; }
  .welcome-scene { height: 245px; }
  h1 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
