/* Advanced Frontier LLC: muted natural walnut, sage, slate blue, tan and caramel on warm paper; vertical side
   header, full-width bands with alternating alignment, serif type throughout, price tables, sharp corners
   and 1px rules */
@font-face {
  font-family: "Gelasio";
  src: url("fonts/gelasio-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("fonts/gelasio-400i.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Gelasio";
  src: url("fonts/gelasio-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f0e4;
  --tint: #ece3d0;
  --walnut: #3b3024;
  --sage: #5f7350;
  --sage-soft: #7d8f68;
  --slate: #4f6d79;
  --tan: #c9b48e;
  --caramel: #a8743f;
  --rule: #d6c9ae;
  --muted: #625646;
  --serif: "Gelasio", Georgia, "Times New Roman", serif;
  --wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--walnut); font-family: var(--serif); font-size: 17.5px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: 3px; }
a:hover { color: var(--walnut); }
:focus-visible { outline: 2px solid var(--caramel); outline-offset: 3px; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--walnut); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px;
  background: var(--walnut); color: var(--paper); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* vertical side header */
.frame { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.site-header { background: var(--tint); border-right: 1px solid var(--walnut); }
.rail { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; padding: 28px 22px; }
.brand { display: block; color: var(--walnut); text-decoration: none; }
.brand img { width: 92px; height: 92px; }
.brand-name { display: block; margin-top: 12px; font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.main-nav { margin-top: 26px; border-top: 1px solid var(--walnut); }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { border-bottom: 1px solid var(--rule); }
.main-nav a { display: block; padding: 11px 0 11px 12px; color: var(--walnut); text-decoration: none; border-left: 4px solid transparent; }
.main-nav a:hover { border-left-color: var(--tan); }
.main-nav a[aria-current="page"] { border-left-color: var(--sage); font-weight: 700; font-style: italic; }
.rail-foot { margin-top: auto; padding-top: 24px; font-size: 0.92rem; color: var(--muted); }
.rail-foot p { margin: 0 0 6px; }
.rail-foot a { font-weight: 700; font-size: 1.1rem; }
.main-col { min-width: 0; }

/* full-width bands with alternating alignment */
.band { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.tinted { background: var(--tint) url("assets/motif-shelf.svg") 0 0 / 120px 30px; }
.dark { background: var(--walnut); color: var(--paper); }
.dark h2, .dark h3, .dark a { color: var(--paper); }
.row { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.row.top { align-items: start; }
.row.flip > :first-child { order: 2; }
.tag { display: inline-block; margin: 0 0 16px; padding: 3px 10px; border: 1px solid var(--sage); color: var(--sage); font-style: italic; font-size: 0.92rem; }
.kicker { margin: 0 0 6px; color: var(--caramel); font-style: italic; }
.lede { font-size: 1.15rem; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.btn { display: inline-block; padding: 10px 20px; background: var(--sage); color: var(--paper); border: 1px solid var(--sage); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--walnut); border-color: var(--walnut); color: var(--paper); }
.btn-line { background: transparent; color: var(--walnut); border-color: var(--walnut); }
.btn-line:hover { color: var(--paper); }
.dark .btn-paper { background: var(--paper); color: var(--walnut); border-color: var(--paper); }
.dark .btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.text-link { font-weight: 700; font-style: italic; }
.hero-art { width: 100%; border: 1px solid var(--walnut); }
.aisle-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--walnut); }
.aisle-list li { border-bottom: 1px solid var(--rule); }
.aisle-list a { display: flex; align-items: center; gap: 16px; padding: 12px 4px; color: var(--walnut); text-decoration: none; }
.aisle-list a:hover { background: var(--paper); }
.aisle-list img { width: 44px; height: 44px; flex: none; }
.aisle-list strong { display: block; font-size: 1.08rem; }
.aisle-list small { display: block; color: var(--muted); font-style: italic; }
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--walnut); }
.ruled li { padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--muted); }
.ruled strong { color: var(--walnut); }
.spot { border: 1px solid var(--walnut); padding: 28px; background: var(--tint); }
.spot p { color: var(--muted); }
.amount { font-size: 1.6rem; font-weight: 700; color: var(--caramel) !important; }

