/* ============================================================
   Juniata Fishing Company — v1.1 "Dawn on the river"
   Classic, peaceful, vintage fly-fishing aesthetic.
   Fonts load from Google Fonts via @import; graceful serif
   fallbacks cover offline/blocked environments.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  --paper: #f6f1e3;
  --paper-deep: #eee6d1;
  --ink: #2b332c;
  --ink-soft: #5a635a;
  --pine: #1e3a2c;
  --pine-deep: #142a1c;
  --copper: #a8663a;
  --copper-deep: #8a5128;
  --gold: #c2a15b;
  --slate: #52685f;
  --rule: #d8cdb2;
  --card: #fcf8ec;
  --display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  line-height: 1.68;
  font-size: 18px;
}
::selection { background: #e3cf9e; color: var(--pine-deep); }

/* ---------- Masthead ---------- */
.masthead {
  background: linear-gradient(#20402f, var(--pine-deep));
  color: var(--paper);
  border-bottom: 3px solid var(--copper);
  box-shadow: inset 0 -6px 0 -5px rgba(194, 161, 91, .55);
}
.masthead-inner {
  max-width: 1000px; margin: 0 auto; padding: 1.15rem 1.25rem 1rem;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1.5rem;
}
.wordmark {
  font-family: var(--display);
  font-size: 1.6rem; letter-spacing: .18em; text-transform: uppercase;
  color: #f2ecdb; text-decoration: none; font-weight: 700; white-space: nowrap;
}
.wordmark .amp { color: var(--gold); }
.masthead nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: baseline; }
.masthead nav a {
  color: #ddd5bd; text-decoration: none; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase;
}
.masthead nav a:hover, .masthead nav a[aria-current="page"] {
  color: #fff; border-bottom: 2px solid var(--gold);
}

/* ---------- Layout ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }
main { padding-bottom: 3rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.16; color: var(--pine-deep); font-weight: 600;
  letter-spacing: .005em;
}
h1 { font-size: 2.6rem; margin: 2.2rem 0 .7rem; }
h2 { font-size: 1.85rem; margin: 2.3rem 0 .6rem; }
h3 { font-size: 1.3rem; margin: 1.6rem 0 .4rem; }
p { margin: .7rem 0 1.05rem; }
a { color: var(--copper-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--copper); }
.kicker {
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--copper-deep); margin: 2.6rem 0 0; font-weight: 600;
}
.lede { font-size: 1.22rem; color: var(--ink-soft); line-height: 1.6; }
.smallprint { font-size: .84rem; color: var(--ink-soft); }

/* fleuron divider — a small tied fly between hairlines */
.rule {
  border: 0; height: 30px; margin: 2.6rem auto;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 24'%3E%3Cpath d='M8 13 h9 c5 0 8 3 6 7 c-2 3 -6 3 -8 1' fill='none' stroke='%23a8663a' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M11 13 L5 7 M13 13 L11 5 M15 13 L17 5 M25 12 l6 -4 M25 13 l7 0' stroke='%238a7350' stroke-width='1' stroke-linecap='round'/%3E%3Ccircle cx='6.5' cy='13' r='1.5' fill='none' stroke='%23a8663a' stroke-width='1.2'/%3E%3C/svg%3E") center / 30px no-repeat,
    linear-gradient(to right, rgba(216,205,178,0), var(--rule)) left center / calc(50% - 40px) 1px no-repeat,
    linear-gradient(to left, rgba(216,205,178,0), var(--rule)) right center / calc(50% - 40px) 1px no-repeat;
}

