/* ===========================================================
   Mary's Pacific Northwest — shared stylesheet
   A field-guide inspired palette: sage paper, pine ink,
   huckleberry, rufous-orange, jay-blue, camas-gold.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=Work+Sans:wght@400;500;600;700&display=swap');

:root{
  --sage-bg:   #EEF2E3;
  --paper:     #FBFBF4;
  --paper-2:   #F3F5EA;
  --ink:       #26301F;
  --ink-soft:  #4B5442;
  --forest:    #35603E;
  --forest-dk: #24422B;
  --huckle:    #7A3B62;
  --coral:     #C1442B;
  --sky:       #2E6E86;
  --gold:      #C98A17;
  --line:      #D8DCC8;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 6px 20px rgba(38, 48, 31, 0.08);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--sage-bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a{ color: var(--forest-dk); text-decoration-color: rgba(53,96,62,0.35); text-underline-offset: 3px; }
a:hover{ text-decoration-color: currentColor; }

h1, h2, h3, h4{
  font-family: var(--display);
  font-weight: 600;
  color: var(--forest-dk);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
}

h1{ font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1em 0; }

.eyebrow{
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--huckle);
}

/* ---------- Layout shells ---------- */
.wrap{
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header{
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper) 0%, var(--sage-bg) 100%);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark{ flex: none; }

.brand-text{
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest-dk);
  line-height: 1.05;
}
.brand-text small{
  display: block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--huckle);
}

nav.mainnav{ display: flex; gap: 4px; flex-wrap: wrap; }
nav.mainnav a{
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
nav.mainnav a:hover{ background: var(--paper-2); color: var(--forest-dk); }
nav.mainnav a.active{ background: var(--forest); color: #fff; }

footer.site-footer{
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 32px 0 48px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
footer.site-footer .wrap{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero ---------- */
.hero{
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px){
  .hero .wrap{ grid-template-columns: 1fr; }
}
.hero h1{ margin-bottom: 0.35em; }
.hero .lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-art{ display: flex; justify-content: center; }

.button-row{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--forest); color: #fff; box-shadow: var(--shadow); }
.btn-ghost{ background: transparent; border-color: var(--line); color: var(--ink); }

/* ---------- Section cards / topic tiles ---------- */
.section-pad{ padding: 40px 0; }

.tiles{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
@media (max-width: 820px){ .tiles{ grid-template-columns: 1fr; } }

.tile{
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 26px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover{ transform: translateY(-3px); box-shadow: 0 12px 28px rgba(38,48,31,0.13); }
.tile h3{ margin-bottom: 0; }
.tile .tile-icon{ width: 52px; height: 52px; }
.tile .tile-cta{
  margin-top: auto;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--forest-dk);
}

/* ---------- About / bio block ---------- */
.about-block{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 700px){ .about-block{ grid-template-columns: 1fr; } }

.route-map{ min-width: 220px; }

.route-list{
  list-style: none;
  margin: 14px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.route-list li{
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-dk);
}

/* ---------- Specimen cards (flowers / birds) ---------- */
.specimen-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-top: 10px;
}

.specimen{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.specimen.featured{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 300px 1fr;
}
@media (max-width: 700px){
  .specimen.featured{ grid-template-columns: 1fr; }
}

.specimen-art{
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}
.specimen.featured .specimen-art{
  border-bottom: none;
  border-right: 1px solid var(--line);
}
@media (max-width: 700px){
  .specimen.featured .specimen-art{ border-right: none; border-bottom: 1px solid var(--line); }
}

.specimen-body{ padding: 22px 24px 26px; }

.specimen-tag{
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tag-state{ background: #FCEFC7; color: #7A5A0A; }
.tag-common{ background: #E4EEE1; color: var(--forest-dk); }

.specimen-name-latin{
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: -6px 0 12px 0;
}

.spec-facts{
  list-style: none;
  margin: 14px 0 0 0;
  padding: 12px 0 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  font-size: 0.88rem;
}
.spec-facts li strong{
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--huckle);
  font-weight: 700;
}

.fun-fact{
  margin-top: 14px;
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  font-size: 0.9rem;
  border-radius: 0 8px 8px 0;
}

/* ---------- Timeline ribbon (bloom / migration season) ---------- */
.timeline{
  margin-top: 8px;
}
.timeline-row{
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
}
.timeline-label{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.timeline-track{
  position: relative;
  height: 14px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.timeline-bar{
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 999px;
}
.timeline-months{
  display: grid;
  grid-template-columns: 150px repeat(12, 1fr);
  gap: 14px;
  font-size: 0.62rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  padding: 0 0 6px 0;
}
.timeline-months span:first-child{ visibility: hidden; }

/* ---------- Breed comparison cards ---------- */
.breed-section{ margin-top: 16px; }

.breed-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
}
@media (max-width: 760px){ .breed-card{ grid-template-columns: 1fr; } }

.breed-portrait{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.breed-ribbon{
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--huckle);
  padding: 8px 18px;
  border-radius: 8px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
}

.spec-table{
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px 0;
  font-size: 0.9rem;
}
.spec-table th, .spec-table td{
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.spec-table th{
  width: 34%;
  color: var(--huckle);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-row{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.badge{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--forest-dk);
}

.compare-table-wrap{ overflow-x: auto; margin-top: 36px; }
table.compare{
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-width: 560px;
}
table.compare th, table.compare td{
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.9rem;
}
table.compare thead th{
  background: var(--forest);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
}
table.compare tbody th{
  color: var(--huckle);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 22%;
}

/* ---------- Intro banner per page ---------- */
.page-banner{
  padding: 46px 0 30px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sage-bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-banner .wrap{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
@media (max-width: 700px){ .page-banner .wrap{ grid-template-columns: 1fr; } }
.page-banner p.lede{ color: var(--ink-soft); max-width: 62ch; font-size: 1.05rem; }
.page-banner .banner-icon{ justify-self: end; }
@media (max-width: 700px){ .page-banner .banner-icon{ justify-self: start; } }

/* ---------- misc ---------- */
.divider{
  height: 1px;
  background: var(--line);
  margin: 44px 0;
  border: none;
}

.callout{
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  box-shadow: var(--shadow);
  margin: 30px 0;
}

.legend{ display:flex; gap:18px; flex-wrap:wrap; margin: 18px 0 6px; font-size: 0.85rem; color: var(--ink-soft); }
.legend span{ display:inline-flex; align-items:center; gap:6px; }
.legend i{ width:12px; height:12px; border-radius:3px; display:inline-block; }
