/* Uncommon Objects design system 1.0 (2026-11-21): tokens.
   Faithful round: every value below is measured from the capture of uncommonobjects.com
   (material/styles.css, computed-type.txt, the full-page screenshots). Nothing is invented.
   Primitives first, then the roles that pages use. A tone re-points the role names. */

:root {
  /* ---- Color primitives ----
     Measured: text colors from computed-type.txt, flat fills from real-full-1440.png.
     Decided: kept exactly; names say what each is, roles below say what each does. */
  --uo-ink:           #2A231C; /* deep brown body text on paper (welcome copy) */
  --uo-ink-black:     #000000; /* phone number link, divider rules */
  --uo-charcoal:      #222222; /* newsletter headings; caption plate is this at 98% */
  --uo-charcoal-98:   #222222FA;
  --uo-copper:        #87572B; /* nav links and nav dots on the dark splash */
  --uo-rust:          #884218; /* credit link in the video caption */
  --uo-cream:         #E8C999; /* light text on dark wood and the caption plate */
  --uo-cream-light:   #FFECCF; /* hover/focus of the cream "Do Visit" links */
  --uo-umber:         #392F2B; /* back-to-top icon on wood */
  --uo-slate:        #33373D; /* menu button and folded menu links */
  --uo-slate-hover:  #3F444B; /* folded menu link hover fill */
  --uo-raspberry:     #CC3366; /* the theme's default link color */
  --uo-red:           #B22222; /* newsletter button fill, owner's choice; white on it is 6.7:1 */
  --uo-red-deep:      #8E1B1B; /* its hover */
  --uo-paper:         #D3AA6C; /* mean of the paper texture, the fallback under it */
  --uo-paper-deep:    #D0A15C;
  --uo-wood:          #241E1E; /* mean of the wood texture */
  --uo-splash:        #130F0C; /* mean of the black splash texture */
  --uo-black:         #000000; /* video frame */
  --uo-white:         #FFFFFF; /* email field */
  --uo-field-line:    #666666; /* email field border */

  /* ---- Color roles ----
     Contrast measured against the texture's mean color. Large text threshold: 3:1 at 24 px,
     or 18.66 px bold. Ratios below 4.5:1 are kept as the site has them and listed in the report. */
  --color-surface-paper:  var(--uo-paper);
  --color-surface-dark:   var(--uo-splash);
  --color-surface-wood:   var(--uo-wood);
  --color-surface-plate:  var(--uo-charcoal-98);
  --color-surface-field:  var(--uo-white);

  --color-text-on-paper:  var(--uo-ink);        /* 7.18:1 on paper */
  --color-heading-on-paper: var(--uo-charcoal); /* 7.38:1 on paper */
  --color-strong-on-paper: var(--uo-ink-black); /* 9.74:1 on paper */
  --color-text-on-dark:   var(--uo-cream);      /* 10.35:1 on wood, 10.04:1 on the plate */
  --color-text-on-dark-hover: var(--uo-cream-light);
  --color-nav:            var(--uo-copper);     /* 3.11:1 on the splash, at 25 px semibold */
  --color-link-on-plate:  var(--uo-rust);       /* 2.15:1 on the plate: below 3:1, kept, in report */
  --color-action:         var(--uo-raspberry);  /* 2.3:1 on paper: below 3:1, kept, in report */
  --color-action-text-on: var(--uo-white);
  --color-button-fill:    var(--uo-red);
  --color-button-fill-hover: var(--uo-red-deep);
  --color-icon-on-wood:   var(--uo-umber);      /* 1.26:1 on wood: kept, in report */
  --color-rule:           var(--uo-ink-black);
  --color-field-line:     var(--uo-field-line);
  --color-field-text:     var(--uo-ink);
  --color-video-frame:    var(--uo-black);

  /* Focus ring: added (the capture draws none of its own). Cream with a dark halo reads
     at least 3:1 on paper, wood, splash and the plate. */
  --color-focus:          var(--uo-cream-light);
  --color-focus-halo:     var(--uo-ink-black);

  /* ---- Type ----
     Measured: every text on the page is set in Jsl Ancient (one weight file, synthetic 600 in
     the nav, synthetic italic in the newsletter title). Two bare-text lines ("Call us" and the
     staff signature) fall to Cezanne Medium, a script face. Kept exactly. */
  --font-text:   "Jsl Ancient", Georgia, "Times New Roman", serif;
  --font-script: "Cezanne medium", "Jsl Ancient", cursive;

  --weight-regular: 400;
  --weight-nav:     600;

  /* Size roles, each the measured size it keeps (desktop / phone where they differ). */
  --size-small:      16px; /* theme default (form field, button) */
  --size-body:       22px; /* welcome copy, address, hours, phone */
  --size-caption:    24px; /* video credit */
  --size-nav:        25px; /* top menu */
  --size-footer:     28px; /* copyright */
  --size-lead:       34px; /* newsletter subtitle; 22px on phones */
  --size-lead-phone: 22px;
  --size-link-large: 40px; /* Do Visit links (2.5em of 16px) */
  --size-display:    70px; /* newsletter title; 30px on phones */
  --size-display-phone: 30px;
  --size-icon-large: 70px; /* back-to-top icon */

  --leading-body:    1.5;  /* body default, measured */
  --leading-heading: 1.2;  /* theme h2 default, measured */
  --leading-nav:     20px; /* menu links, measured */
  --leading-tight:   1;

  /* ---- Space ----
     Measured paddings, normalized to one scale. */
  --space-2:  2px;
  --space-5:  5px;
  --space-10: 10px;  /* column gutter on each side (Elementor default gap) */
  --space-14: 14px;  /* nav link vertical padding */
  --space-20: 20px;  /* widget spacing, nav horizontal padding, splash band padding */
  --space-30: 30px;  /* newsletter band padding */
  --space-40: 40px;  /* welcome band padding */
  --space-60: 60px;  /* wood bands padding, welcome column padding */
  --space-128: 8rem; /* picture bands padding (greenscape, postcards) */
  --para-gap: .9rem; /* paragraph bottom margin */

  /* ---- Containers ---- measured */
  --container:        1140px; /* boxed sections */
  --container-narrow:  839px; /* welcome columns */
  --container-tablet: 1024px;
  --container-phone:   767px;

  /* Breakpoints (for reference: custom properties do not work in media queries).
     menu collapses at 1024px; columns stack at 767px; nav dots hide at 900px. */

  /* ---- Lines, corners, shadows ---- measured; the site uses no shadows */
  --rule-divider: 2px;  /* the short black rules in the welcome card */
  --rule-field:   1px;
  --radius-field: 3px;  /* email field and submit button */
  --radius-dot:   50%;  /* nav separators */
  --dot-size:     11px;
  --divider-length: 80px;
  --focus-width:  3px;

  /* ---- Motion ----
     Measured: .3s on hover color, .4s on nav links. Under reduced motion all become 0s. */
  --duration-quick: .3s;
  --duration-nav:   .4s;
  --ease-standard:  ease;
}

@media (prefers-reduced-motion: reduce) {
  :root { --duration-quick: 0s; --duration-nav: 0s; }
}