/* price tables in alternating bands */
.jump { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; border-top: 1px solid var(--walnut); border-left: 1px solid var(--walnut); }
.jump li { border-right: 1px solid var(--walnut); border-bottom: 1px solid var(--walnut); }
.jump a { display: block; padding: 8px 14px; color: var(--walnut); text-decoration: none; }
.jump a:hover { background: var(--tint); }
.cat { scroll-margin-top: 12px; }
.cat-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; }
.cat-row.flip { grid-template-columns: minmax(0, 1fr) 220px; }
.cat-row.flip > .cat-label { order: 2; text-align: right; }
.cat-row.flip > .cat-label img { margin-left: auto; }
.cat-label img { width: 64px; height: 64px; margin-bottom: 10px; }
.cat-label h2 { font-size: clamp(1.3rem, 2.3vw, 1.6rem); letter-spacing: 0.04em; }
.cat-label p { color: var(--muted); font-style: italic; }
.dark .cat-label p { color: var(--tan); }
.price-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--walnut); }
.price-table thead th { text-align: left; padding: 8px 10px; font-weight: 400; font-style: italic; color: var(--muted); border-bottom: 1px solid var(--walnut); }
.price-table thead th:last-child { text-align: right; }
.price-table tbody th, .price-table tbody td { text-align: left; vertical-align: top; padding: 11px 10px; border-bottom: 1px solid var(--rule); }
.price-table tbody th { font-weight: 700; width: 40%; }
.price-table .desc { color: var(--muted); font-size: 0.95rem; }
.price-table .price { text-align: right; font-weight: 700; color: var(--caramel); white-space: nowrap; width: 1%; }
.price-table .price.quote { white-space: normal; min-width: 10em; color: var(--walnut); }
.price-table .price.quote a { display: block; margin-top: 4px; white-space: nowrap; font-weight: 400; font-style: italic; }
.dark .price-table { border-top-color: var(--tan); }
.dark .price-table thead th { color: var(--tan); border-bottom-color: var(--tan); }
.dark .price-table tbody th, .dark .price-table tbody td { border-bottom-color: #5a4b3a; }
.dark .price-table .desc { color: #d9ccb4; }
.dark .price-table .price { color: #e4c08f; }
.dark .btn-row { margin-top: 20px; }

/* about */
.story p { color: var(--muted); }
.story p.first { color: var(--walnut); font-size: 1.22rem; }
.facts-box { border: 1px solid var(--walnut); padding: 26px; background: var(--paper); }
.facts, .details { margin: 0 0 16px; }
.facts div, .details div { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.facts dt, .details dt { color: var(--sage); font-style: italic; font-size: 0.92rem; }
.facts dd, .details dd { margin: 0; overflow-wrap: anywhere; }
.facts dd { font-weight: 700; }
.why li strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }

/* contact */
.hours { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours caption { text-align: left; font-weight: 700; font-size: 1.5rem; margin-bottom: 8px; }
.hours thead th { text-align: left; padding: 6px 0; font-weight: 400; font-style: italic; color: var(--muted); border-bottom: 1px solid var(--walnut); }
.hours tbody th, .hours tbody td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.hours tbody th { padding-right: 14px; }
.hours td { white-space: nowrap; }
.hours .note { display: block; white-space: normal; color: var(--muted); font-size: 0.9rem; }
.map-frame { display: block; width: 100%; height: 420px; border: 1px solid var(--walnut); background: var(--paper); }
.map-link { margin: 12px 0 0; }

/* footer */
.site-footer { background: var(--walnut); color: #e4d9c4; padding: 40px 0 24px; }
.site-footer a { color: #f0d6ad; }
.site-footer a:hover { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 28px; }
.footer-name { font-weight: 700; font-size: 1.2rem; color: var(--paper); margin-bottom: 6px; }
.footer-title { color: var(--paper); font-weight: 700; margin-bottom: 8px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid #5a4b3a; font-size: 0.88rem; }

@media (max-width: 1100px) {
  .row, .cat-row, .cat-row.flip { grid-template-columns: 1fr; gap: 26px; }
  .row.flip > :first-child, .cat-row.flip > .cat-label { order: 0; }
  .cat-row.flip > .cat-label { text-align: left; }
  .cat-row.flip > .cat-label img { margin-left: 0; }
  .cat-label { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
  .cat-label img { margin: 0; width: 52px; height: 52px; }
  .cat-label h2 { margin: 0; }
  .cat-label p { margin: 0; flex-basis: 100%; }
}
@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .site-header { border-right: 0; border-bottom: 1px solid var(--walnut); }
  .rail { position: static; min-height: 0; padding: 16px 20px 0; display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; }
  .brand { display: contents; }
  .brand img { width: 64px; height: 64px; }
  .brand-name { margin: 0; }
  .main-nav { grid-column: 1 / -1; margin: 14px -20px 0; border-top: 1px solid var(--rule); }
  .main-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .main-nav li:nth-child(odd) { border-right: 1px solid var(--rule); }
  .rail-foot { display: none; }
  .wrap { width: min(var(--wrap), 100% - 40px); }
}
@media (max-width: 680px) {
  .band { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: auto !important; }
  .price-table tbody tr { padding: 11px 0; border-bottom: 1px solid var(--rule); }
  .price-table tbody th, .price-table tbody td { padding: 0; border: 0; }
  .price-table .desc { margin: 3px 0; }
  .price-table .desc:empty { display: none; }
  .price-table .price { text-align: left; }
  .dark .price-table tbody tr { border-bottom-color: #5a4b3a; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .map-frame { height: 320px; }
}
