/* Rocky Mountain Cornerstone Electronics LLC: deep spruce with rich kitchen copper over stainless grey on warm
   off-white paper; a narrow document-like column; serif throughout; solid spruce header bar; numbered items with
   large numerals; 14px corners; faint cornerstone masonry motif */
@font-face {
  font-family: "Holler Serif";
  src: url("fonts/holler-serif-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Holler Serif";
  src: url("fonts/holler-serif-400i.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Holler Serif";
  src: url("fonts/holler-serif-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --spruce: #1d4b45;
  --spruce-dk: #0e2623;
  --copper: #b8642f;
  --copper-dk: #95491c;
  --steel: #c9ced2;
  --paper: #f7f2e9;
  --paper-2: #efe7d9;
  --ink: #1f2a28;
  --muted: #56605e;
  --white: #ffffff;
  --serif: "Holler Serif", Georgia, "Times New Roman", serif;
  --col: 800px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper) url("assets/motif-masonry.svg") repeat; background-size: 96px 48px; color: var(--ink); font-family: var(--serif); font-size: 18px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--spruce); text-underline-offset: 3px; }
a:hover { color: var(--copper-dk); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--spruce-dk); }
h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--copper); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }
.col { width: min(100% - 36px, var(--col)); margin-inline: auto; }

/* solid coloured header bar */
.site-header { background: var(--spruce); color: var(--white); }
.head-in { display: grid; gap: 12px; padding: 18px 0 0; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand img { width: 68px; height: auto; border-radius: var(--r); }
.brand-name { font-weight: 700; font-size: 1.3rem; line-height: 1.2; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.main-nav a { display: inline-block; padding: 10px 14px 12px; color: #e3ece9; text-decoration: none; border-radius: var(--r) var(--r) 0 0; }
.main-nav a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.main-nav a[aria-current="page"] { background: var(--paper); color: var(--spruce-dk); font-weight: 700; }

/* document column */
main { padding: 40px 0 50px; }
.intro { padding-bottom: 8px; }
.kicker { font-size: .86rem; font-style: italic; color: var(--copper-dk); margin-bottom: .7em; }
.kicker.light { color: #f6c9a7; }
.lede { font-size: 1.2rem; color: var(--muted); }
.art { margin: 24px 0 30px; background: var(--white); border-radius: var(--r); padding: 22px 22px 10px; }
.hero-art { width: 100%; }
.sheet { background: var(--white); border-radius: var(--r); padding: clamp(22px, 4.5vw, 38px); margin-bottom: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: var(--r); font-weight: 700; text-decoration: none; }
.btn.solid { background: var(--copper); color: var(--white); }
.btn.solid:hover { background: var(--spruce); color: var(--white); }
.btn.line { color: var(--spruce); box-shadow: inset 0 0 0 2px var(--spruce); }
.btn.line:hover { background: var(--paper-2); }
.btn.light { background: var(--paper); color: var(--spruce-dk); }
.btn.light:hover { background: var(--copper); color: var(--white); }
.btn.line-light { color: var(--white); box-shadow: inset 0 0 0 2px var(--paper); }
.btn.line-light:hover { background: rgba(255, 255, 255, .12); color: var(--white); }

.dept { list-style: none; margin: 0; padding: 0; }
.dept li + li { border-top: 1px solid var(--paper-2); }
.dept a { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.dept a:hover .cn { color: var(--copper-dk); }
.dept img { width: 54px; }
.cn { font-size: 1.2rem; font-weight: 700; color: var(--spruce-dk); }
.cc { font-style: italic; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .7em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 4px; background: var(--copper); }
.ticks strong { color: var(--spruce-dk); }
.spot { background: var(--spruce); color: #e3ece9; }
.spot h2, .spot h3 { color: var(--white); }
.spot .amt { color: #f6c9a7; font-size: 1.4rem; white-space: nowrap; }

/* numbered items with large numerals */
.jump { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-block; padding: 5px 14px; border-radius: var(--r); background: var(--white); text-decoration: none; font-size: .92rem; }
.jump a:hover { background: var(--paper-2); }
.cat { scroll-margin-top: 14px; }
.cat-head { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--spruce); }
.cat-head img { width: 52px; }
.cat-head h2 { margin: 0; }
.nums { list-style: none; margin: 0; padding: 0; }
.num-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--paper-2); }
.numeral { font-size: 3rem; font-weight: 700; line-height: 1; color: var(--copper); font-variant-numeric: lining-nums tabular-nums; }
.num-item h3 { margin: 0 0 .15em; }
.num-item .txt p { margin: 0; color: var(--muted); font-size: 1rem; }
.num-item .pr { margin: 0; font-weight: 700; font-size: 1.25rem; color: var(--spruce-dk); white-space: nowrap; }
.offers { list-style: none; margin: 0; padding: 0; }
.offers li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.offers li:first-child { padding-top: 0; }
.offers h3 { margin-bottom: .2em; }
.offers p { margin: 0; }
.offers .amt { margin-top: 4px; }

/* about */
.story .first { font-size: 1.3rem; line-height: 1.5; color: var(--spruce-dk); }
.story em { color: var(--copper-dk); font-size: 1.15rem; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 12em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--paper-2); }
.facts dt { font-style: italic; color: var(--copper-dk); }
.facts dd { margin: 0; }
address { font-style: normal; }

/* contact */
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 700; font-size: 1.6rem; color: var(--spruce-dk); margin-bottom: 12px; }
.hours th, .hours td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--paper-2); }
.hours thead th { font-style: italic; font-weight: 400; color: var(--copper-dk); }
.map-frame { width: 100%; height: 340px; border: 0; border-radius: var(--r); background: var(--paper-2); display: block; }
.map-link { margin: 14px 0 0; font-weight: 700; }

/* footer */
.site-footer { background: var(--spruce-dk); color: #c9d6d3; padding: 36px 0 26px; }
.site-footer a { color: var(--white); }
.footer-name { font-weight: 700; font-size: 1.25rem; color: var(--white); margin-bottom: .2em; }
.footer-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom { font-size: .85rem; margin: 0; font-style: italic; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .brand img { width: 58px; }
  .brand-name { font-size: 1.08rem; }
  .main-nav ul { gap: 0 2px; }
  .main-nav a { padding: 9px 7px 11px; font-size: .84rem; }
  .num-item { grid-template-columns: 52px minmax(0, 1fr); }
  .numeral { font-size: 2.2rem; grid-row: span 2; align-self: start; }
  .num-item .pr { grid-column: 2; }
  .dept a { grid-template-columns: 46px 1fr; }
  .dept img { width: 46px; grid-row: span 2; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
