*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:where(ul[class], ol[class]) { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: var(--lh-heading); text-wrap: balance; }
p, li { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
[hidden] { display: none !important; } /* component display rules never override the hidden attribute */
.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 100;
  padding: 10px 16px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-control);
  font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

.icon {
  width: 20px; height: 20px; flex: none;
  stroke: currentColor; fill: none;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 8px 20px;
  border: 1px solid transparent; border-radius: var(--r-control);
  font-size: var(--fs-body); font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--sm { height: 40px; }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--panel); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { text-decoration: underline; }
.btn--on-photo { background: #fff; color: var(--ink); }
.btn--on-photo:hover { background: var(--panel); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--panel); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn[aria-pressed="true"], .save.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .btn:active, .icon-btn:active,
  .door:hover > img, .door:focus-visible > img, .agent-card:hover .agent-card__photo { transform: none !important; }
  .toast { transform: none !important; transition-duration: 120ms !important; }
}

.chip {
  display: inline-flex; align-items: center; flex: none;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.chip--featured { padding: 2px 10px; background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.5; }
