/* ===========================================================
   Huthifa Alomari — Portfolio Stylesheet
   Editorial / professional direction
   =========================================================== */

:root {
  --bg: #FBFBFA;
  --ink: #16181D;
  --ink-soft: #565C6B;
  --ink-faint: #8A90A0;
  --line: #E4E5E3;
  --accent: #1F3A5F;      /* deep navy */
  --accent-warm: #A6512E; /* muted brick — used once, sparingly */
  --panel: #F3F3F1;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
header.site-head {
  border-bottom: 1px solid var(--line);
}
.site-head-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.site-head .name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-head nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  margin-left: 28px;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.site-head nav a:hover,
.site-head nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 14px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero .role {
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.hero .role strong { color: var(--ink); font-weight: 600; }
.hero p.summary {
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.hero-photo {
  width: 190px;
  height: 190px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  justify-self: center;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(12%);
}

.hero-links {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  font-size: 14px;
}
.hero-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.hero-links a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- Sections ---------- */
.section {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
}
.section-head .section-body { min-width: 0; }

@media (max-width: 680px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Journey timeline spine ---------- */
.journey {
  border-left: 1px solid var(--line);
  margin-left: 3px;
  padding-left: 33px;
}
.journey .section {
  position: relative;
  border-top: none;
}
.journey .section + .section {
  border-top: 1px solid var(--line);
}
.journey .section::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 46px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-warm);
}

/* ---------- Background / courses ---------- */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.course-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.course-item:last-child { border-bottom: none; padding-bottom: 0; }
.course-item .course-name {
  font-weight: 600;
  font-size: 15.5px;
}
.course-item .course-desc {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 3px;
}
.course-item .course-status {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- Skills flow (soft skills) ---------- */
.skills-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 15px;
}
.skills-flow li { padding: 4px 0; }
.skills-flow li:not(:last-child)::after {
  content: "\2022";
  color: var(--ink-faint);
  margin: 0 14px;
}

/* ---------- Tools table ---------- */
table.tools {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.tools th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
}
table.tools td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.tools td.cat { color: var(--ink-soft); }
table.tools td a { text-decoration: none; border-bottom: 1px solid var(--line); }
table.tools td a:hover { border-bottom-color: var(--accent); }

/* ---------- Future statement ---------- */
.statement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  border-left: 2px solid var(--accent-warm);
  padding-left: 22px;
  margin: 0;
}

/* ---------- Contact line ---------- */
.contact-line {
  font-size: 16px;
}
.contact-line a {
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.contact-line a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Footer ---------- */
footer.site-foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 50px;
}
footer.site-foot .container {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---------- Contact form ---------- */
.page-head {
  padding: 60px 0 20px;
}
.page-head .eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 14px;
  font-weight: 600;
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 42px);
  margin: 0 0 14px;
}
.page-head p {
  color: var(--ink-soft);
  max-width: 52ch;
  font-size: 15.5px;
}

.form-wrap { padding: 20px 0 70px; }

.form-grid {
  display: grid;
  gap: 26px;
  max-width: 520px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field .req { color: var(--accent-warm); }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  padding: 8px 2px 10px;
  font-family: var(--font-body);
  font-size: 15px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--ink);
  outline: none;
}

.field.invalid input,
.field.invalid textarea {
  border-bottom-color: var(--accent-warm);
}
.error-msg {
  color: var(--accent-warm);
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}
.field.invalid .error-msg { display: block; }

.submit-btn {
  justify-self: start;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 13px 28px;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s ease;
}
.submit-btn:hover { background: var(--accent); }

@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { max-width: 220px; }
  .skills-list { columns: 1; }
}
