/* Uncommon Objects design system 1.0 (2026-11-21): components.
   Only the components the home page uses, with the states the live site has,
   plus a visible keyboard focus (from base.css). */

/* ---------------------------------------------------------------------------
   Site header and menu
   Use when: top of every page, on the dark splash. Not when: inside content.
   Desktop: centered copper links divided by copper dots. At 1024 px and under the
   links fold into a menu button; the dots go at 900 px and under. */
.site-header { min-height: 120px; display: flex; align-items: center; }
.site-header > .container { width: 100%; padding-block: var(--space-10); }

.nav__list { display: flex; flex-wrap: wrap; justify-content: center; }
.nav__item { display: flex; align-items: center; }
.nav__link {
  display: flex; align-items: center;
  padding: var(--space-14) var(--space-20);
  margin-inline: var(--space-10); /* measured: calc(20px / 2) */
  font-family: var(--font-text);
  font-size: var(--size-nav);
  font-weight: var(--weight-nav);
  line-height: var(--leading-nav);
  color: var(--color-nav);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-nav) var(--ease-standard);
}
.nav__item:first-child .nav__link { margin-inline-start: 0; }
.nav__item:last-child .nav__link { margin-inline-end: 0; }
.nav__link:hover, .nav__link:focus-visible { color: var(--color-nav); }
.nav__item:not(:last-child)::after {
  content: ""; display: inline-block;
  width: var(--dot-size); height: var(--dot-size);
  border-radius: var(--radius-dot);
  background: var(--color-nav);
  margin: 0 var(--space-20);
  position: relative; top: -2px;
}

.nav__toggle {
  display: none;
  margin: 0 auto;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  font-size: 22px;
  color: var(--uo-slate);
  background: rgba(0, 0, 0, .05);
  border: 0; border-radius: var(--radius-field);
  cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 22px; height: 3px; background: currentColor; border-radius: 1px;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -7px; }
.nav__bars::after  { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav__toggle { display: flex; }
  .nav__list {
    display: none;
    flex-direction: column;
    margin-top: var(--space-10);
    background: var(--color-surface-field);
  }
  .nav__list.is-open { display: flex; }
  .nav__link {
    margin: 0;
    padding: var(--space-10) var(--space-20);
    color: var(--uo-slate);
    white-space: normal;
  }
  .nav__link:hover, .nav__link:focus-visible { background: var(--uo-slate-hover); color: var(--uo-white); }
}
@media (max-width: 900px) {
  .nav__item:not(:last-child)::after { display: none; }
}

/* ---------------------------------------------------------------------------
   Splash: the wordmark between two chain rules
   Use when: the home page opening, on the dark splash tone. Not when: inner pages
   (they open with the header only). The wordmark is the logo-splash picture, never
   redrawn in type; it scales down only, never past its own 445 px. */
.splash { padding-block: var(--space-20); }
.splash__chain {
  height: 64px;
  background: url("/assets/img/bg-chain.png") top center repeat-x;
}
.splash__mark { padding: var(--space-10); text-align: center; line-height: 0; }
.splash__mark img { width: 445px; }

/* ---------------------------------------------------------------------------
   Welcome: the pictured title, the visit card and two columns of story
   Use when: the home page's welcome, on paper. Not when: on a dark tone (the ink
   title art and the black rules are drawn for paper only).
   Three equal columns inside the narrow container; one column under 768 px. */
.welcome { padding-block: var(--space-40); }
.welcome__inner { padding-block: var(--space-60); }
.welcome__title { text-align: center; line-height: 0; margin-bottom: var(--space-20); }
.welcome__title img { width: 500px; }
.welcome__grid { display: flex; }
.welcome__col { width: 33.33%; padding: var(--space-10); display: flex; flex-direction: column; gap: var(--space-20); }
.welcome__text {
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--color-text-on-paper);
}
.welcome__card { text-align: center; }
.welcome__card img { width: 218px; }
.welcome__signature {
  font-family: var(--font-script);
  font-size: var(--size-body);
  line-height: var(--leading-body);
  color: var(--color-text-on-paper);
}
.welcome__phone { color: var(--color-strong-on-paper); text-decoration: none; }
.welcome__phone:hover { color: var(--color-text-on-paper); }
@media (max-width: 767px) {
  .welcome__grid { flex-direction: column; }
  .welcome__col { width: 100%; }
}
@media (min-width: 768px) { /* measured column split */
  .welcome__col:nth-child(2) { width: 32.976%; }
  .welcome__col:nth-child(3) { width: 33.36%; }
}

/* Short rule: an 80 px black line that separates lines of the visit card.
   Use when: between facts in a centered card on paper. Not when: as a band divider. */
.rule-short { padding-block: var(--space-2); }
.rule-short::before {
  content: ""; display: block;
  width: var(--divider-length); margin-inline: auto;
  border-top: var(--rule-divider) solid var(--color-rule);
}

/* ---------------------------------------------------------------------------
   Statement over a photograph
   Use when: one short line of the brand's own lettering (a picture) over a full-bleed
   shop photograph. Not when: the words are live text that needs to change often. */
.statement { padding-block: var(--space-128); background-image: url("/assets/img/bg-greenscape.jpg"); }
.statement__inner { padding: var(--space-10); text-align: center; line-height: 0; }
.statement__inner img { width: 49.333%; min-width: 0; }
@media (max-width: 767px) { .statement__inner img { width: 100%; } }

/* ---------------------------------------------------------------------------
   Video frame and credit plate
   Use when: a film of the shop sits on the postcard band, with its maker credited
   on a charcoal plate under it. As on the original site, the YouTube film plays in the
   frame on its own, muted and looping, with YouTube's controls (sound, pause, full screen). */
