/* Emerald Valley Mountain LLC: mint, frost and slate blue on deep emerald; book-page columns with a margin column */
@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/crimson-pro-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/crimson-pro-400i.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Crimson Pro";
  src: url("fonts/crimson-pro-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #0d211c;
  --surface: #133129;
  --surface-2: #1a3d33;
  --mint: #6fcfa4;
  --frost: #e8f3ee;
  --sky: #8fb6d6;
  --muted: #a9c4b9;
  --line: rgba(232, 243, 238, 0.16);
  --head: "Crimson Pro", "Iowan Old Style", Georgia, serif;
  --body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --wrap: 1140px;
  --r: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--base); color: var(--frost); font-family: var(--body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: var(--frost); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0 0 0.45em; color: var(--frost); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.8rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { width: min(var(--wrap), 100% - 40px); 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; border-radius: 999px;
  background: var(--mint); color: var(--base); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* header with pill nav */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--frost); text-decoration: none; }
.brand img { width: 58px; height: 58px; border-radius: var(--r); }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a { display: block; padding: 8px 18px; border-radius: 999px; color: var(--frost); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.main-nav a:hover { background: var(--surface-2); color: var(--frost); }
.main-nav a[aria-current="page"] { background: var(--mint); color: var(--base); }

/* running heads */
.run { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.run .folio { color: var(--mint); font-weight: 700; }

/* book page: main column + margin column */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 56px; align-items: start; }
.section { padding: 58px 0; }
.section.alt { background: var(--surface) url("assets/motif-baseline.svg") 0 0 / 40px 24px; }
.margin { font-size: 0.93rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 22px; }
.margin h2, .margin h3 { font-size: 1.3rem; }
.margin .note-label { display: block; color: var(--sky); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.margin p { margin-bottom: 18px; }
.sticky { position: sticky; top: 20px; }

.tag { display: inline-block; margin: 0 0 18px; padding: 5px 14px; border-radius: var(--r); background: var(--surface-2); color: var(--frost); font-size: 0.88rem; font-weight: 700; border-left: 4px solid var(--mint); }
.lede { font-family: var(--head); font-size: 1.45rem; line-height: 1.45; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--r); background: var(--mint); color: var(--base); font-weight: 700; text-decoration: none; border: 2px solid var(--mint); }
.btn:hover { background: var(--frost); border-color: var(--frost); color: var(--base); }
.btn-line { background: transparent; color: var(--frost); border-color: var(--frost); }
.btn-line:hover { background: var(--frost); color: var(--base); }
.hero-art { width: 100%; margin-top: 36px; border-radius: var(--r); }

/* home: contents list */
.contents { list-style: none; margin: 0; padding: 0; counter-reset: sec; }
.contents a { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dotted var(--line); color: var(--frost); text-decoration: none; }
.contents li:first-child a { border-top: 1px dotted var(--line); }
.contents img { width: 54px; height: 54px; }
.contents .c-name { font-family: var(--head); font-weight: 700; font-size: 1.35rem; }
.contents .c-meta { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.contents a:hover .c-name { color: var(--mint); }
.notes { list-style: none; margin: 0; padding: 0; counter-reset: fn; }
.notes li { position: relative; padding: 0 0 16px 40px; margin-bottom: 16px; border-bottom: 1px solid var(--line); counter-increment: fn; color: var(--muted); }
.notes li:last-child { border-bottom: 0; margin-bottom: 0; }
.notes li::before { content: counter(fn); position: absolute; left: 0; top: -2px; font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--mint); }
.notes strong { color: var(--frost); }
.spot { padding: 30px 32px; border-radius: var(--r); background: var(--surface-2); border-top: 4px solid var(--sky); }
.spot p { color: var(--muted); font-size: 1.05rem; }
.deal { display: inline-block; padding: 4px 12px; border-radius: var(--r); background: var(--base); color: var(--mint); font-weight: 700; border: 1px solid var(--mint); }

/* services: price tables with dotted rows */
.cat { margin-bottom: 52px; scroll-margin-top: 16px; }
.cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.cat-head img { width: 54px; height: 54px; }
.cat-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: 0.03em; }
.cat-head .sec { font-family: var(--head); color: var(--mint); font-size: 1.4rem; }
.price-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--mint); }
.price-table thead th { text-align: left; padding: 10px 10px; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); border-bottom: 1px solid var(--line); }
.price-table tbody th, .price-table td { text-align: left; vertical-align: top; padding: 15px 10px; border-bottom: 1px dotted rgba(232, 243, 238, 0.28); }
.price-table tbody th { font-family: var(--head); font-size: 1.2rem; font-weight: 700; width: 34%; line-height: 1.3; }
.price-table td.desc { color: var(--muted); }
.price-table .price { text-align: right; white-space: nowrap; font-weight: 700; color: var(--mint); width: 17%; }
.price-table td.quote { white-space: normal; min-width: 11em; color: var(--sky); }
.price-table td.quote a { display: block; margin-top: 4px; color: var(--frost); white-space: nowrap; }
.toc { list-style: none; margin: 0 0 24px; padding: 0; }
.toc a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dotted var(--line); color: var(--frost); text-decoration: none; }
.toc a:hover { color: var(--mint); }
.toc span { color: var(--mint); font-family: var(--head); font-weight: 700; }

