/* Loom of Hope — P0 craft-warm, flat (no gradients/shadows) */

:root {
  --loom-bg: #f6f2eb;
  --loom-bg-alt: #efe8dc;
  --loom-text: #2a2622;
  --loom-text-muted: #5c554c;
  --loom-accent: #b85c42;
  --loom-accent-hover: #9a4a34;
  --loom-sage: #5f7d62;
  --loom-border: #d4cbc0;
  --loom-focus: #2a2622;
  --loom-max: 72rem;
  --loom-font: "Segoe UI", system-ui, -apple-system, Ubuntu, Cantarell, sans-serif;
  --loom-font-display: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--loom-font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--loom-text);
  background-color: var(--loom-bg);
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 3px,
    rgba(42, 38, 34, 0.02) 3px,
    rgba(42, 38, 34, 0.02) 4px
  );
}

a {
  color: var(--loom-accent);
}

a:hover {
  color: var(--loom-accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--loom-focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  border-bottom: 1px solid var(--loom-border);
  background: var(--loom-bg-alt);
}

.site-header__inner {
  max-width: var(--loom-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.site-logo {
  font-family: var(--loom-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--loom-text);
}

.site-logo span {
  color: var(--loom-sage);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--loom-text);
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--loom-accent);
  color: var(--loom-text);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--loom-sage);
  font-weight: 600;
}

.site-nav .nav-cta a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--loom-accent);
  border-radius: 2px;
  color: var(--loom-accent);
  font-weight: 600;
}

.site-nav .nav-cta a:hover {
  background: var(--loom-accent);
  color: #fff;
  border-bottom-color: transparent;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--loom-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.site-footer {
  border-top: 1px solid var(--loom-border);
  background: var(--loom-bg-alt);
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--loom-max);
  margin: 0 auto;
  padding: 1.25rem;
  font-size: 0.875rem;
  color: var(--loom-text-muted);
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.hero {
  padding: 1rem 0 2rem;
  border-bottom: 1px solid var(--loom-border);
  margin-bottom: 2rem;
}

.hero h1 {
  font-family: var(--loom-font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.hero .primary-line {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--loom-sage);
  margin: 0 0 0.75rem;
}

.hero .subline {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  color: var(--loom-text-muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--loom-accent);
  color: #fff;
  border-color: var(--loom-accent);
}

.btn-primary:hover {
  background: var(--loom-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--loom-text);
  border-color: var(--loom-border);
}

.btn-secondary:hover {
  border-color: var(--loom-sage);
  color: var(--loom-sage);
}

.section {
  margin-bottom: 2.5rem;
}

.section h2 {
  font-family: var(--loom-font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.section-intro {
  color: var(--loom-text-muted);
  max-width: 40rem;
  margin: 0 0 1rem;
}

.warp-list {
  margin: 0;
  padding-left: 1.25rem;
}

.warp-list li {
  margin-bottom: 0.5rem;
}

.callout {
  padding: 0.85rem 1rem;
  border: 1px solid var(--loom-border);
  background: var(--loom-bg-alt);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.callout strong {
  color: var(--loom-accent);
}

.sample-banner {
  border: 1px dashed var(--loom-sage);
  background: rgba(95, 125, 98, 0.08);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.weave-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .weave-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
  }
}

#map {
  min-height: 320px;
  border: 1px solid var(--loom-border);
  background: var(--loom-bg-alt);
}

@media (min-width: 768px) {
  #map {
    min-height: 420px;
  }
}

.thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--loom-border);
  background: #fff;
}

.thread-list li {
  border-bottom: 1px solid var(--loom-border);
  padding: 0.85rem 1rem;
}

.thread-list li:last-child {
  border-bottom: none;
}

.thread-list h3 {
  font-size: 1rem;
  margin: 0 0 0.25rem;
}

.thread-meta {
  font-size: 0.8125rem;
  color: var(--loom-sage);
  text-transform: capitalize;
  margin-bottom: 0.35rem;
}

.thread-list p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--loom-text-muted);
}

.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.media-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--loom-border);
}

.media-list a {
  font-weight: 600;
}

.media-list .note {
  display: block;
  font-size: 0.875rem;
  color: var(--loom-text-muted);
  margin-top: 0.25rem;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-list li {
  margin-bottom: 0.65rem;
}

.gather-details {
  border: 1px solid var(--loom-border);
  padding: 1rem 1.25rem;
  background: var(--loom-bg-alt);
}

.gather-details dt {
  font-weight: 600;
  margin-top: 0.75rem;
}

.gather-details dt:first-child {
  margin-top: 0;
}

.gather-details dd {
  margin: 0.25rem 0 0;
  color: var(--loom-text-muted);
}

.matrix-room {
  border: 1px solid var(--loom-border);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: #fff;
}

.matrix-room h3 {
  font-family: var(--loom-font-display);
  font-size: 1.125rem;
  margin: 0 0 0.35rem;
}

.matrix-room__meta {
  font-size: 0.8125rem;
  color: var(--loom-sage);
  margin: 0 0 0.5rem;
}

.matrix-room__pending {
  font-size: 0.875rem;
  color: var(--loom-text-muted);
}

.matrix-steps {
  margin: 0;
  padding-left: 1.25rem;
}

.matrix-steps li {
  margin-bottom: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