.video-band { padding-block: var(--space-128); }
.video { padding: var(--space-10); }
.video__frame {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 16 / 9; width: 100%;
  background: var(--color-video-frame);
  color: var(--color-text-on-dark);
}
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 60px; border-radius: 14px;
  background: var(--uo-charcoal-98);
  transition: background var(--duration-quick) var(--ease-standard);
}
.video__play::before {
  content: ""; border-style: solid; border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--color-text-on-dark);
}
.video__frame:hover .video__play, .video__frame:focus-visible .video__play { background: var(--color-link-on-plate); }

.credit { display: flex; justify-content: center; padding: var(--space-10); }
.credit__plate {
  width: 33.333%;
  padding-block: var(--space-5);
  background: var(--color-surface-plate);
}
.credit__title {
  padding-top: var(--space-10);
  font-size: var(--size-caption);
  line-height: var(--leading-tight);
  color: var(--color-text-on-dark);
}
.credit__title a { color: var(--color-link-on-plate); }
.credit__title a:hover { color: var(--color-text-on-dark-hover); }
@media (max-width: 767px) { .credit__plate { width: 100%; } }

/* ---------------------------------------------------------------------------
   Visit links: an engraving over a large cream label, three across on wood
   Use when: sending visitors to the shop's own channels elsewhere. Not when: the
   action stays on this site (use a plain text link). The engraving and the label
   both link to the same place; the engraving is skipped by screen readers. */
.visit { padding-block: var(--space-60); }
.visit > .container { padding-block: var(--space-10); }
.visit__title { text-align: center; line-height: 0; margin-bottom: var(--space-20); }
.visit__title img { width: 372px; }
.visit__grid { display: flex; }
.visit__item {
  width: 33.333%; padding: var(--space-10);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-20);
  text-align: center;
}
.visit__art { line-height: 0; }
.visit__art img { width: 212px; }
.visit__link {
  display: inline-block;
  padding: 12px 24px;
  font-size: var(--size-link-large);
  line-height: var(--leading-tight);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-field);
  transition: color var(--duration-quick) var(--ease-standard);
}
.visit__link:hover, .visit__link:focus-visible { color: var(--color-text-on-dark-hover); }
@media (max-width: 767px) {
  .visit__grid { flex-direction: column; }
  .visit__item { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Newsletter sign-up
   Use when: one email field and one button, centered on paper, under an italic
   display title and a lead line. Not when: a form needs more than one field (build
   it with labels above each field). The field keeps the site's own placeholder
   wording and gets a label for screen readers. */
.signup { min-height: 460px; padding-block: var(--space-30); display: flex; align-items: center; }
.signup > .container { width: 100%; padding: var(--space-10); }
.signup__title {
  text-align: center;
  font-size: var(--size-display);
  font-style: italic;
  line-height: var(--leading-tight);
  color: var(--color-heading-on-paper);
}
.signup__lead {
  margin-top: var(--space-20);
  text-align: center;
  font-size: var(--size-lead);
  line-height: var(--leading-tight);
  color: var(--color-heading-on-paper);
}
.signup__form { width: 69.333%; margin: var(--space-20) auto 0; padding: var(--space-10); display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-10); }
.signup__form .field { flex: 1 1 12rem; width: auto; min-width: 0; }
.signup__form > div:has(> .button) { display: flex; flex: 0 0 auto; }
.signup__form .form-status { flex-basis: 100%; }
.field {
  display: block; width: 100%;
  margin: 0;
  padding: .5rem 1rem;
  font-family: var(--font-text);
  font-size: var(--size-small);
  line-height: var(--leading-body);
  color: var(--color-field-text);
  background: var(--color-surface-field);
  border: var(--rule-field) solid var(--color-field-line);
  border-radius: var(--radius-field);
  transition: border-color var(--duration-quick) var(--ease-standard);
}
.field:focus { border-color: var(--color-heading-on-paper); }
.field[aria-invalid="true"] { border-color: var(--color-action); }
.button {
  display: inline-block;
  margin: 0;
  padding: .5rem 1rem;
  font-family: var(--font-text);
  font-size: var(--size-small);
  line-height: var(--leading-body);
  color: var(--color-action-text-on);
  background: var(--color-button-fill);
  border: var(--rule-field) solid var(--color-button-fill);
  border-radius: var(--radius-field);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-quick) var(--ease-standard);
}
.button:hover, .button:focus-visible { background: var(--color-button-fill-hover); border-color: var(--color-button-fill-hover); color: var(--color-action-text-on); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.form-status { min-height: 0; margin-top: var(--space-10); font-size: var(--size-small); color: var(--color-text-on-paper); }
.form-status:empty { margin: 0; }
@media (max-width: 767px) {
  .signup__title { font-size: var(--size-display-phone); }
  .signup__lead { font-size: var(--size-lead-phone); }
  .signup__form { width: 100%; }
}

/* ---------------------------------------------------------------------------
   Site footer with back-to-top
   Use when: the end of every page, on wood. Not when: anywhere else. The circled
   chevron returns to the top of the page; it is drawn in umber, as on the live site. */
.site-footer { padding-block: var(--space-60); background-position: top center; }
.site-footer > .container { padding: var(--space-10); display: flex; flex-direction: column; gap: var(--space-20); }
.site-footer__top { text-align: center; line-height: var(--leading-body); }
.site-footer__copy {
  text-align: center;
  font-size: var(--size-footer);
  line-height: var(--leading-body);
  color: var(--color-text-on-dark);
}
.to-top {
  display: inline-block;
  width: var(--size-icon-large); height: var(--size-icon-large);
  line-height: var(--leading-tight);
  color: var(--color-icon-on-wood);
  transition: color var(--duration-quick) var(--ease-standard);
}
.to-top svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.to-top:hover { color: var(--color-icon-on-wood); }
