@import url('tokens.css');

/* ==========================================================================
   Base

   Reset, element defaults, body typography, focus-visible, and the layout
   primitives every page shares (the shell wrapper, the reading measure).
   Nothing here is a component. A hotel row, a checklist item, a flight
   card: those belong to the agent building that pane, not to this file.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-quart);
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-fg);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.shell-wide {
  width: min(100% - 2.5rem, var(--shell-wide));
  margin-inline: auto;
}

/* ==========================================================================
   Typography and accessibility utilities
   ========================================================================== */

/* Prices and times: both matter equally here, so both get tabular figures
   rather than proportional ones that shift width as digits change. */
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
