/* fotostax base: reset, type defaults, layout and review utilities. Load after tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background: var(--fx-white);
  color: var(--fx-ink);
  font-family: var(--fx-font-text);
  font-size: var(--fx-step-0);
  line-height: var(--fx-leading-body);
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4 { font-weight: 700; line-height: var(--fx-leading-snug); text-wrap: balance; }
p, li { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--fx-magenta); }

:focus-visible { outline: 2px solid var(--fx-ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--fx-magenta); color: var(--fx-white); }

/* Type roles */
.fx-title { font-family: var(--fx-font-display); font-weight: 700; letter-spacing: var(--fx-tracking-display); line-height: var(--fx-leading-tight); }
.fx-subtitle { font-family: var(--fx-font-display); font-weight: 500; letter-spacing: -0.01em; line-height: var(--fx-leading-snug); }
.fx-heading { font-family: var(--fx-font-text); font-weight: 700; line-height: var(--fx-leading-snug); }
.fx-eyebrow { font-family: var(--fx-font-text); font-weight: 700; font-size: var(--fx-step--1); letter-spacing: 0.04em; color: var(--fx-ink-2); }
.fx-lead { font-size: var(--fx-step-1); line-height: 1.45; color: var(--fx-ink-2); }
.fx-small { font-size: var(--fx-step--1); color: var(--fx-ink-3); }

/* Layout */
.fx-container { width: 100%; max-width: calc(var(--fx-max) + 2 * var(--fx-gutter)); margin-inline: auto; padding-inline: var(--fx-gutter); }
.fx-container--wide { max-width: calc(var(--fx-max-wide) + 2 * var(--fx-gutter)); }
.fx-measure { max-width: var(--fx-max-text); }

.fx-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.fx-skip-link { position: absolute; left: var(--fx-space-4); top: -100px; z-index: 1000; background: var(--fx-ink); color: var(--fx-white); padding: var(--fx-space-3) var(--fx-space-4); border-radius: var(--fx-radius-s); text-decoration: none; font-weight: 700; }
.fx-skip-link:focus { top: var(--fx-space-4); }

/* Review placeholders: visible on purpose so nothing unconfirmed ships by accident. */
.fx-confirm {
  font-family: var(--fx-font-text);
  font-weight: 500;
  font-size: 0.82em;
  letter-spacing: 0;
  color: var(--fx-ink);
  background: var(--fx-yellow-tint);
  box-shadow: inset 0 -2px 0 var(--fx-yellow);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  white-space: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.fx-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 12rem;
  background:
    repeating-linear-gradient(135deg, rgba(18, 18, 18, 0.035) 0 12px, transparent 12px 24px),
    var(--fx-mist);
  border: 1px dashed #c9c6bf;
  border-radius: var(--fx-radius-m);
  color: var(--fx-ink-2);
  text-align: center;
  padding: var(--fx-space-5);
}
.fx-placeholder__label { font-size: var(--fx-step--1); font-weight: 700; max-width: 28ch; line-height: 1.4; }
.fx-placeholder__label::before { content: "Placeholder"; display: block; font-size: var(--fx-step--2); letter-spacing: 0.06em; text-transform: uppercase; color: var(--fx-ink-3); margin-bottom: var(--fx-space-1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
