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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
/* the route engine owns scroll position maths; smooth-scroll only for anchors */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.62;
  font-weight: 450;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.is-menu-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.022em;
  margin: 0;
  text-transform: uppercase;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

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

::selection { background: var(--sun); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

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

.skip {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--offwhite);
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: top .18s var(--ease-brake);
}
.skip:focus { top: 1rem; }

/* --- shared type helpers ------------------------------------------------ */

.eyebrow {
  font-family: var(--body);
  font-size: var(--t-micro);
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-52);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  color: var(--ink-70);
  max-width: 34ch;
}

.stack > * + * { margin-top: 1.4rem; }

/* --- buttons behave like road signs ------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--offwhite);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1.02rem 1.5rem 1.02rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 3px 14px 14px 3px;   /* a sign, pointing forward */
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .3s var(--ease-drive), box-shadow .3s var(--ease-drive),
              background-color .3s var(--ease-drive);
}
.btn .arw {
  width: 20px; height: 10px;
  flex: none;
  transition: transform .34s var(--ease-drive);
}
.btn:hover, .btn:focus-visible {
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}
.btn:hover .arw, .btn:focus-visible .arw { transform: translateX(6px); }
.btn:active { transform: translateX(1px) scale(.985); }

.btn--go     { --btn-bg: var(--accent); --btn-fg: #fff; }
.btn--sun    { --btn-bg: var(--sun);    --btn-fg: var(--ink); }
.btn--ghost  {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 2px currentColor;
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px currentColor; }
.btn--onphoto { --btn-bg: rgba(250,248,242,.94); --btn-fg: var(--ink); }

/* --- picture frames ------------------------------------------------------ */

.shot {
  position: relative;
  overflow: hidden;
  background: var(--sky);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }

.demo-note {
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-52);
  font-weight: 700;
}
