/* ============================================================
   Yousef Alsihli. Single column, deliberately plain.
   ============================================================ */

:root {
  --gold:        #d8b56b;
  --gold-strong: #e6c885;
  --gold-dim:    rgba(216, 181, 107, .12);
  --gold-line:   rgba(216, 181, 107, .30);

  --bg:      #0a0c0f;
  --surface: #12161d;
  --border:  #21262f;
  --hair:    #1a1f27;
  --text:    #e9ecf1;
  --muted:   #949eac;

  --wrap: 700px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --gold:        #8d6817;
  --gold-strong: #74540e;
  --gold-dim:    rgba(141, 104, 23, .09);
  --gold-line:   rgba(141, 104, 23, .28);

  --bg:      #fcfbf8;
  --surface: #ffffff;
  --border:  #e2ddd1;
  --hair:    #ebe7dc;
  --text:    #14181e;
  --muted:   #5a6470;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.68 var(--sans);
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--gold); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .18s, color .18s; }
a:hover { color: var(--gold-strong); border-bottom-color: var(--gold-line); }

strong, b { font-weight: 600; color: var(--text); }
em { font-style: italic; }

svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

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

.wrap { width: min(100% - 44px, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 50;
  background: var(--gold); color: #0a0c0f; padding: 10px 16px;
  border-radius: 8px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- top bar ---------- */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  width: min(100% - 44px, var(--wrap)); margin-inline: auto;
  height: 74px; display: flex; align-items: center; justify-content: space-between;
}
.topbar__mark { color: var(--gold); font-size: 21px; line-height: 1; opacity: .85; }
.topbar__actions { display: flex; gap: 8px; }

.iconbtn {
  width: 34px; height: 34px; display: grid; place-items: center;
  padding: 8px; border: 1px solid var(--border); border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.iconbtn:hover { color: var(--gold); border-color: var(--gold-line); background: var(--gold-dim); }
.iconbtn svg { grid-area: 1 / 1; }

[data-theme="dark"]  .i-sun  { display: block; }
[data-theme="dark"]  .i-moon { display: none; }
[data-theme="light"] .i-sun  { display: none; }
[data-theme="light"] .i-moon { display: block; }

/* ============================================================
   INTRO
   ============================================================ */
.intro { padding: 132px 0 12px; }

.intro h1 { font-size: clamp(34px, 6vw, 46px); font-weight: 700; letter-spacing: -.04em; margin-bottom: 8px; }

.intro__role {
  font: 500 12px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 30px;
}

.intro__bio p { font-size: 17px; color: var(--muted); }
.intro__bio p:first-child { color: var(--text); }

.intro__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.intro__links a {
  display: inline-block; padding: 7px 15px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text);
  transition: border-color .2s, color .2s, background .2s;
}
.intro__links a:hover { color: var(--gold); border-color: var(--gold-line); background: var(--gold-dim); }

/* ============================================================
   BLOCKS
   ============================================================ */
.block { padding: 52px 0 0; }

.block__title {
  font: 500 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
  padding-bottom: 14px; margin-bottom: 30px; border-bottom: 1px solid var(--border);
}

/* ---------- projects ---------- */
.projects { display: grid; gap: 46px; }

.project { position: relative; }
.project + .project { border-top: 1px solid var(--hair); padding-top: 46px; }

.project__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.project__head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.project__year { margin-inline-start: auto; font: 400 12px/1 var(--mono); color: var(--muted); flex-shrink: 0; }

.project__one { color: var(--gold); font-size: 15.5px; margin-bottom: 14px; }

.project p { font-size: 15.4px; color: var(--muted); }

.stat {
  font-size: 14px; color: var(--muted);
  border-inline-start: 2px solid var(--gold-line);
  padding: 2px 0 2px 14px; margin: 0 0 16px;
}
.stat b { color: var(--gold); font-weight: 600; }

.out { font: 400 13px/1 var(--mono); letter-spacing: .01em; }

/* ---------- roles ---------- */
.roles { display: grid; gap: 34px; }

.role__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.role__head h3 { font-size: 17.5px; font-weight: 600; }
.role__head a { color: var(--gold); }
.role__date { margin-inline-start: auto; font: 400 12px/1 var(--mono); color: var(--muted); flex-shrink: 0; }

.role__note { font-size: 15.2px; color: var(--muted); margin: 0; }

.bullets { display: grid; gap: 8px; }
.bullets li { position: relative; padding-inline-start: 18px; font-size: 15.2px; color: var(--muted); }
.bullets li::before {
  content: ""; position: absolute; inset-inline-start: 1px; top: .68em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .55;
}

/* ---------- tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tags li {
  font: 400 12px/1 var(--mono);
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
  color: var(--muted); background: var(--surface);
}

/* ---------- skills ---------- */
.skills { display: grid; gap: 26px; }
.skillset h3 {
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.skillset .tags { margin-bottom: 0; }

/* ---------- footer ---------- */
.footer { padding: 64px 0 56px; margin-top: 56px; border-top: 1px solid var(--border); }
.footer p { margin: 0 0 5px; font-size: 14px; color: var(--muted); }
.footer__fine { margin-top: 16px; font-size: 12.5px; opacity: .7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .wrap, .topbar { width: min(100% - 32px, var(--wrap)); }
  .intro { padding-top: 108px; }
  .block { padding-top: 42px; }
  .projects { gap: 38px; }
  .project + .project { padding-top: 38px; }

  .project__head, .role__head { flex-wrap: wrap; gap: 4px 12px; }
  .project__year, .role__date { margin-inline-start: 0; width: 100%; order: -1; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  :root {
    --bg: #fff; --surface: #fff; --border: #ccc; --hair: #ddd;
    --text: #000; --muted: #333;
    --gold: #6f5310; --gold-strong: #6f5310; --gold-dim: transparent; --gold-line: #b0985a;
  }
  @page { margin: 15mm; }

  body { font-size: 10pt; background: #fff; color: #000; }
  .wrap { width: 100%; }

  .topbar, .skip-link, .footer__fine { display: none !important; }

  .intro { padding-top: 0; }
  .intro h1 { font-size: 26pt; }
  .intro__bio p { font-size: 10pt; }
  .intro__links { gap: 6px; }
  .intro__links a { border: 0; padding: 0 10px 0 0; font-size: 9pt; }

  .block { padding-top: 20px; }
  .block__title { margin-bottom: 16px; }

  .projects { gap: 20px; }
  .project + .project { padding-top: 20px; border-top: 1px solid #e5e5e5; }
  .project, .role { break-inside: avoid; page-break-inside: avoid; }
  .projects, .roles { gap: 18px; }

  .footer { padding: 20px 0 0; margin-top: 24px; }
  a { color: #000; text-decoration: none; }
  .out { color: #444; }
}
