/* Brazos Bend Camping Field Notes: field-guide stylesheet. Mobile first, no frameworks. */
:root {
  --paper: #F3EFE4;
  --paper-2: #E8E1CD;
  --paper-3: #FBF8F1;
  --olive: #4B5A2A;
  --olive-dark: #36411D;
  --rust: #A4502B;
  --rust-dark: #87401F;
  --bark: #3B2F25;
  --bark-soft: #5A4A3C;
  --line: #CDBFA3;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem;
  --radius: 4px;
  --topo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cg fill='none' stroke='%234B5A2A' stroke-width='1' opacity='.22'%3E%3Cpath d='M0 12 Q60 2 120 12 T240 12'/%3E%3Cpath d='M0 30 Q60 18 120 30 T240 30'/%3E%3Cpath d='M0 48 Q60 40 120 48 T240 48'/%3E%3Cpath d='M0 90 Q60 100 120 90 T240 90'/%3E%3Cpath d='M0 108 Q60 116 120 108 T240 108'/%3E%3Cellipse cx='170' cy='69' rx='34' ry='11'/%3E%3Cellipse cx='170' cy='69' rx='20' ry='6'/%3E%3Cellipse cx='170' cy='69' rx='7' ry='2.5'/%3E%3Cpath d='M20 70 C40 58 80 60 96 70 C80 80 40 82 20 70Z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--bark);
  font-family: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
img, svg, iframe { max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3, .footer-brand, .toc-h, .quick-title { font-family: "Bitter", Georgia, serif; color: var(--olive-dark); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 5.5vw, 2.6rem); font-weight: 800; margin: 0 0 var(--s3); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.75rem); font-weight: 700; margin: var(--s5) 0 var(--s3); }
h3 { font-size: 1.15rem; font-weight: 700; margin: var(--s5) 0 var(--s2); color: var(--bark); }
p, ul, ol, dl { margin: 0 0 var(--s4); }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: var(--s2); }

a { color: var(--rust-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--olive-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--olive-dark); color: var(--paper); padding: var(--s2) var(--s4); z-index: 10; }
.skip:focus { left: var(--s4); top: var(--s4); }

.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.site-header {
  background-color: var(--paper);
  background-image: var(--topo);
  background-size: 240px 120px;
  border-bottom: 4px double var(--olive);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s3); }
.brand { display: flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--bark); }
.brand .mark { flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.wm-1 { font-family: "Bitter", Georgia, serif; font-weight: 800; font-size: 1.25rem; color: var(--olive-dark); }
.wm-2 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rust-dark); font-weight: 700; margin-top: 3px; }

.nav-toggle {
  display: none; align-items: center; gap: var(--s2);
  font: 700 .95rem "Karla", sans-serif; color: var(--olive-dark);
  background: var(--paper-3); border: 1px solid var(--olive); border-radius: var(--radius);
  padding: .45rem .8rem; cursor: pointer; min-height: 44px;
}
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: var(--olive-dark); position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.js .nav-toggle { display: inline-flex; }

.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.site-nav li { margin: 0; }
.site-nav a { display: inline-block; padding: .4rem 0; font-weight: 700; color: var(--bark); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--rust); color: var(--olive-dark); }
.js .site-nav { display: none; }
.js .site-nav.open { display: block; }
.js .site-nav.open ul { flex-direction: column; gap: 0; padding: var(--s2) 0; border-top: 1px dashed var(--line); }
.js .site-nav.open a { padding: .6rem 0; }

@media (min-width: 860px) {
  .js .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: block; width: auto; }
  .js .site-nav.open ul { flex-direction: row; border-top: 0; padding: 0; }
  .wm-1 { font-size: 1.4rem; }
}

/* Main */
main.article { padding-top: var(--s5); padding-bottom: var(--s7); }
main.article article { max-width: 46rem; }
main.article article > p, main.article article li, main.article section > p { max-width: 70ch; }
.page-head { margin-bottom: var(--s5); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-dark); margin-bottom: var(--s2); }
.byline { font-size: .9rem; color: var(--bark-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s2) 0; }
.lede { font-size: 1.15rem; }
.small { font-size: .9rem; color: var(--bark-soft); }

.crumbs ol { list-style: none; padding: 0; margin: 0 0 var(--s4); display: flex; flex-wrap: wrap; font-size: .9rem; color: var(--bark-soft); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 .5rem; color: var(--line); }

/* Topographic divider */
.topo-rule { margin: var(--s6) 0 var(--s4); height: 28px; }
.topo-rule svg { width: 100%; height: 28px; display: block; }
.topo-rule path { fill: none; stroke: var(--olive); stroke-width: 1.2; opacity: .45; vector-effect: non-scaling-stroke; }
.topo-rule path:nth-child(2) { stroke: var(--rust); opacity: .5; }

/* Icons */
.ic { width: 1.15em; height: 1.15em; vertical-align: -.2em; margin-right: .3em; color: var(--olive); flex: none; }

