/* Innovative Heritage Supply LLC — shared styles
   Seed 1-5-6-7-6-1-7: muted kraft, sage and price-tag brick · near-black base with light text ·
   asymmetric offset grid · rounded soft sans (Grain Rounded) · vertical side header · price tables ·
   diagonal section dividers · motif: corrugated cardboard flutes */

@font-face { font-family: "Grain Rounded"; src: url("fonts/grain-rounded-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Grain Rounded"; src: url("fonts/grain-rounded-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Grain Rounded"; src: url("fonts/grain-rounded-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --side: 272px;
  --base: #161411;
  --panel: #221e19;
  --panel-2: #2c261f;
  --cream: #efe6d6;
  --muted: #c9bca7;
  --kraft: #d6b07e;
  --sage: #9ab890;
  --brick: #d07f65;
  --line: rgba(239, 230, 214, 0.16);
  --rounded: "Grain Rounded", "Nunito", "Segoe UI", Arial, sans-serif;
  --flutes: url("assets/motif-corrugated.svg") 0 0 / 24px 16px repeat;
  --slant: 3.2rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--base); }
body { margin: 0; font-family: var(--rounded); font-size: 1.02rem; line-height: 1.66; color: var(--cream); background: var(--base); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; }
strong { font-weight: 800; }
h1, h2, h3 { font-family: var(--rounded); font-weight: 800; line-height: 1.1; margin: 0 0 0.45em; color: var(--cream); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 2.9vw, 2.15rem); }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--kraft); text-underline-offset: 0.2em; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--kraft); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: 0.45rem 1rem; border-radius: 6px; background: var(--kraft); color: var(--base); font-weight: 800; }
.skip-link:focus { top: 1rem; }

/* ---------- vertical side header ---------- */
.shell { position: relative; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.shell::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--side); background: var(--panel); border-right: 1px solid var(--line); }
.site-header { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.8rem 1.4rem; z-index: 1; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; color: var(--cream); text-decoration: none; }
.brand img { width: 88px; height: auto; border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 1.32rem; line-height: 1.15; }
.brand:hover .brand-name { color: var(--kraft); }
.main-nav ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.main-nav li { border-bottom: 1px solid var(--line); }
.main-nav a { display: block; padding: 0.6rem 0.2rem 0.6rem 0.9rem; border-left: 4px solid transparent; color: var(--cream); font-weight: 700; text-decoration: none; }
.main-nav a:hover { border-left-color: var(--sage); background: var(--panel-2); }
.main-nav a[aria-current="page"] { border-left-color: var(--kraft); color: var(--kraft); background: var(--panel-2); }
.side-card { margin-top: auto; padding: 1rem; border-radius: 8px; background: var(--flutes); background-color: var(--panel-2); font-size: 0.93rem; color: var(--muted); }
.side-card p { margin: 0 0 0.6rem; }
.side-card a { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 6px; background: var(--kraft); color: var(--base); font-weight: 800; text-decoration: none; }
.side-card a:hover { background: var(--cream); }
.content { min-width: 0; }
.inner { width: 100%; max-width: 1020px; margin: 0 auto; padding-inline: clamp(1.1rem, 4vw, 2.8rem); }

/* ---------- diagonal sections ---------- */
.slab { padding-block: clamp(2.6rem, 6vw, 4rem); }
.slab.tilt { background: var(--panel); clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); padding-block: calc(var(--slant) + 2.2rem); margin-block: -0.6rem; }
.slab.kraft { background: var(--flutes); background-color: var(--panel-2); }

