:root {
  --paper: #fbfaf6;
  --paper-strong: #f4efe5;
  --ink: #17211d;
  --muted: #5d6a64;
  --line: #d7ded3;
  --leaf: #2f6b4f;
  --lake: #0f6d7f;
  --sun: #f2b84b;
  --clay: #c85c3b;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(23, 33, 29, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans", "Noto Sans Devanagari", "Noto Sans Gurmukhi",
    "Noto Sans Arabic", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body[dir="rtl"] {
  font-family:
    "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(215, 222, 211, 0.85);
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.hero-inner,
.footer-inner,
.article-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 900;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.language-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.35rem 0;
}

.language-nav a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.language-nav a:hover,
.language-nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.88), rgba(23, 33, 29, 0.52) 42%, rgba(23, 33, 29, 0.12)),
    url("../images/ontario-hidden-spots-hero.png") center / cover no-repeat;
  color: var(--white);
}

.hero-inner {
  display: grid;
  gap: 2rem;
  padding: 7rem 0 5.25rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 700px;
  margin: 1.15rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2rem;
}

.quick-links a,
.button-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.quick-links a:hover,
.button-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.section {
  padding: 4.5rem 0;
}

.section.tint {
  background: var(--paper-strong);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-header h2,
.article-body h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.finder {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.finder-inner {
  display: grid;
  gap: 1rem;
  padding: 1rem 0;
}

.finder-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
}

.search-field {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.9rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
}

.filter-button[aria-pressed="true"],
.filter-button:hover {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--white);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(23, 33, 29, 0.06);
  text-decoration: none;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(47, 107, 79, 0.58), rgba(15, 109, 127, 0.36)),
    url("../images/ontario-hidden-spots-hero.png") center / cover no-repeat;
}

.card-media.port-stanley-card {
  background:
    linear-gradient(135deg, rgba(47, 107, 79, 0.26), rgba(15, 109, 127, 0.18)),
    url("../images/port-stanley/port-stanley-01.webp") center / cover no-repeat;
}

.card-media.st-thomas-card {
  background:
    linear-gradient(135deg, rgba(47, 107, 79, 0.26), rgba(15, 109, 127, 0.18)),
    url("../images/st-thomas-elevated-park/st-thomas-elevated-park-08.webp") center / cover no-repeat;
}

.card-body {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #edf4ef;
  color: #23543c;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 0.24rem 0.55rem;
}

.tag.warning {
  background: #fff1dd;
  color: #8d4b00;
}

.tag.border {
  background: #e8f4f6;
  color: #0c5867;
}

.card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.community-card {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 1rem;
  text-decoration: none;
}

.community-card:hover {
  border-color: var(--leaf);
  box-shadow: var(--shadow);
}

.community-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

.community-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.promise-item {
  min-height: 160px;
  background: var(--paper);
  padding: 1.25rem;
}

.promise-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.promise-item p {
  margin: 0;
  color: var(--muted);
}

.article-hero {
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.86), rgba(23, 33, 29, 0.52), rgba(23, 33, 29, 0.1)),
    url("../images/ontario-hidden-spots-hero.png") center / cover no-repeat;
  color: var(--white);
}

.article-hero.port-stanley-hero {
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.78), rgba(23, 33, 29, 0.46), rgba(23, 33, 29, 0.1)),
    url("../images/port-stanley/port-stanley-02.webp") center / cover no-repeat;
}

.article-hero.st-thomas-hero {
  background:
    linear-gradient(90deg, rgba(23, 33, 29, 0.78), rgba(23, 33, 29, 0.46), rgba(23, 33, 29, 0.1)),
    url("../images/st-thomas-elevated-park/st-thomas-elevated-park-08.webp") center / cover no-repeat;
}

.article-hero .article-inner {
  padding: 6.5rem 0 4.5rem;
}

.article-kicker {
  color: var(--sun);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 860px;
  margin: 0.65rem 0 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.article-main {
  padding: 3.5rem 0;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
}

.article-body {
  max-width: 760px;
}

.article-body p,
.article-body li {
  color: #34413b;
  font-size: 1.05rem;
}

.article-body h2 {
  margin-top: 2.25rem;
  font-size: 1.75rem;
}

.article-body a {
  color: var(--lake);
  font-weight: 800;
}

.article-body ul {
  padding-left: 1.25rem;
}

.photo-lead {
  overflow: hidden;
  margin: 1.75rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.photo-lead img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-lead figcaption,
.photo-gallery figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.7rem 0.85rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.photo-gallery figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.photo-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

body[dir="rtl"] .article-body ul {
  padding-right: 1.25rem;
  padding-left: 0;
}

.note-box {
  border-left: 5px solid var(--clay);
  background: #fff5ea;
  padding: 1rem;
}

body[dir="rtl"] .note-box {
  border-right: 5px solid var(--clay);
  border-left: 0;
}

.sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 1rem;
}

.sidebar h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.sidebar a {
  display: block;
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--leaf);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.footer-inner a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .header-inner {
    align-items: start;
    flex-direction: column;
    padding: 0.85rem 0;
  }

  .language-nav {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    min-height: 580px;
  }

  .finder-controls,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .filter-group {
    justify-content: flex-start;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-grid,
  .promise-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .section-inner,
  .hero-inner,
  .footer-inner,
  .article-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(23, 33, 29, 0.78), rgba(23, 33, 29, 0.52), rgba(23, 33, 29, 0.2)),
      url("../images/ontario-hidden-spots-hero.png") center / cover no-repeat;
  }

  .hero-inner {
    padding: 5.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header,
  .footer-inner {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .grid,
  .community-grid,
  .promise-list,
  .photo-gallery {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 0.9rem;
  }
}
