/* ==========================================================================
   Niagara-on-the-Net — modern stylesheet (2026 restoration of the 1996 site)
   System fonts only · no external requests · fully offline-capable
   ========================================================================== */

:root {
  --ink: #22333b;
  --ink-strong: #14232b;
  --muted: #5d6d75;
  --paper: #f8f6f1;
  --card: #ffffff;
  --line: #e4ded2;
  --teal: #0f6b66;
  --teal-ink: #0b4f4b;
  --teal-soft: #e3efee;
  --amber: #b97e27;
  --amber-soft: #f6ead4;
  --danger: #a33d31;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 35, 43, .06), 0 8px 24px -12px rgba(20, 35, 43, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-ink); }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 22px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink-strong); color: #fff;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 28px; padding-block: 10px;
}

.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.brand-img { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 1.18rem; letter-spacing: .01em; color: var(--ink-strong); }
.brand-text span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 2px 4px;
}
.site-nav a {
  display: inline-block; padding: 7px 11px;
  font-size: .92rem; font-weight: 500; text-decoration: none;
  color: var(--ink); border-radius: 999px;
}
.site-nav a:hover { background: var(--teal-soft); color: var(--teal-ink); }
.site-nav a[aria-current="page"] { background: var(--teal); color: #fff; }

/* ---------------- Breadcrumbs ---------------- */

.crumbs { padding-block: 14px 2px; font-size: .85rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); }
.crumbs li { display: flex; gap: 8px; align-items: baseline; }
.crumbs li + li::before { content: "→"; color: var(--line); font-size: .8em; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--muted); }

/* ---------------- Page head / heroes ---------------- */

.page-head { padding-block: 26px 8px; max-width: 62ch; }
.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.5rem);
  line-height: 1.2; color: var(--ink-strong);
  letter-spacing: -.01em;
}
.page-head .lede { font-size: 1.08rem; color: var(--muted); margin: 0; }

.hero {
  margin-top: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0b4f4b 0%, #0f6b66 58%, #177a6e 100%);
  color: #f2f7f6;
  padding: clamp(28px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(720px 320px at 85% -10%, rgba(185, 126, 39, .25), transparent 60%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .kicker {
  display: inline-block; font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: #ffdfae; margin-bottom: 14px;
}
.hero h1 { margin: 0 0 14px; font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); line-height: 1.15; color: #fff; letter-spacing: -.01em; }
.hero p { max-width: 62ch; margin: 0 0 22px; font-size: 1.06rem; color: #d8e8e6; }
.hero .banner-art {
  display: block; margin-bottom: 20px;
  background: #fff; border-radius: 10px; padding: 6px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-block; padding: 10px 20px;
  border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(20, 35, 43, .35); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: #a56f22; color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-outline { background: #fff; color: var(--teal-ink); border: 1px solid var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------- Sections & cards ---------------- */

.section { padding-block: 34px 10px; }
.section-title { margin: 0 0 6px; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); color: var(--ink-strong); letter-spacing: -.01em; }
.section-sub { margin: 0 0 22px; color: var(--muted); max-width: 66ch; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: 0 1px 2px rgba(20, 35, 43, .05);
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 10px 28px -14px rgba(20, 35, 43, .3); transform: translateY(-2px); }
.card h2, .card h3 { margin: 0; font-size: 1.06rem; line-height: 1.3; }
.card h2 a, .card h3 a { color: var(--teal-ink); text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { text-decoration: underline; }
.card p { margin: 0; font-size: .93rem; color: var(--muted); }
.card .card-media { margin: -4px 0 4px; }
.card .card-media img { border-radius: 10px; border: 1px solid var(--line); display: block; }
.card .card-cta { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--teal); text-decoration: none; }
.card .card-cta:hover { text-decoration: underline; }

/* Category tiles on home */
.tile .tile-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--teal);
}

/* Stat band */
.stats {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--ink-strong); color: #fff;
  border-radius: 18px; padding: 26px 28px; margin-block: 30px 8px;
}
.stats div { text-align: center; }
.stats b { display: block; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); color: #ffd58a; line-height: 1.15; }
.stats span { font-size: .88rem; color: #c4d4d2; }

/* ---------------- Chips ---------------- */

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips a, .chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--teal-soft); color: var(--teal-ink);
  font-size: .8rem; font-weight: 600; text-decoration: none;
}
.chips a:hover { background: var(--teal); color: #fff; }
.chip-neutral { background: #efece5; color: var(--muted); }

/* ---------------- Business detail ---------------- */

.biz-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(22px, 3.5vw, 38px);
  margin-top: 18px;
}
.biz-card h1 { margin: 0 0 12px; font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.35rem); line-height: 1.2; color: var(--ink-strong); letter-spacing: -.01em; }

.fact-grid {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 18px 0 6px; padding: 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
}
.fact-grid dt {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 3px;
}
.fact-grid dd { margin: 0; font-size: 1rem; }

