/* Intranet-Connect.org — editorial greenkeeper site */

:root {
  --bg: #f7f6f2;
  --paper: #fdfcfa;
  --ink: #1c1b18;
  --muted: #4a4842;
  --faint: #8a8579;
  --line: #e2ddd3;
  --accent: #3d5c4a;
  --accent-soft: #e8efe9;
  --max: 42rem;
  --wide: 52rem;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - 2rem, var(--wide));
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--ink);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    display: none;
    border-top: 1px solid var(--line);
    padding-top: 0.75rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Main */
main {
  flex: 1;
}

.section {
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}

.section:last-of-type {
  border-bottom: none;
}

.section--tight {
  padding: 2rem 0;
}

.section--hero {
  padding: 3rem 0 2.75rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.45rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  max-width: 38rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--muted);
}

.label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

/* Hero */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: #324a3b;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.trust-note {
  font-size: 0.9rem;
  color: var(--faint);
  max-width: 32rem;
  margin: 0;
  padding-top: 0.25rem;
}

/* Two-column editorial */
.grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
    align-items: start;
  }
}

.rail {
  font-size: 0.9rem;
  color: var(--muted);
  border-left: 3px solid var(--accent-soft);
  padding-left: 1rem;
}

.rail p {
  max-width: none;
}

/* Service list */
.help-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .help-list {
    grid-template-columns: 1fr 1fr;
  }
}

.help-list li {
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.help-list strong {
  display: block;
  font-family: var(--font-serif);
  margin-bottom: 0.25rem;
}

/* Pathways */
.pathways {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .pathways {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.pathway {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.pathway__links {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}

.pathway__links a {
  display: block;
  margin-top: 0.35rem;
}

/* Process */
.process-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.process-list li {
  margin-bottom: 0.65rem;
}

/* Selected notes — emphasized + stack */
.note-feature {
  padding: 1.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 2rem;
}

.note-feature h3 {
  font-size: 1.35rem;
}

.note-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.note-teaser {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.note-teaser:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.note-teaser h3 {
  font-size: 1.1rem;
}

.note-teaser p {
  font-size: 0.98rem;
  color: var(--muted);
}

.read-link {
  font-size: 0.92rem;
  font-weight: 500;
}

/* Archive */
.archive {
  font-size: 0.98rem;
}

.archive ol {
  margin: 0;
  padding-left: 1.25rem;
}

.archive li {
  margin-bottom: 0.5rem;
}

/* Contact block */
.contact-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
}

.contact-block dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-block dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.contact-block dd {
  margin: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  background: #ebe8e0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.footer-nav a {
  color: var(--muted);
}

.copyright {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--faint);
}

/* Inner pages */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--faint);
  margin-bottom: 1.5rem;
}

.article-body h2 {
  margin-top: 2rem;
}

.article-body ul {
  color: var(--muted);
}

.breadcrumb {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--muted);
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.related ul {
  margin: 0;
  padding-left: 1.1rem;
}

.related li {
  margin-bottom: 0.4rem;
}

/* Form (contacts) */
.form {
  margin-top: 1.5rem;
  max-width: 28rem;
}

.form label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  margin-bottom: 0.85rem;
  background: var(--paper);
}

.form textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--faint);
  margin-top: 0.5rem;
}

/* Privacy sections */
.policy-section {
  margin-bottom: 2rem;
}

.policy-section h2 {
  font-size: 1.2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