.offers { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.offers li { padding: 22px 24px; border-radius: var(--r); background: var(--surface-2); border-left: 4px solid var(--mint); }
.offers h3 { margin-bottom: 6px; }
.offers p { color: var(--muted); margin-bottom: 10px; }
.offers p:last-child { margin-bottom: 0; }

/* about */
.story p { font-size: 1.07rem; color: var(--muted); }
.story p.first { font-family: var(--head); font-size: 1.5rem; line-height: 1.45; color: var(--frost); }
.story p.first::first-letter { float: left; font-size: 4.4rem; line-height: 0.85; padding: 6px 10px 0 0; color: var(--mint); font-weight: 700; }
.facts { margin: 0; }
.facts div { padding: 10px 0; border-bottom: 1px dotted var(--line); }
.facts dt { color: var(--sky); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.facts dd { margin: 2px 0 0; color: var(--frost); }

/* contact */
.details { margin: 0 0 20px; }
.details div { padding: 10px 0; border-bottom: 1px dotted var(--line); }
.details dt { color: var(--sky); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
.details dd { margin: 2px 0 0; color: var(--frost); overflow-wrap: anywhere; }
.hours { width: 100%; border-collapse: collapse; border-top: 2px solid var(--mint); margin-bottom: 40px; }
.hours caption { text-align: left; font-family: var(--head); font-weight: 700; font-size: 2rem; margin-bottom: 10px; color: var(--frost); }
.hours thead th { text-align: left; padding: 10px; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); border-bottom: 1px solid var(--line); }
.hours tbody th, .hours tbody td { text-align: left; padding: 14px 10px; border-bottom: 1px dotted rgba(232, 243, 238, 0.28); }
.hours tbody th { font-family: var(--head); font-size: 1.2rem; }
.hours td { white-space: nowrap; }
.hours td.closed { color: var(--muted); }
.map-frame { display: block; width: 100%; height: 400px; border: 0; border-radius: var(--r); background: var(--surface-2); }
.map-link { margin: 14px 0 0; }

/* footer */
.site-footer { background: #091915; border-top: 2px solid var(--mint); padding: 46px 0 24px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr; gap: 30px; }
.footer-name { font-family: var(--head); font-weight: 700; font-size: 1.5rem; color: var(--frost); margin-bottom: 6px; }
.footer-title { color: var(--frost); font-weight: 700; margin-bottom: 8px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-bottom { margin: 30px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; }

@media (max-width: 900px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .page { grid-template-columns: 1fr; gap: 30px; }
  .margin { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 22px; }
  .margin.lead-mobile { order: -1; border-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
  .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .main-nav ul { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .main-nav a { text-align: center; background: var(--surface); }
  .lede { font-size: 1.25rem; }
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: 100%; }
  .price-table tbody tr { padding: 14px 0; border-bottom: 1px dotted rgba(232, 243, 238, 0.28); }
  .price-table tbody th, .price-table td { padding: 0; border: 0; width: auto; }
  .price-table td.desc { margin: 4px 0 6px; }
  .price-table .price { text-align: left; width: auto; }
  .contents a { grid-template-columns: 46px 1fr; }
  .contents img { width: 46px; height: 46px; }
  .contents .c-meta { grid-column: 2; }
  .spot { padding: 24px 20px; }
  .map-frame { height: 320px; }
}
