/* ==========================================================================
   The Cairn Companion — independent Cairn Terrier reference
   Palette: Highland heather, bracken, weathered stone.
   Layout is CSS-only. Nothing on this site is hidden waiting on JavaScript.
   ========================================================================== */

:root{
  --green:#3f5d45;
  --green-dark:#2a3f2f;
  --green-light:#6d8a73;
  --parchment:#f5f1e8;
  --parchment-deep:#ebe4d5;
  --ink:#26241f;
  --muted:#6b675e;
  --rust:#b5622f;
  --gold:#8d7b4f;
  --line:#ddd5c3;
  --white:#fffdf9;
  --radius:6px;
  --measure:46rem;
  --shell:76rem;
  --shadow:0 1px 2px rgba(38,36,31,.06), 0 8px 24px -16px rgba(38,36,31,.35);
}

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

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

body{
  margin:0;
  background:var(--parchment);
  color:var(--ink);
  font-family:"Public Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;
  font-size:1.0625rem;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}

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

a{color:var(--green-dark);text-underline-offset:.18em;text-decoration-thickness:.06em;}
a:hover,a:focus{color:var(--rust);}

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

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:999;
  background:var(--green-dark);color:var(--parchment);
  padding:.7rem 1.1rem;border-radius:0 0 var(--radius) 0;
}
.skip-link:focus{left:0;}

.shell{
  width:100%;
  max-width:var(--shell);
  margin-inline:auto;
  padding-inline:clamp(1rem,4vw,2.5rem);
}

/* ---------------------------------------------------------------- header */
/* Nav uses min-width:0 + flex-wrap so an oversized menu WRAPS instead of
   being pushed past the viewport edge and clipped. Header is static, never
   fixed, so a taller wrapped bar can never cover page content. */
.site-header{
  position:static;
  background:var(--green-dark);
  color:var(--parchment);
  border-bottom:4px solid var(--gold);
}

.header-inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.75rem 1.5rem;
  padding-block:1rem;
  min-width:0;
}