.archival-note {
  margin: 16px 0 0; padding: 12px 16px;
  background: var(--amber-soft); border-left: 4px solid var(--amber);
  border-radius: 8px; font-size: .88rem; color: #6b5420;
}

.seq-nav {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between; margin-block: 22px;
  font-size: .93rem;
}
.seq-nav a { text-decoration: none; font-weight: 600; color: var(--teal); }
.seq-nav a:hover { text-decoration: underline; }
.seq-nav .seq-home { color: var(--muted); font-weight: 500; }

/* ---------------- Category listing pages ---------------- */

.cat-head { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; padding-block: 26px 4px; }
.cat-head img {
  width: 72px; height: 108px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; padding: 4px;
  box-shadow: 0 6px 18px -10px rgba(20, 35, 43, .35);
}
.cat-head .page-head { padding-block: 10px 4px; }

.list-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-block: 22px 10px; }
.list-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.list-item .name { font-weight: 600; font-size: 1.02rem; text-decoration: none; color: var(--teal-ink); }
.list-item .name:hover { text-decoration: underline; color: var(--teal); }
.list-item .meta { font-size: .86rem; color: var(--muted); }
.list-item .meta b { font-weight: 600; color: var(--ink); }

/* ---------------- Directory (data.html) ---------------- */

.dir-tools {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-block: 18px 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px;
}
.dir-tools input[type="search"] {
  flex: 1 1 260px; padding: 10px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
}
.dir-tools select { padding: 9px 12px; font: inherit; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.dir-count { margin: 0; font-size: .85rem; color: var(--muted); }

.dir-letter { margin-block: 26px 6px; }
.dir-letter h2 {
  font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-ink); margin: 0 0 8px;
  border-bottom: 2px solid var(--teal-soft); padding-bottom: 6px;
}
.dir-list { list-style: none; margin: 0; padding: 0; }
.dir-list li {
  display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
  padding: 7px 4px; border-bottom: 1px dashed var(--line);
}
.dir-list li a { font-weight: 600; text-decoration: none; color: var(--teal-ink); }
.dir-list li a:hover { text-decoration: underline; color: var(--teal); }
.dir-list .dir-meta { font-size: .84rem; color: var(--muted); }
.dir-hidden { display: none !important; }

/* ---------------- FAQ ---------------- */

.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 0; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--ink-strong);
  list-style: none; position: relative; padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%;
  transform: translateY(-52%); font-size: 1.25rem; color: var(--teal);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); font-size: .95rem; }

/* ---------------- Feature article ---------------- */

.article { max-width: 72ch; }
.article .byline { color: var(--muted); font-size: .9rem; margin: 6px 0 22px; }
.article figure { margin: 22px 0; }
.article img { border-radius: 12px; border: 1px solid var(--line); }
.article figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.article h2 { font-size: 1.3rem; color: var(--ink-strong); margin-block: 26px 10px; }

.float-left { float: left; margin: 4px 22px 12px 0; width: 198px; }
@media (max-width: 640px) { .float-left { float: none; margin: 0 auto 16px; display: block; } }

/* ---------------- Sub-brand pages (Anchorage / Innisfree / Kevan) ---------------- */

.sub-hero { text-align: center; padding-block: 30px 8px; }
.sub-head {
  margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  color: var(--ink-strong); letter-spacing: -.01em;
}
.tagline { color: var(--muted); margin: 6px 0 0; }

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 46px;
  background: var(--ink-strong); color: #c4d2d0;
  font-size: .92rem;
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  padding-block: 40px 24px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #8fb5b1; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: #dce9e7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .footer-blurb img { height: 44px; width: auto; border-radius: 6px; background: #fff; padding: 3px; display: block; margin-bottom: 12px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 16px; font-size: .82rem; color: #8fa8a5;
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
}
.footer-legal a { color: #b7cdc9; }

/* ---------------- Utility ---------------- */

.notice {
  background: var(--teal-soft); border: 1px solid #cfe3e1;
  border-radius: 12px; padding: 16px 20px; margin-block: 18px;
  color: var(--teal-ink); font-size: .95rem;
}
.two-col { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.prose { max-width: 70ch; }
.prose h2 { margin-block: 30px 10px; font-size: 1.35rem; color: var(--ink-strong); }
.prose h3 { margin-block: 22px 8px; font-size: 1.1rem; color: var(--ink-strong); }
.prose ul { padding-left: 22px; }
.prose li { margin-block: 6px; }
.center { text-align: center; }

table.plain { border-collapse: collapse; width: 100%; }
table.plain td, table.plain th { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

img.photo {
  border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 10px 26px -14px rgba(20, 35, 43, .4);
}

/* ---------------- Print ---------------- */

@media print {
  .site-header, .site-footer, .seq-nav, .crumbs, .btn-row, .dir-tools { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card, .biz-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------------- Reduced motion ---------------- */

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