:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #5c6670;
  --line: #d9e0dc;
  --paper: #fffefa;
  --soft: #f3f6ef;
  --olive: #56632c;
  --olive-dark: #334019;
  --brick: #9d4f35;
  --blue: #245c7a;
  --shadow: 0 18px 50px rgba(31, 41, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--brick);
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  display: block;
}

table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

td,
th {
  padding: 0.35rem;
  vertical-align: top;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(210px, 320px) 1fr;
  gap: 1rem;
  align-items: end;
  padding: 1.4rem clamp(1rem, 4vw, 3rem);
  background:
    linear-gradient(90deg, rgba(51, 64, 25, 0.94), rgba(86, 99, 44, 0.82)),
    url("/images/catanddog_header_bg.gif") right center / auto 100% no-repeat;
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: min(100%, 280px);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}

.top-nav a {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.62rem 0.82rem;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.site-shell {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.sidebar {
  align-self: start;
  border-right: 1px solid var(--line);
  padding-right: 1.25rem;
}

.side-section + .side-section {
  margin-top: 1.3rem;
}

.side-section h2 {
  color: var(--olive-dark);
  font-size: 0.82rem;
  letter-spacing: 0;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.side-section ul {
  display: grid;
  gap: 0.18rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-section a {
  display: block;
  border-radius: 6px;
  color: var(--ink);
  padding: 0.28rem 0.42rem;
  text-decoration: none;
}

.side-section a:hover,
.side-section a:focus {
  background: var(--soft);
  color: var(--brick);
}

.content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.content h1 {
  color: var(--olive-dark);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.content h2 {
  color: var(--olive);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.18;
  margin: 2rem 0 0.75rem;
}

.content h3 {
  color: var(--brick);
  font-size: 1.12rem;
  margin: 1.45rem 0 0.45rem;
}

.content p {
  max-width: 78ch;
}

.content ul,
.content ol {
  max-width: 78ch;
  padding-left: 1.35rem;
}

.content li + li {
  margin-top: 0.24rem;
}

.content img {
  border-radius: 6px;
  display: inline-block;
  margin: 0.25rem;
  max-width: calc(100% - 0.5rem);
  vertical-align: middle;
}

.content iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  width: 100%;
}

.content .photo {
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.16);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 2rem;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.55rem;
}

.site-footer p {
  margin: 0;
}

.hide,
.skipLink {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.8rem;
    padding-block: 1rem;
  }

  .top-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: -1rem;
    overflow-x: auto;
    padding: 0 1rem 0.15rem;
    scrollbar-width: none;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  .top-nav::-webkit-scrollbar,
  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .site-shell {
    grid-template-columns: 1fr;
    margin-top: 1.3rem;
    width: min(100% - 1.25rem, 1180px);
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1rem;
  }

  .sidebar {
    display: flex;
    gap: 0.8rem;
    margin-inline: -0.625rem;
    overflow-x: auto;
    padding-inline: 0.625rem;
    scrollbar-width: none;
  }

  .side-section {
    flex: 0 0 min(76vw, 18rem);
  }

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

  .side-section + .side-section {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .brand img {
    width: min(100%, 230px);
  }

  .top-nav a {
    font-size: 0.86rem;
    padding: 0.55rem 0.7rem;
  }

  .content h1 {
    font-size: 1.9rem;
  }

  .content h2 {
    font-size: 1.32rem;
  }

  .content ul,
  .content ol {
    padding-left: 1.1rem;
  }

  .content img {
    margin-inline: 0;
  }
}
