/* Gojjo Labs. Plain CSS, no framework. Font rules are inserted by build.js. */
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Noto Sans Bold"), url("/fonts/NotoSans-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Noto Sans Regular"), url("/fonts/NotoSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local("Noto Sans Ethiopic Bold"), url("/fonts/NotoSansEthiopic-Bold.woff2") format("woff2");
  unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF;
}
@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Noto Sans Ethiopic Regular"), url("/fonts/NotoSansEthiopic-Regular.woff2") format("woff2");
  unicode-range: U+1200-139F, U+2D80-2DDF, U+AB00-AB2F, U+1E7E0-1E7FF;
}
@font-face {
  font-family: "Noto Sans Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Noto Sans Mono Regular"), url("/fonts/NotoSansMono-Regular.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --fg: #1b1b1b;
  --muted: #4a4a4a;
  --line: #d4d4d4;
  --soft: #f4f4f2;
  --link: #1d4f91;
  --link-hover: #12345f;
  --focus: #1d4f91;
  --todo-bg: #fff3c4;
  --todo-fg: #3a2c00;
  --todo-line: #9a7400;
  --ok: #1d5c2a;
  --err: #a11c1c;
  --font: "Noto Sans", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", Roboto, "Nyala", "Ebrima", Arial, sans-serif;
  --font-mono: "Noto Sans Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --wrap: 68rem;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --fg: #ececec;
    --muted: #b8b8b8;
    --line: #3d3d3d;
    --soft: #1e1e1e;
    --link: #9cc2ff;
    --link-hover: #cadcff;
    --focus: #9cc2ff;
    --todo-bg: #3b3100;
    --todo-fg: #fff0b3;
    --todo-line: #d8b23a;
    --ok: #93d6a2;
    --err: #ffb0b0;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Ge'ez script reads better with a little more line height. */
body:lang(am) { line-height: 1.85; font-size: 1.125rem; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
:lang(am) h1, :lang(am) h2, :lang(am) h3 { line-height: 1.45; }
h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
li + li { margin-top: 0.3em; }
code, kbd { font-family: var(--font-mono); font-size: 0.92em; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
main:focus { outline: none; }

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

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

.skip-link {
  position: absolute; left: 0.5rem; top: -100px; z-index: 10;
  background: var(--fg); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.5rem; color: var(--bg); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem;
  padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em;
  color: var(--fg); text-decoration: none; margin-inline-end: auto;
}
.wordmark:hover { color: var(--fg); text-decoration: underline; }
.site-nav ul, .lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 0.25rem; }
.site-nav li + li, .lang-switch li + li { margin-top: 0; }
.site-nav a, .lang-switch a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  padding: 0 0.6rem; color: var(--fg); text-decoration: none; border-radius: var(--radius);
}
.site-nav a:hover, .lang-switch a:hover { text-decoration: underline; color: var(--fg); }
.site-nav a[aria-current="page"] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; }
.lang-switch ul { border: 1px solid var(--line); border-radius: var(--radius); }
.lang-switch a[aria-current="true"] { background: var(--soft); font-weight: 700; }

@media (max-width: 52rem) {
  .header-inner { gap: 0 0.5rem; }
  .site-nav { order: 3; flex-basis: 100%; }
  .site-nav ul { margin-inline-start: -0.6rem; }
}

.draft-notice { background: var(--todo-bg); color: var(--todo-fg); border-bottom: 1px solid var(--todo-line); padding: 0.6rem 0; font-size: 0.95rem; }

/* Sections */
main { display: block; }
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--soft { background: var(--soft); }
.hero { padding: 3.5rem 0 3rem; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.prose > * { max-width: 44rem; }
.small { font-size: 0.95rem; color: var(--muted); }
.eyebrow { font-size: 0.95rem; font-weight: 700; color: var(--muted); margin-bottom: 0.4em; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; background: var(--bg); display: flex; flex-direction: column; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 0.4em; }
.card .more { margin-top: auto; padding-top: 0.5rem; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 3rem; margin: 0; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 2rem; height: 2rem; border: 2px solid var(--fg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem;
}
.steps h3 { margin-bottom: 0.2em; }

.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(10rem, 14rem) 1fr; gap: 0.5rem 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 40rem) { .facts div { grid-template-columns: 1fr; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0.55rem 1.2rem; border: 2px solid var(--fg); border-radius: var(--radius);
  background: var(--fg); color: var(--bg); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--bg); color: var(--fg); }
.button--secondary { background: transparent; color: var(--fg); }
.button--secondary:hover { background: var(--fg); color: var(--bg); }
.button:disabled { opacity: 0.6; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Owner TODO markers: visible on purpose, remove them before launch */
.todo { background: var(--todo-bg); color: var(--todo-fg); border-inline-start: 4px solid var(--todo-line); padding: 0.8rem 1rem; margin: 0 0 1.25rem; border-radius: var(--radius); font-size: 0.95rem; }
.todo > :last-child { margin-bottom: 0; }
.todo ul { margin: 0.4em 0 0; }
.todo-inline { background: var(--todo-bg); color: var(--todo-fg); padding: 0 0.25em; }

/* Contact form */
.contact-form { max-width: 38rem; margin: 1.5rem 0; }
.contact-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 44px; padding: 0.55rem 0.7rem;
  font: inherit; color: var(--fg); background: var(--bg);
  border: 1px solid var(--muted); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 10rem; }
.hint { font-size: 0.92rem; color: var(--muted); margin: 0.3rem 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0.5rem 0 1rem; min-height: 65px; }
.form-status { margin: 1rem 0 0; min-height: 1.6em; font-weight: 700; }
.form-status:empty { display: none; }
.form-status--ok { color: var(--ok); }
.form-status--error { color: var(--err); }
.contact-fallback { font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; padding: 1.5rem 0; color: var(--muted); font-size: 0.95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header nav, .skip-link, .draft-notice { display: none; } body { font-size: 11pt; } }
