/* Uncommon Objects design system 1.0 (2026-11-21): base.
   The site's own font files (copied from uncommonobjects.com into ../assets/fonts),
   a small reset, body defaults, type roles as classes, and the page shell. */

@font-face {
  font-family: "Jsl Ancient";
  src: url("/assets/fonts/jsl-ancient.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cezanne medium";
  src: url("/assets/fonts/cezanne-medium.woff2") format("woff2"),
       url("/assets/fonts/cezanne-medium.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: var(--leading-body);
  color: var(--color-text-on-paper);
  background: var(--color-surface-dark);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; display: inline-block; vertical-align: middle; }
p { margin: 0 0 var(--para-gap); }
h1, h2 { margin: 0; font-weight: var(--weight-regular); line-height: var(--leading-heading); }
a { color: inherit; text-decoration: none; } /* measured: the site underlines no link */
ul { margin: 0; padding: 0; list-style: none; }
@media (prefers-reduced-motion: reduce) {
  html * { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* Focus: one ring for every tone (added; the live site draws none). */
:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 calc(var(--focus-width) + 2px) var(--color-focus-halo);
}

/* Type roles */
.t-body    { font-size: var(--size-body); line-height: var(--leading-body); }
.t-caption { font-size: var(--size-caption); line-height: var(--leading-heading); }
.t-footer  { font-size: var(--size-footer); line-height: var(--leading-body); }
.t-script  { font-family: var(--font-script); font-size: var(--size-body); line-height: var(--leading-body); }
.t-lead    { font-size: var(--size-lead); line-height: var(--leading-heading); }
.t-display { font-size: var(--size-display); line-height: var(--leading-heading); font-style: italic; }
@media (max-width: 767px) {
  .t-lead    { font-size: var(--size-lead-phone); }
  .t-display { font-size: var(--size-display-phone); }
}

/* Page shell */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-10); top: -100px; z-index: 10;
  padding: var(--space-10) var(--space-20);
  background: var(--color-surface-dark); color: var(--color-text-on-dark);
  font-size: var(--size-small);
}
.skip-link:focus { top: var(--space-10); }

.container {
  max-width: var(--container);
  margin-inline: auto;
}
/* Columns inside a container carry the 10 px gutter on each side. */
.container--narrow { max-width: var(--container-narrow); }

/* Band tones: each band carries its own texture over its mean color. */
.band { position: relative; }
.band--splash { background: var(--color-surface-dark) url("/assets/img/bg-splash.jpg"); color: var(--color-text-on-dark); }
.band--paper  { background: var(--color-surface-paper) url("/assets/img/bg-paper.jpg") center / auto repeat; color: var(--color-text-on-paper); }
.band--wood   { background: var(--color-surface-wood) url("/assets/img/bg-wood.jpg"); color: var(--color-text-on-dark); }
.band--postcards { background: var(--color-surface-paper) url("/assets/img/bg-postcards.gif"); }
.band--photo  { background: var(--color-surface-wood) center / cover no-repeat; }