/* asymmetric offset grid */
.offset { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.offset > :nth-child(2) { margin-top: clamp(1.5rem, 5vw, 4rem); }
.offset.rev { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); }
.offset.rev > :nth-child(2) { margin-top: 0; }
.offset.rev > :nth-child(1) { margin-top: clamp(1.5rem, 5vw, 4rem); }
.hero { padding-block: clamp(2.2rem, 5vw, 3.4rem) 1rem; }
.hero-art { display: block; width: 100%; }
.tag { display: inline-block; margin: 0 0 1rem; padding: 0.22rem 0.8rem; border-radius: 6px; background: var(--sage); color: var(--base); font-weight: 800; font-size: 0.88rem; line-height: 1.5; }
.lede { font-size: clamp(1.08rem, 1.9vw, 1.22rem); color: var(--muted); max-width: 46ch; }
.kicker { margin: 0 0 0.35rem; color: var(--sage); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.7rem 1.3rem; border: 2px solid var(--kraft); border-radius: 8px; background: var(--kraft); color: var(--base); font-weight: 800; line-height: 1.25; text-align: center; text-decoration: none; max-width: 100%; overflow-wrap: anywhere; }
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--base); }
.btn-line { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn-line:hover { background: var(--cream); color: var(--base); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

/* home: staggered aisle cards */
.aisles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.aisles li:nth-child(2) { margin-top: 2.2rem; }
.aisles li:nth-child(3) { margin-top: 4.4rem; }
.aisles a { display: block; height: 100%; padding: 1.1rem 1.1rem 1.2rem; border-radius: 10px; background: var(--base); color: var(--cream); text-decoration: none; }
.aisles img { width: 60px; height: 60px; margin-bottom: 0.6rem; }
.aisles .a-name { display: block; font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.aisles .a-meta { display: block; color: var(--muted); font-size: 0.92rem; }
.aisles a:hover .a-name { color: var(--kraft); }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { position: relative; padding: 0.7rem 0 0.7rem 1.8rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.notes li::before { content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 0.85rem; height: 0.85rem; border-radius: 2px 50% 50% 2px; background: var(--brick); }
.notes strong { color: var(--cream); }

/* ---------- price tables ---------- */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.jump a { display: inline-block; padding: 0.3rem 0.85rem; border-radius: 6px; background: var(--panel-2); color: var(--cream); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.jump a:hover { background: var(--kraft); color: var(--base); }
.cat { scroll-margin-top: 1rem; }
.cat + .cat { margin-top: 2.6rem; }
.cat-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.8rem; }
.cat-head img { width: 54px; height: 54px; flex: none; }
.cat-head h2 { margin: 0; font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.prices { width: 100%; border-collapse: collapse; }
.prices caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prices thead th { padding: 0 0.8rem 0.5rem 0; color: var(--kraft); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; border-bottom: 2px solid var(--kraft); }
.prices thead th.pr { text-align: right; padding-right: 0; }
.prices tbody th, .prices td { padding: 0.75rem 0.8rem 0.75rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prices tbody th { font-weight: 700; width: 38%; }
.prices td.desc { color: var(--muted); font-size: 0.96rem; }
.prices td.pr { padding-right: 0; text-align: right; white-space: nowrap; font-weight: 800; font-size: 1.1rem; color: var(--kraft); font-variant-numeric: lining-nums tabular-nums; }
.prices td.pr.quote { white-space: normal; min-width: 9rem; max-width: 12rem; font-size: 0.9rem; color: var(--sage); }
.prices td.pr.quote a { display: block; margin-top: 0.25rem; white-space: nowrap; }
.deals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.deals li { padding: 1.1rem 1.15rem; border-radius: 10px; background: var(--base); }
.deals li:nth-child(2) { margin-top: 1.6rem; }
.deals li:nth-child(3) { margin-top: 3.2rem; }
.deals h3 { margin-bottom: 0.3rem; }
.deals p { margin: 0; color: var(--muted); }
.deals .tagprice { display: inline-block; margin-top: 0.6rem; padding: 0.2rem 0.7rem 0.2rem 1rem; border-radius: 4px 999px 999px 4px; background: var(--brick); color: var(--base); font-weight: 800; }

/* ---------- about / contact ---------- */
.facts { margin: 0; border-radius: 10px; background: var(--panel); padding: 0.4rem 1.2rem; }
.facts div { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--sage); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 700; }
.story p { color: var(--muted); }
.story .first { color: var(--cream); font-size: 1.14rem; }
.story .tag { color: var(--base); }
.details { margin: 0; }
.details div { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--sage); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.details dd { margin: 0; font-weight: 700; }
.details address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { caption-side: top; text-align: left; padding-bottom: 0.5rem; font-weight: 800; font-size: 1.4rem; }
.hours th, .hours td { padding: 0.55rem 0; text-align: left; border-bottom: 1px solid var(--line); }
.hours thead th { color: var(--kraft); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 2px solid var(--kraft); }
.hours tbody th { font-weight: 700; padding-right: 1rem; }
.hours td { font-variant-numeric: lining-nums tabular-nums; }
.map-frame { display: block; width: 100%; height: 380px; border: 0; border-radius: 10px; background: var(--panel); }
.map-link { margin-top: 0.8rem; }

/* ---------- footer ---------- */
.site-footer { margin-top: 1rem; background: var(--panel); color: var(--muted); font-size: 0.95rem; clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); padding-top: var(--slant); }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--kraft); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 1.6rem; padding-block: 1.6rem 1.2rem; }
.footer-name { margin: 0 0 0.3rem; font-weight: 800; font-size: 1.25rem; color: var(--cream); }
.site-footer address { font-style: normal; }
.footer-title { margin: 0 0 0.45rem; color: var(--sage); font-weight: 800; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-bottom { margin: 0; padding-block: 0.9rem 1.4rem; border-top: 1px solid var(--line); font-size: 0.85rem; }

@media (max-width: 1100px) {
  .offset, .offset.rev { grid-template-columns: 1fr; }
  .offset > :nth-child(2), .offset.rev > :nth-child(1) { margin-top: 0; }
  .deals { grid-template-columns: 1fr; }
  .deals li:nth-child(n) { margin-top: 0; }
}

@media (max-width: 900px) {
  .shell { display: block; }
  .shell::before { display: none; }
  .site-header { position: static; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.4rem; padding: 0.9rem clamp(1.1rem, 4vw, 2rem); background: var(--panel); border-bottom: 1px solid var(--line); }
  .brand { flex-direction: row; align-items: center; }
  .brand img { width: 60px; }
  .main-nav { width: 100%; }
  .main-nav ul { display: flex; flex-wrap: wrap; border-top: 0; gap: 0.3rem 0.4rem; }
  .main-nav li { border-bottom: 0; }
  .main-nav a { padding: 0.35rem 0.8rem; border-left: 0; border-bottom: 3px solid transparent; }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--kraft); }
  .side-card { display: none; }
  .aisles { grid-template-columns: 1fr; }
  .aisles li:nth-child(n) { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  :root { --slant: 2rem; }
}

@media (max-width: 600px) {
  .prices thead { display: none; }
  .prices tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .prices tbody th, .prices td { padding: 0; border: 0; width: auto; }
  .prices td.desc { grid-column: 1 / -1; grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .map-frame { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