.brand{
  display:flex;align-items:center;gap:.75rem;
  text-decoration:none;color:inherit;flex:0 1 auto;min-width:0;
}
.brand-mark{
  flex:0 0 auto;
  width:2.6rem;height:2.6rem;
  display:grid;place-items:center;
  background:var(--parchment);color:var(--green-dark);
  font-family:"Fraunces",Georgia,serif;font-weight:700;font-size:1.5rem;
  border-radius:var(--radius);
}
.brand-text{display:flex;flex-direction:column;min-width:0;}
.brand-name{
  font-family:"Fraunces",Georgia,serif;font-weight:700;
  font-size:1.3rem;line-height:1.15;letter-spacing:.005em;
}
.brand-tag{font-size:.78rem;color:#c9d3c6;letter-spacing:.02em;}

.site-nav{flex:1 1 20rem;min-width:0;}
.site-nav ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:.15rem .35rem;
  list-style:none;margin:0;padding:0;min-width:0;
}
.site-nav li{min-width:0;flex:0 1 auto;}
.site-nav .nav-link{
  display:block;
  padding:.35rem .6rem;
  color:#dfe6dc;
  font-size:.86rem;font-weight:500;
  text-decoration:none;
  border-radius:var(--radius);
  white-space:nowrap;
}
.site-nav .nav-link:hover,.site-nav .nav-link:focus{background:rgba(245,241,232,.14);color:#fff;}
.site-nav .nav-link.active{background:var(--gold);color:var(--green-dark);font-weight:600;}

/* ---------------------------------------------------------------- hero */
.hero{position:relative;background:var(--green-dark);overflow:hidden;}
.hero-img{
  width:100%;
  height:clamp(15rem,42vw,26rem);
  object-fit:cover;
  object-position:center;
}
.hero-veil{
  position:absolute;inset:0;
  background:linear-gradient(to top,rgba(42,63,47,.72) 0%,rgba(42,63,47,.15) 45%,rgba(42,63,47,0) 75%);
}
.hero-inner{position:absolute;left:0;right:0;bottom:1rem;}
.eyebrow{
  margin:0;
  font-family:"Fraunces",Georgia,serif;
  font-size:.9rem;letter-spacing:.16em;text-transform:uppercase;
  color:var(--parchment);
}
.page-head{background:var(--green);padding-block:1.4rem;}
.page-head .eyebrow{color:var(--parchment);}

/* ---------------------------------------------------------------- main */
main{padding-block:clamp(2rem,5vw,3.5rem) clamp(3rem,7vw,5rem);}
main > .shell{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(1.5rem,4vw,3rem);align-items:flex-start;}

.prose{
  flex:1 1 32rem;
  min-width:0;
  max-width:var(--measure);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:clamp(1.4rem,4vw,3rem);
  box-shadow:var(--shadow);
}

.prose h1{
  font-family:"Fraunces",Georgia,serif;
  font-weight:700;
  font-size:clamp(1.9rem,4.4vw,2.7rem);
  line-height:1.15;
  margin:0 0 1rem;
  color:var(--green-dark);
}
.prose h2{
  font-family:"Fraunces",Georgia,serif;
  font-weight:700;
  font-size:clamp(1.25rem,2.6vw,1.55rem);
  line-height:1.25;
  margin:2.4rem 0 .8rem;
  color:var(--green-dark);
  padding-bottom:.4rem;
  border-bottom:1px solid var(--line);
}
.prose h3{
  font-family:"Fraunces",Georgia,serif;
  font-size:1.15rem;margin:1.8rem 0 .6rem;color:var(--green);
}
.prose p{margin:0 0 1.1rem;}
.prose ul,.prose ol{margin:0 0 1.3rem;padding-left:1.3rem;}
.prose li{margin-bottom:.55rem;}
.prose strong{font-weight:600;color:var(--green-dark);}
.prose em{font-style:italic;}

.lede{
  font-size:1.16rem;
  line-height:1.6;
  color:var(--muted);
  font-weight:400;
  border-left:3px solid var(--gold);
  padding-left:1rem;
  margin-bottom:1.6rem !important;
}

/* Non-affiliation and safety notices. These are load-bearing content. */
.notice-inline{
  font-size:.92rem;
  color:var(--muted);
  font-style:italic;
  margin-bottom:1.6rem !important;
}
.notice-box{
  background:var(--parchment-deep);
  border:1px solid var(--line);
  border-left:5px solid var(--rust);
  border-radius:var(--radius);
  padding:1.1rem 1.3rem;
  margin:0 0 1.8rem;
  font-size:1rem;
}
.notice-box p{margin-bottom:.7rem;}
.notice-box p:last-child{margin-bottom:0;}
.notice-box.notice-primary{border-left-color:var(--green);background:#eef2ea;}
.notice-box h2{
  margin-top:0 !important;
  border-bottom:none !important;
  font-size:1.1rem !important;
  padding-bottom:0 !important;
}

.inline-fig{margin:2rem 0;}
.inline-fig img{border-radius:var(--radius);border:1px solid var(--line);}
.inline-fig figcaption{
  font-size:.85rem;color:var(--muted);margin-top:.55rem;font-style:italic;
}

/* ---------------------------------------------------------------- aside */
.key-facts{
  flex:1 1 16rem;
  min-width:0;
  max-width:22rem;
  background:var(--green-dark);
  color:var(--parchment);
  border-radius:var(--radius);
  padding:1.4rem 1.5rem;
  box-shadow:var(--shadow);
}
.key-facts h2{
  font-family:"Fraunces",Georgia,serif;
  font-size:1.1rem;margin:0 0 1rem;color:var(--gold);
  letter-spacing:.02em;
}
.key-facts dl{margin:0;}
.key-facts dt{
  font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;
  color:#a9b8a9;margin-top:.9rem;
}
.key-facts dt:first-child{margin-top:0;}
.key-facts dd{margin:.15rem 0 0;font-size:.94rem;line-height:1.5;}

/* ---------------------------------------------------------------- footer */
.site-footer{
  background:var(--green-dark);
  color:#d6dfd4;
  border-top:4px solid var(--gold);
  padding-top:clamp(2rem,5vw,3rem);
  font-size:.92rem;
}
.footer-grid{
  display:flex;flex-wrap:wrap;gap:2rem;align-items:flex-start;
  padding-bottom:2rem;
}
.footer-about{flex:1 1 22rem;min-width:0;}
.footer-col{flex:1 1 10rem;min-width:0;}
.footer-brand{
  font-family:"Fraunces",Georgia,serif;font-weight:700;font-size:1.15rem;
  color:var(--parchment);margin:0 0 .5rem;
}
.footer-blurb{margin:0 0 1rem;color:#b9c6b7;}
.footer-disclaimer{
  margin:0;
  font-size:.84rem;
  line-height:1.6;
  color:#c6d1c4;
  background:rgba(245,241,232,.07);
  border-left:3px solid var(--gold);
  border-radius:0 var(--radius) var(--radius) 0;
  padding:.8rem 1rem;
}
.footer-disclaimer strong{color:var(--parchment);}
.footer-col h2{
  font-family:"Fraunces",Georgia,serif;
  font-size:.8rem;text-transform:uppercase;letter-spacing:.14em;
  color:var(--gold);margin:0 0 .7rem;
}
.footer-col ul{list-style:none;margin:0;padding:0;}
.footer-col li{margin-bottom:.4rem;}
.site-footer a{color:#d6dfd4;text-decoration:none;}
.site-footer a:hover,.site-footer a:focus{color:#fff;text-decoration:underline;}
.footer-base{
  border-top:1px solid rgba(245,241,232,.16);
  padding-block:1.1rem 1.6rem;
  display:flex;flex-wrap:wrap;gap:.4rem 2rem;justify-content:space-between;
  font-size:.82rem;color:#a9b8a9;
}
.footer-base p{margin:0;}

/* ---------------------------------------------------------------- misc */
@media (max-width:44rem){
  .site-nav ul{justify-content:flex-start;}
  .prose{padding:1.25rem;}
  .lede{font-size:1.08rem;}
}

@media print{
  .site-header,.site-footer,.hero,.page-head{display:none;}
  .prose{border:none;box-shadow:none;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.01ms !important;transition-duration:.01ms !important;}
}

/* Safeguard: if any scroll-reveal markup is ever introduced, content still
   renders. Nothing here is ever hidden waiting on JavaScript. */
[data-aos]{opacity:1 !important;transform:none !important;}
