/* HubWorkerDesk.club — service-first editorial */

:root {
  --bg: #f7f6f3;
  --bg-panel: #ffffff;
  --text: #1a1a18;
  --text-muted: #4d4d47;
  --accent: #2f5d50;
  --accent-soft: #e8f0ed;
  --border: #dcd9d2;
  --radius: 6px;
  --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --measure: 38rem;
  --measure-wide: 48rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
}

.site-title a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.hero {
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--border);
}

.hero__label {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  max-width: var(--measure-wide);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: var(--measure-wide);
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--secondary:hover {
  background: var(--accent-soft);
  text-decoration: none;
}

.hero__note {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: var(--measure);
  margin: 0;
}

.section {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  font-weight: 600;
}

.section__intro {
  max-width: var(--measure-wide);
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.help-grid {
  display: grid;
  gap: 1rem;
  max-width: var(--measure-wide);
}

.help-grid ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.help-grid li {
  margin-bottom: 0.45rem;
}

.pathways {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: var(--measure-wide);
}

.pathway {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.pathway:first-child {
  border-top: none;
  padding-top: 0;
}

.pathway h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.pathway__intro {
  font-size: 0.95rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.pathway p {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  max-width: var(--measure);
}

.pathway__links {
  font-size: 0.95rem;
}

.process-list {
  max-width: var(--measure);
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.process-list li {
  margin-bottom: 0.75rem;
}

.notes-featured {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  max-width: var(--measure-wide);
}

.notes-featured h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.notes-featured p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.notes-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure-wide);
}

.notes-stack li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.notes-stack li:first-child {
  padding-top: 0;
}

.notes-stack h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.notes-stack h3 a {
  color: var(--text);
  text-decoration: none;
}

.notes-stack h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.notes-stack .summary {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.read-link {
  font-size: 0.92rem;
}

.archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.archive-list li {
  margin-bottom: 0.55rem;
}

.archive-list a {
  color: var(--text);
  text-decoration: none;
}

.archive-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 20rem);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 720px) {
  .contact-block {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-panel);
}

.contact-form textarea {
  min-height: 7rem;
  resize: vertical;
}

.contact-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-meta p {
  margin: 0 0 0.65rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  margin-top: 0;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.site-footer__inner p {
  margin: 0 0 0.75rem;
  max-width: var(--measure-wide);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
}

/* Page shell (inner pages) */
.page-hero {
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.65rem;
}

.page-hero .lede {
  margin: 0;
  max-width: var(--measure);
  color: var(--text-muted);
}

.narrow {
  max-width: var(--measure);
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.article-meta a {
  color: var(--text-muted);
}

.article-body h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
}

.article-body p {
  margin: 0 0 1rem;
}

.privacy-section {
  margin-bottom: 1.75rem;
}

.privacy-section h2 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.privacy-section p,
.privacy-section ul {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
}

.related ul {
  margin: 0;
  padding-left: 1.2rem;
}

.thank-links {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.thank-links li {
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav ul {
    display: none;
    position: absolute;
    right: 1.25rem;
    left: 1.25rem;
    top: 3.5rem;
    flex-direction: column;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    gap: 0.5rem;
    z-index: 20;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }
}
