/* =========================================================
   TibebWorks — shared stylesheet
   Edit colours and fonts in the :root block below.
   Every page uses this one file.
   ========================================================= */

:root {
  /* Colours (light mode) */
  --paper: #FBFAF6;      /* page background */
  --surface: #FFFFFF;    /* cards */
  --ink: #17201B;        /* main text */
  --muted: #5C665F;      /* secondary text */
  --line: #E3E4DD;       /* borders */
  --accent: #1F5C43;     /* buttons and links (deep green) */
  --accent-ink: #FFFFFF; /* text on accent */
  --thread-gold: #C8962E;/* tibeb band colours */
  --thread-red: #B23A2A;
  --thread-green: #1F5C43;

  /* Fonts */
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
  --geez: 'Noto Sans Ethiopic', 'Abyssinica SIL', 'Nyala', serif;

  color-scheme: light;
}

/* Dark mode follows the visitor's device setting */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1311;
    --surface: #171C19;
    --ink: #E8ECE8;
    --muted: #9AA49D;
    --line: #29302B;
    --accent: #7CC59A;
    --accent-ink: #0C1A12;
    --thread-gold: #D9AE52;
    --thread-red: #E07A63;
    --thread-green: #7CC59A;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- The tibeb band (woven border motif) ---------- */
.tibeb {
  height: 22px;
  background:
    linear-gradient(135deg, var(--thread-gold) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(225deg, var(--thread-gold) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(315deg, var(--thread-red) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(45deg, var(--thread-red) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--thread-green);
}
.tibeb.thin { height: 10px; background-size: 10px 10px; }

/* ---------- Header ---------- */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
section { padding-block: 72px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 20px; color: var(--muted); max-width: 36ch; }

/* Hero */
.hero { padding-block: 64px 80px; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); font-weight: 700; margin: 14px 0 22px; max-width: 14ch; }
.hero .lead { margin: 0 0 32px; }

/* Meaning */
.meaning { border-top: 1px solid var(--line); }
.meaning .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.geez { font-family: var(--geez); font-size: clamp(72px, 14vw, 150px); line-height: 1; color: var(--accent); margin: 0; }
.say { color: var(--muted); margin-top: 8px; }
.meaning p { max-width: 58ch; }

/* What we make */
.make h2, .how h2, .contact h2 { font-size: clamp(30px, 5vw, 44px); margin: 10px 0 32px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.card .tibeb.thin { border-radius: 4px; width: 48px; margin-bottom: 18px; }

/* How we work */
.how { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps b { display: block; font-family: var(--display); font-size: 20px; margin-bottom: 6px; }
.steps span { color: var(--muted); }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.mail { font-family: var(--display); font-size: clamp(24px, 4.5vw, 40px); font-weight: 700; word-break: break-all; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 28px; font-size: 14px; color: var(--muted); }
.site-foot a { color: var(--muted); }

/* ---------- Family area ---------- */
.family-hero { padding-block: 48px 24px; }
.family-hero h1 { font-size: clamp(36px, 7vw, 60px); margin: 10px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding-bottom: 48px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; min-height: 160px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px;
  text-decoration: none; color: var(--ink);
}
a.tile:hover { border-color: var(--accent); }
.tile h2 { font-size: 24px; }
.tile p { margin: 0; color: var(--muted); }
.tile .go { margin-top: auto; font-weight: 700; color: var(--accent); }
.tile.soon { opacity: 0.6; }
.note { font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 48px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  section { padding-block: 52px; }
  .meaning .grid, .cards, .steps { grid-template-columns: 1fr; gap: 20px; }
}
