/* =========================================================
   Harbor Community Collective — styles
   Token system: see the :root block for colors/type. Change
   colors there and they'll update everywhere on the page.
   ========================================================= */

:root {
  --bg: #F9F3E4;          /* warm oat page background */
  --cream-card: #FFFDF8;  /* lighter panel background */
  --ink: #2B2A25;         /* warm near-black text */
  --forest: #2E4A3D;      /* primary deep green */
  --forest-dark: #22392F;
  --gold: #E3A23B;        /* warm accent */
  --clay: #B65B3D;        /* secondary accent, used sparingly */
  --line: #DDD2B8;        /* hairline divider */
  --muted: #6B6555;       /* secondary text */

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-amharic: "Noto Sans Ethiopic", "Work Sans", sans-serif;

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--forest-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: var(--forest); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

/* ---------------- Header ---------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest-dark);
  text-decoration: none;
}

.brand-logo {
  height: 48px;
  width: 48px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.site-nav a:hover {
  border-color: var(--clay);
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}

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

.btn-ghost {
  background: transparent;
  color: var(--forest-dark);
  border-color: var(--forest-dark);
}
.btn-ghost:hover { background: rgba(46,74,61,0.06); }

.btn-facebook {
  background: var(--clay);
  color: #fff;
}
.btn-facebook:hover { background: #9c4c33; }

.fb-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* ---------------- Hero ---------------- */

.hero { padding: 72px 0 88px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-highlight { color: var(--clay); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------------- Hero bulletins (Norsk / Etio) ---------------- */

.hero-bulletins {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 22px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  max-width: 46ch;
}

.hero-bulletins li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-bulletins li + li {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.bulletin-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clay);
}

.bulletin-text {
  color: var(--ink);
  font-size: 0.98rem;
}

.bulletin-am .bulletin-text {
  font-family: var(--font-amharic);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  height: auto;
  max-width: 320px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 8px 28px rgba(46, 74, 61, 0.18);
}

/* ---------------- About ---------------- */

.about {
  background: var(--cream-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-figure {
  border-radius: 6px;
  overflow: hidden;
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
}

.about-copy p { color: var(--ink); }

.about-stats {
  display: flex;
  gap: 40px;
  margin: 32px 0 0;
  flex-wrap: wrap;
}

.stat dt {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--forest-dark);
}

/* ---------------- Vilkår / terms ---------------- */

.terms {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.terms h3 {
  margin-bottom: 18px;
}

.terms-lang {
  margin-bottom: 24px;
}

.terms-lang:last-child {
  margin-bottom: 0;
}

.terms-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--clay);
  margin-bottom: 6px;
  max-width: none;
}

.terms-am {
  font-family: var(--font-amharic);
  direction: ltr;
}

.terms-am p:not(.terms-label) {
  font-size: 1.05rem;
  line-height: 1.8;
}

.terms-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.terms-list li {
  margin-bottom: 8px;
}

.terms-list li:last-child {
  margin-bottom: 0;
}

.terms-am .terms-list {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---------------- Get involved ---------------- */

.involved { padding: 80px 0; }

.involved-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.involved-copy p { color: var(--muted); }

.involved-list ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
}

.involved-list li { margin-bottom: 10px; }

/* ---------------- Join / signup ---------------- */

.join {
  background: var(--forest-dark);
  color: #F3EFE3;
  padding: 80px 0 88px;
}

.join h2 { color: #fff; }

.join p {
  color: #CBD3C7;
  max-width: 56ch;
}

.signup-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  max-width: 480px;
}

.signup-form input {
  flex: 1 1 240px;
  padding: 13px 16px;
  border-radius: 3px;
  border: 1px solid #4C6357;
  background: #F9F3E4;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.signup-form input::placeholder { color: #8a8571; }

.join .btn-primary {
  background: var(--gold);
  color: var(--forest-dark);
  font-weight: 600;
}
.join .btn-primary:hover { background: #d4922e; }

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  min-height: 1.4em;
  color: var(--gold);
}

/* ---------------- Registreringsside ---------------- */

.register {
  padding: 72px 0 96px;
  min-height: 60vh;
}

.register-inner {
  display: flex;
  justify-content: center;
}

.register-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 44px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(43, 42, 37, 0.06);
}

.register-card p {
  color: var(--muted);
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest-dark);
}

.form-row input {
  padding: 12px 14px;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-row input:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.register-form .btn {
  margin-top: 6px;
  align-self: flex-start;
}

.register-card .form-status {
  color: var(--clay);
}

.register-back {
  margin-top: 24px;
  margin-bottom: 0;
}

.register-back a {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: underline;
}

/* ---------------- Footer ---------------- */

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner p {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-inner a {
  color: var(--muted);
  text-decoration: underline;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 800px) {
  .hero-inner,
  .about-inner,
  .involved-inner {
    grid-template-columns: 1fr;
  }
  .hero-art { order: -1; max-width: 260px; margin: 0 auto; }
  .site-nav { gap: 16px; }
  .about-stats { gap: 28px; }
}

@media (max-width: 480px) {
  .site-nav a { font-size: 0.85rem; }
  .hero { padding: 48px 0 56px; }
  .about, .involved, .join { padding: 56px 0; }
  .register { padding: 48px 0 64px; }
  .register-card { padding: 32px 24px; }
}
