/* Wijha public site. Logical properties only; light and dark follow the system. */

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");
  unicode-range:
    U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF,
    U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC,
    U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --paper: #eef2ef;
  --surface: #ffffff;
  --ink: #12251f;
  --muted: #4a5f57;
  --rule: #cfdad4;
  --accent: #0d6650;
  --accent-ink: #ffffff;
  --accent-hover: #09503e;
  --chip: #e3ebe7;
  --prio: #8a3a12;
  --prio-bg: #f6e3d4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1b1e;
    --surface: #142729;
    --ink: #e2ede9;
    --muted: #a1b5ae;
    --rule: #26403f;
    --accent: #7fd4b9;
    --accent-ink: #0a2a22;
    --accent-hover: #a2e3cd;
    --chip: #1c3436;
    --prio: #f4bb93;
    --prio-bg: #3b2418;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.site-head,
main,
.site-foot {
  inline-size: 100%;
  max-inline-size: 42rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Header: the name carries the page. */
.site-head {
  padding-block: 2rem 1.25rem;
}

.wordmark {
  display: inline-block;
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.wordmark::after {
  content: "";
  display: block;
  block-size: 4px;
  inline-size: 2.25rem;
  margin-block-start: 0.375rem;
  border-radius: 2px;
  background: var(--accent);
}

.tagline {
  margin-block: 0.5rem 0;
  color: var(--muted);
}

.page-title {
  margin-block: 0.5rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
}

/* The queue: one thread down the start edge, a node per position, filled for priority. */
.queue {
  list-style: none;
  margin: 0;
  padding: 0;
  padding-inline-start: 1.125rem;
  border-inline-start: 2px solid var(--rule);
  display: grid;
  gap: 1rem;
}

.queue > li {
  position: relative;
}

.queue > li::before {
  content: "";
  position: absolute;
  inset-block-start: 1.375rem;
  inset-inline-start: calc(-1.125rem - 7px);
  inline-size: 12px;
  block-size: 12px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
}

.queue > li:has(.is-priority)::before {
  background: var(--prio);
  border-color: var(--prio);
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.125rem 1.125rem;
}

.card h2 {
  margin-block: 0.375rem 0.25rem;
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.5;
}

.card h2 a {
  color: inherit;
  text-decoration: none;
}

.card h2 a:hover {
  text-decoration: underline;
}

.summary {
  margin-block: 0 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.375rem;
}

.tags .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-inline-start: auto;
}

.tag {
  display: inline-block;
  padding-inline: 0.625rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.tag-priority {
  background: var(--prio-bg);
  color: var(--prio);
  font-weight: 600;
}

.skills {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.skills li {
  padding-inline: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.75;
}

.limits {
  margin-block: 0 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.applicants {
  margin-block: 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.cta {
  display: block;
  min-block-size: 3rem;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 1.0625rem;
  text-align: center;
  text-decoration: none;
}

.cta:hover {
  background: var(--accent-hover);
}

.cta:focus-visible {
  outline-color: var(--ink);
}

.cta-quiet {
  display: inline-block;
}

.disclosure {
  margin-block: 0.5rem 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.empty {
  padding: 1.5rem 1.125rem;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  color: var(--muted);
}

/* Position page */
.back {
  margin-block: 0 0.75rem;
  font-size: 0.9375rem;
}

.position h1,
.prose h1 {
  margin-block: 0.5rem 0.5rem;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.45;
}

.facts {
  margin-block: 0 1rem;
  padding: 1rem 1.125rem 0.25rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

.facts dt {
  color: var(--muted);
  font-size: 0.8125rem;
}

.facts dd {
  margin: 0 0 0.75rem;
}

.facts .skills {
  margin-block-end: 0;
}

.source {
  margin-block: 0 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* About and closed */
.prose h2 {
  margin-block: 1.5rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.prose p,
.prose ul {
  margin-block: 0 0.75rem;
}

.prose ul {
  padding-inline-start: 1.25rem;
}

.closed {
  padding-block: 1rem;
}

.site-foot {
  margin-block-start: 3rem;
  padding-block: 1.25rem 2rem;
  border-block-start: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

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

.site-foot nav {
  display: flex;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .site-head {
    padding-block-start: 3rem;
  }

  .wordmark {
    font-size: 3rem;
  }

  .card {
    padding: 1.25rem 1.5rem 1.5rem;
  }
}
