@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

:root { --font-figtree: 'Figtree'; }

:root {
  /* flax / oat neutral base */
  --flax: #efe9da;
  --flax-soft: #e7e0cd;
  --oat: #f6f1e4;
  --paper: #fffdf6;
  --ink: #232520;
  --ink-soft: #545a51;
  --muted: #8a8b7c;
  --line: #ddd5c0;
  --line-soft: #e7e0cd;
  /* single harbor-blue accent (no second hue) */
  --harbor: #3a6e94;
  --harbor-deep: #285577;
  --harbor-tint: #e4edf3;
  --harbor-wash: #eef3f7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 16px 40px rgba(40, 85, 119, 0.12);
  --shadow-soft: 0 8px 20px rgba(40, 85, 119, 0.08);
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--flax);
  color: var(--ink);
  font-family: var(--font-figtree), ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--harbor-deep);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-figtree), ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--harbor-deep);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---------- Header: practical, listing oriented ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--harbor-tint);
  color: var(--harbor-deep);
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wordmark-text strong {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wordmark-text small {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.header-nav {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.header-nav a:hover {
  color: var(--harbor-deep);
  border-color: var(--harbor);
}

/* ---------- Lead: full-bleed banner over harbor gradient ---------- */
.lead {
  position: relative;
  color: var(--paper);
  background-color: var(--harbor-deep);
  background-image:
    linear-gradient(115deg, rgba(40, 85, 119, 0.92) 0%, rgba(58, 110, 148, 0.78) 55%, rgba(40, 85, 119, 0.6) 100%),
    url("/images/flaxharbor-lead.jpg");
  background-size: cover;
  background-position: center;
}

.lead-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem 5.25rem;
}

.lead .eyebrow {
  color: #cfe2ef;
}

.lead h1 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  color: var(--paper);
}

.lead-lede {
  max-width: 54ch;
  margin: 1.1rem 0 0;
  font-size: 1.08rem;
  color: #eaf2f7;
}

.lead-pills {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.lead-pills span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.16);
  border: 1px solid rgba(255, 253, 246, 0.32);
  color: var(--paper);
}

.lead-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 1.8rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--harbor-deep);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease;
}

.lead-cta:hover {
  transform: translateY(-2px);
}

/* ---------- Shared band layout ---------- */
main {
  display: block;
}

.needs,
.listings,
.recent,
.about {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.band-head {
  max-width: 62ch;
  margin-bottom: 2rem;
}

.band-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.band-sub {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- Choose by need selector ---------- */
.needs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.need-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.need-card:hover {
  border-color: var(--harbor);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.need-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.need-index {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--harbor);
  font-variant-numeric: tabular-nums;
}

.need-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--harbor-deep);
  background: var(--harbor-tint);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

.need-card h3 {
  font-size: 1.22rem;
}

.need-summary {
  margin: 0.5rem 0 1rem;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.need-key {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.need-checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.need-checks li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.94rem;
  color: var(--ink);
}

.need-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--harbor);
  border-radius: 3px;
  transform: rotate(45deg);
}

.need-count {
  margin-top: 1.15rem;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.8rem;
  width: 100%;
}

/* ---------- Local listing rows (list style, with map cue) ---------- */
.listings {
  background: var(--oat);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.listings .band-head.on-paper,
.listing-rows {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.listing-rows {
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.listing-row {
  display: grid;
  grid-template-columns: auto 1fr minmax(190px, 0.7fr);
  gap: 1.4rem;
  align-items: start;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.listing-cue {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--harbor-tint);
  color: var(--harbor-deep);
}

.listing-main h3 {
  font-size: 1.22rem;
}

.listing-blurb {
  margin: 0.35rem 0 0.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.listing-map {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--harbor-deep);
}

.listing-compare {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem 1rem;
}

.listing-compare-key {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--harbor-deep);
}

.listing-compare ul {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.listing-compare li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--oat);
  border: 1px solid var(--line-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

/* ---------- Recent guides (compact rows) ---------- */
.recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recent-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.recent-item:hover {
  border-color: var(--harbor);
  box-shadow: var(--shadow-soft);
}

.recent-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--harbor-deep);
  background: var(--harbor-tint);
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  justify-self: start;
}

.recent-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.recent-body strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.recent-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.recent-date {
  font-size: 0.82rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- About ---------- */
.about-head {
  margin-bottom: 1.5rem;
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.about-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--harbor);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  font-size: 0.96rem;
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--harbor-deep);
  color: #dfeaf1;
  padding: 3rem 1.5rem 3.5rem;
}

.site-footer > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}

.footer-mark {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.footer-desc {
  margin: 0.6rem auto 0;
  max-width: 60ch;
  font-size: 0.96rem;
}

.footer-note {
  margin: 1rem auto 0;
  font-size: 0.84rem;
  color: #aec6d6;
}

/* ---------- Article ---------- */
.article-shell {
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.breadcrumb a {
  color: var(--harbor-deep);
  font-weight: 600;
}

.article-head {
  margin-bottom: 1.6rem;
}

.article-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--harbor-deep);
  background: var(--harbor-tint);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.article-head h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.context-box {
  background: var(--harbor-wash);
  border: 1px solid var(--harbor-tint);
  border-left: 4px solid var(--harbor);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
}

.context-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--harbor-deep);
  margin-bottom: 0.4rem;
}

.context-box p {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

/* injected semantic HTML */
.article-content {
  font-size: 1.05rem;
  color: var(--ink);
}

.article-content h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.6rem;
}

.article-content p {
  margin: 0 0 1.1rem;
}

.article-content a {
  color: var(--harbor-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--harbor-tint);
  text-underline-offset: 2px;
}

.article-content a:hover {
  text-decoration-color: var(--harbor);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--oat);
  border-left: 4px solid var(--harbor);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.article-content blockquote p {
  margin: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}

.article-content thead {
  background: var(--harbor-tint);
}

.article-content th,
.article-content td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  vertical-align: top;
}

.article-content th {
  font-weight: 700;
  color: var(--harbor-deep);
}

.article-content tbody tr:nth-child(even) {
  background: var(--oat);
}

/* FAQ */
.faq-section {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
}

.faq-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.faq-section details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.7rem;
  background: var(--paper);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  float: right;
  color: var(--harbor);
  font-weight: 700;
}

.faq-section details[open] summary::after {
  content: "–";
}

.faq-section details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

/* sources note */
.source-note {
  margin-top: 2.5rem;
  background: var(--oat);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.source-note h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.source-note p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.article-foot {
  margin-top: 2.2rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--harbor-deep);
}

.back-link::before {
  content: "←";
  margin-right: 0.4rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .needs-grid {
    grid-template-columns: 1fr;
  }
  .about-list {
    grid-template-columns: 1fr;
  }
  .listing-row {
    grid-template-columns: auto 1fr;
  }
  .listing-compare {
    grid-column: 1 / -1;
  }
  .recent-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .recent-date {
    justify-self: start;
  }
}