/* ---------- Hero (home) ---------- */
.hero-band { line-height: 0; border-bottom: 1px solid #cabf9f; }
.hero-band img { width: 100%; height: auto; display: block; }
.hero-classic { padding: 2.6rem 1.25rem .6rem; text-align: center; }
.hero-classic .est {
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--copper-deep); margin: 0 0 .6rem;
}
.hero-classic h1 { font-size: 3.1rem; margin: .2rem 0 .6rem; font-weight: 600; }
.hero-classic .lede { max-width: 620px; margin: .4rem auto 1rem; font-style: italic; }
.hero-actions { margin: 1.5rem 0 .6rem; display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .72rem 1.35rem .66rem; border-radius: 2px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; font-family: var(--serif); line-height: 1.3;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
}
.btn-primary { background: var(--pine); color: #f3eddc; border-color: var(--pine-deep); box-shadow: inset 0 0 0 1px rgba(194,161,91,.4); }
.btn-primary:hover { background: var(--pine-deep); color: #fff; }
.btn-outline { border-color: var(--pine); color: var(--pine-deep); background: transparent; }
.btn-outline:hover { background: var(--pine); color: #f3eddc; }
.btn-retail { background: var(--copper); color: #fff6ea; font-size: .74rem; padding: .5rem 1rem .46rem; border-color: var(--copper-deep); }
.btn-retail:hover { background: var(--copper-deep); color: #fff; }

/* ---------- Cards / grids ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; margin: 1.4rem 0; }
@media (max-width: 780px) { .grid3 { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid #cfc3a4;
  box-shadow: inset 0 0 0 3px var(--card), inset 0 0 0 4px #ddd2b4;
  padding: 1.35rem 1.4rem 1.45rem;
}
.card h3 { margin-top: .3rem; }
.card .rodline { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--copper-deep); margin: .1rem 0 .2rem; }
.card p { font-size: .95rem; color: var(--ink-soft); }
.card a.cardlink { font-size: .93rem; }
.card-icon { height: 56px; width: auto; display: block; margin: .1rem 0 .35rem; }

/* ---------- Plate figure (vintage-plate illustration) ---------- */
.plate {
  margin: 2.4rem auto; max-width: 660px; background: var(--card);
  border: 1px solid #cfc3a4;
  box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px #ddd2b4;
  padding: 2rem 2.2rem 1.4rem; text-align: center;
}
.plate img { max-width: 100%; height: auto; }
.plate figcaption {
  margin-top: 1rem; font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-soft);
}
.plate figcaption em { font-style: italic; text-transform: none; letter-spacing: .06em; font-size: .95rem; color: var(--pine-deep); display: block; margin-bottom: .2rem; font-family: var(--display); }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; max-width: 700px; margin: 3rem auto 2.6rem; padding: 0 1rem; }
.quote-band blockquote {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: 1.9rem; line-height: 1.35; color: var(--pine-deep);
  border: 0; margin: 0 0 .8rem; padding: 0;
}
.quote-band cite {
  font-style: normal; font-size: .78rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--copper-deep);
}

/* ---------- Outfit tables ---------- */
.outfit-items { border-top: 2px solid var(--pine); margin: 1.2rem 0; }
.outfit-item {
  display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline;
  padding: .95rem 0; border-bottom: 1px solid var(--rule);
}
.outfit-item .oi-main { flex: 1 1 260px; }
.outfit-item .oi-name { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--pine-deep); }
.outfit-item .oi-config { color: var(--ink-soft); font-size: .9rem; }
.outfit-item .oi-why { flex-basis: 100%; font-size: .93rem; color: var(--ink-soft); margin: .15rem 0 0; }
.outfit-item .oi-price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.outfit-item.owned { opacity: .55; }
.outfit-item.owned .oi-name::after { content: " — you have this covered"; font-weight: 400; font-style: italic; font-size: .85rem; font-family: var(--serif); }
.outfit-total {
  display: flex; justify-content: space-between; padding: .85rem 0;
  font-weight: 700; font-size: 1.08rem; border-bottom: 2px solid var(--pine);
  font-family: var(--display);
}
.tradeoffs { background: var(--paper-deep); border-left: 3px solid var(--copper); padding: 1rem 1.2rem; }
.tradeoffs h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.tradeoffs ul { margin: .3rem 0 .2rem 1.1rem; padding: 0; }
.tradeoffs li { font-size: .93rem; color: var(--ink-soft); margin: .38rem 0; }

.disclosure {
  font-size: .85rem; color: var(--ink-soft); background: var(--paper-deep);
  border: 1px solid var(--rule); padding: .65rem .9rem; margin: 1.1rem 0 .8rem;
}

/* ---------- Selector (chat) ---------- */
.chat-shell {
  max-width: 730px; margin: 1.8rem auto 3rem; background: var(--card);
  border: 1px solid #cfc3a4;
  box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px #ddd2b4;
  padding: 1.5rem 1.5rem 1.7rem; min-height: 380px;
}
.msg { margin: .6rem 0; display: flex; }
.msg-guide { justify-content: flex-start; }
.msg-user { justify-content: flex-end; }
.bubble { max-width: 84%; padding: .62rem 1rem; border-radius: 12px; font-size: 1rem; }
.msg-guide .bubble { background: var(--paper-deep); border: 1px solid var(--rule); border-bottom-left-radius: 3px; }
.msg-user .bubble { background: var(--pine); color: #f2eddd; border-bottom-right-radius: 3px; }
.choices { display: flex; flex-wrap: wrap; gap: .55rem; margin: .9rem 0 .3rem; }
.choice {
  border: 1px solid var(--pine); background: transparent; color: var(--pine-deep);
  padding: .5rem 1.05rem .46rem; border-radius: 999px; font-family: var(--serif);
  font-size: .95rem; cursor: pointer;
}
.choice:hover { background: var(--pine); color: #f2eddd; }
.chat-tools { text-align: right; margin-top: .4rem; }
.chat-tools button {
  background: none; border: none; color: var(--ink-soft); font-size: .82rem;
  cursor: pointer; font-family: var(--serif); text-decoration: underline;
}
.result-card { margin-top: 1.1rem; border-top: 2px solid var(--copper); padding-top: .7rem; }
.result-card h2 { margin-top: .4rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.1rem 0 .2rem; }

/* ---------- Article ---------- */
article.guide { max-width: 720px; }
article.guide h1 { margin-top: 2.4rem; font-size: 2.35rem; }
.byline { font-size: .86rem; color: var(--ink-soft); letter-spacing: .04em; }
blockquote {
  margin: 1.5rem 0; padding: .2rem 1.3rem; border-left: 3px solid var(--copper);
  color: var(--ink-soft); font-style: italic; font-size: 1.05rem;
}
table.plain { border-collapse: collapse; width: 100%; margin: 1.3rem 0; font-size: .96rem; }
table.plain th, table.plain td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.plain th { border-bottom: 2px solid var(--pine); color: var(--pine-deep); font-family: var(--display); font-size: 1.05rem; }
table.plain td.num, table.plain th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
footer.site {
  background: linear-gradient(#183123, var(--pine-deep));
  color: #c9c3ad; margin-top: 3.2rem;
  border-top: 3px solid var(--copper);
  box-shadow: inset 0 6px 0 -5px rgba(194,161,91,.5);
  font-size: .9rem;
}
footer.site .wrap { padding: 2.1rem 1.25rem 2.4rem; }
footer.site a { color: #e6dfc7; }
footer.site .foot-disclosure { max-width: 680px; opacity: .92; }
footer.site .foot-links { margin: 1rem 0 .3rem; display: flex; flex-wrap: wrap; gap: 1.25rem; }
footer.site .foot-links a { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
footer.site .foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-est { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 1.2rem 0 0; }
.newsletter-note { border-top: 1px solid rgba(255,255,255,.14); margin-top: 1.1rem; padding-top: 1rem; }

@media (max-width: 640px) {
  h1 { font-size: 2.1rem; }
  .hero-classic h1 { font-size: 2.3rem; }
  .quote-band blockquote { font-size: 1.45rem; }
  .masthead nav { gap: .9rem; }
}