/* Quick answer: notebook card */
.quick {
  background-color: var(--paper-3);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 1.65rem, rgba(75, 90, 42, .13) 1.65rem, rgba(75, 90, 42, .13) calc(1.65rem + 1px));
  border: 1px solid var(--line);
  border-left: 6px solid var(--olive);
  border-radius: var(--radius);
  padding: var(--s4) var(--s4) var(--s2);
  margin: var(--s5) 0;
  box-shadow: 3px 3px 0 var(--paper-2);
}
.quick-title { font-size: 1.2rem; margin: 0 0 var(--s2); display: flex; align-items: center; }
.quick ul { padding-left: 1.1rem; }

/* Field-note callouts */
.note {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-left: 5px solid var(--rust);
  border-radius: var(--radius);
  padding: var(--s4);
  margin: var(--s5) 0;
}
.note > :last-child { margin-bottom: 0; }
.note-label {
  display: flex; align-items: center;
  font-family: "Bitter", Georgia, serif; font-weight: 700;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--rust-dark); margin: 0 0 var(--s2);
}
.note-label .ic { color: var(--rust); }
.note.warn { border-left-color: var(--olive); background: #EEF0E2; }
.note.warn .note-label { color: var(--olive-dark); }
.note.warn .note-label .ic { color: var(--olive); }

/* Table of contents */
.toc { border: 1px dashed var(--olive); border-radius: var(--radius); padding: var(--s4); margin: var(--s5) 0; background: rgba(251, 248, 241, .6); }
.toc-h { font-weight: 700; font-size: 1.05rem; margin: 0 0 var(--s2); display: flex; align-items: center; }
.toc ol { margin: 0; columns: 1; }
.toc li { margin-bottom: var(--s1); }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: var(--s6); } }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s4) 0 var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-3); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.5; }
table.compare { min-width: 680px; }
caption { text-align: left; font-family: "Bitter", Georgia, serif; font-weight: 700; color: var(--bark); padding: var(--s3) var(--s3) var(--s2); font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem .75rem; border-top: 1px solid var(--line); }
thead th { background: var(--olive); color: #FBF8F1; font-weight: 700; border-top: 0; white-space: nowrap; }
tbody th { font-weight: 700; color: var(--olive-dark); }
tbody tr:nth-child(even) { background: rgba(232, 225, 205, .45); }
.compare tbody th { white-space: nowrap; }
.compare td .ic { margin-right: .15em; }
.table-note { font-size: .9rem; color: var(--bark-soft); }

/* Lists */
.checks { list-style: none; padding-left: 0; }
.checks li { display: flex; gap: .2rem; align-items: flex-start; }
.checks .ic { color: var(--rust); margin-top: .3em; }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: var(--s4); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .05rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 2px solid var(--olive); color: var(--olive-dark);
  font: 700 .95rem/1.75rem "Bitter", Georgia, serif; text-align: center; background: var(--paper-3);
}

.two-col { display: grid; gap: 0 var(--s6); }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* Contact + map */
.contact-grid { display: grid; gap: var(--s5); }
.official { background: var(--paper-3); border: 1px solid var(--line); border-top: 5px solid var(--olive); border-radius: var(--radius); padding: var(--s4); }
.official dl { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 var(--s3); }
.official dt { font-weight: 700; color: var(--olive-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-top: var(--s3); }
.official dd { margin: 0; }
.map iframe { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); display: block; background: var(--paper-2); }
@media (min-width: 900px) {
  main.home article { max-width: 52rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .map iframe { height: 100%; min-height: 380px; }
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: var(--s3) 0; }
.faq summary { cursor: pointer; font-family: "Bitter", Georgia, serif; font-weight: 700; color: var(--bark); list-style: none; position: relative; padding-right: 2rem; min-height: 1.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: -.1rem; font-size: 1.3rem; color: var(--rust); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: var(--s2) 0 0; }

/* Related */
.related { list-style: none; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 640px) { .related { grid-template-columns: 1fr 1fr; } }
.related li { margin: 0; }
.related a { display: block; height: 100%; padding: var(--s4); text-decoration: none; color: var(--bark); background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--radius); border-bottom: 3px solid var(--olive); }
.related a:hover { border-bottom-color: var(--rust); background: #fff; }
.rel-k { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--rust-dark); }
.rel-t { display: block; font-family: "Bitter", Georgia, serif; font-weight: 700; font-size: 1.05rem; color: var(--olive-dark); margin: .2rem 0; }
.rel-d { display: block; font-size: .95rem; color: var(--bark-soft); }
.small-rel a { padding: var(--s3) var(--s4); }

.sources ul { font-size: .95rem; }
.legal h2 { font-size: 1.3rem; }

/* Footer */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-bottom: var(--s6); }
.site-footer .topo-rule { margin: 0 0 var(--s5); }
.footer-inner { display: grid; gap: var(--s5); font-size: .95rem; }
.footer-brand { font-weight: 800; font-size: 1.1rem; margin-bottom: var(--s2); }
.footer-h { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--rust-dark); margin-bottom: var(--s2); }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: var(--s1); }
.footer-nav a { color: var(--bark); }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }

@media print {
  .site-header, .site-footer, .nav-toggle, .map { display: none; }
  body { background: #fff; }
}

/* long domains in emails and URLs must wrap on phones */
a[href^="mailto:"], a[href^="http"] { overflow-wrap: anywhere; } /* long domains */
