/* Rutherford County Woodworkers
   Warm shop-floor neutrals. System fonts only (no third-party font host). */

:root {
  --paper: #f3ecdf;
  --paper-raised: #fbf7f0;
  --ink: #2a2118;
  --walnut: #3e2a1c;
  --walnut-deep: #2c1e15;
  --oak: #8a5a32;
  --oak-deep: #6e3e16;
  --line: #e0d3c2;
  --line-strong: #cbbba6;
  --banner-ink: #fff8ee;
  --callout: #f6e2c4;
  --callout-edge: #8a4b12;
  --placeholder: #cfc8be;
  --placeholder-ink: #2c2824;
  --focus-light: #1d4e3a;
  --focus-dark: #ffe08a;
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --measure: 44rem;
  --wrap: 68rem;
  --tap: 44px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(255, 252, 246, 0.55), rgba(243, 236, 223, 0.2)),
    repeating-linear-gradient(
      90deg,
      rgba(92, 61, 46, 0.035) 0 1px,
      transparent 1px 13px
    );
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.25;
  font-weight: 700;
  color: var(--walnut);
  scroll-margin-top: 5.5rem;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin: 0 0 0.6rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.4rem 0 0.4rem;
}

p,
ul,
ol,
table,
.video-frame {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--oak-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--walnut);
}

strong {
  font-weight: 700;
}

address {
  font-style: normal;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  font-weight: 700;
  color: var(--walnut);
}

thead th {
  background: #efe4d4;
}

tr.is-exception th,
tr.is-exception td {
  background: var(--callout);
}

tr.is-exception th {
  box-shadow: inset 4px 0 0 var(--callout-edge);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus-light);
  outline-offset: 3px;
}

.site-header a:focus-visible,
.nav-toggle:focus-visible {
  outline-color: var(--focus-dark);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 50;
  padding: 0.65rem 1rem;
  min-height: var(--tap);
  background: var(--banner-ink);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--walnut);
  color: #f7f1e7;
}

.site-header::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #4a2c1a, #c6a15a 42%, #8b5a2b 68%, #4a2c1a);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem 0.75rem;
}

.brand {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  color: #f7f1e7;
  text-decoration: none;
  min-height: var(--tap);
  justify-content: center;
}

.brand:hover {
  color: #fff;
}

.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.2;
}

.brand-legal {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #e7d7c2;
}

.nav-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: var(--tap);
  min-width: var(--tap);
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 700;
  color: #f7f1e7;
  background: transparent;
  border: 2px solid #e4d0b4;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle:hover {
  background: rgba(255, 248, 236, 0.08);
}

.nav-toggle-bars {
  position: relative;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  display: block;
  flex: 0 0 auto;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

#site-nav {
  display: none;
  padding-bottom: 0.85rem;
}

#site-nav.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-list a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.4rem 0.75rem;
  color: #f7f1e7;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

.nav-list a:hover {
  background: rgba(255, 248, 236, 0.1);
  color: #fff;
}

.nav-list a[aria-current="page"] {
  background: rgba(255, 248, 236, 0.14);
  box-shadow: inset 0 -3px 0 #e0b15a;
  color: #fff;
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }

  #site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.15rem 0.2rem;
  }
}

main {
  padding-block: 1.6rem 2.75rem;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.5;
  max-width: var(--measure);
}

.measure,
.prose > p,
.prose > ul,
.prose > ol,
.section-block > p,
.section-block > ul,
.section-block > ol {
  max-width: var(--measure);
}

.legal-line {
  max-width: var(--measure);
  padding-top: 0.75rem;
  border-top: 1px solid var(--line-strong);
}

section {
  margin-top: 1.75rem;
}

.split {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.split section {
  margin-top: 0;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.panel,
.facts,
.notice,
.callout {
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
}

.panel,
.notice,
.callout {
  padding: 0.9rem 1rem;
  max-width: var(--measure);
}

.notice,
.callout {
  border-left: 4px solid var(--callout-edge);
}

.callout,
.facts li.callout {
  background: var(--callout);
}

section.panel {
  padding: 1rem 1.05rem 0.4rem;
  max-width: none;
}

section.panel > p,
section.panel > ul,
section.panel > ol {
  max-width: var(--measure);
}

.facts {
  list-style: none;
  padding: 0.3rem 0.95rem;
  max-width: none;
}

.facts li {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 0;
}

.facts li.callout {
  margin: 0.7rem 0 0.35rem;
  padding: 0.8rem 0.85rem;
  border: 1px solid #e0c08a;
  border-left: 4px solid var(--callout-edge);
}

.panel .facts {
  background: transparent;
  border: 0;
  padding-left: 0;
  padding-right: 0;
}

.explore a,
.related a,
.video-links a {
  font-weight: 700;
}

.explore a,
.video-links a,
.phone {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

.phone {
  font-size: 1.2rem;
  font-weight: 700;
}

.tbd {
  font-weight: 600;
}

.video-frame {
  position: relative;
  width: min(100%, 40rem);
  aspect-ratio: 16 / 9;
  background: var(--walnut-deep);
  border: 1px solid var(--line-strong);
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 1rem;
  text-align: center;
  color: #fff8ee;
  font-weight: 700;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.gallery-grid {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.gallery-card {
  margin: 0;
  background: var(--paper-raised);
  border: 1px solid var(--line-strong);
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--placeholder-ink);
  background: var(--placeholder);
  border-bottom: 1px solid #b7b0a6;
}

.gallery-card figcaption {
  padding: 0.8rem 0.9rem 0.95rem;
  font-weight: 600;
}

.category-list {
  max-width: var(--measure);
}

.site-footer {
  background: var(--walnut-deep);
  color: #f3e9dc;
  padding: 1.75rem 0 2rem;
}

.site-footer p,
.site-footer address {
  margin: 0 0 0.55rem;
  max-width: 40rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff8ee;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-toggle-bars,
  .nav-toggle-bars::before,
  .nav-toggle-bars::after {
    transition: none;
  }
}

@media print {
  .nav-toggle,
  .video-frame {
    display: none;
  }

  #site-nav {
    display: block;
  }

  .site-header,
  .site-footer {
    background: #fff;
    color: #000;
  }

  .site-header::after {
    display: none;
  }

  .brand,
  .brand-legal,
  .nav-list a,
  .site-footer,
  .footer-name {
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}
