/* ---------------------------------------------------------------------------
   Md. Abdur Rahman Shibly — academic homepage
   Single stylesheet. No framework, no build step, no JavaScript.
   All paths relative: this site is served from a ~user subpath, not a domain
   root, so a leading slash would 404.
   --------------------------------------------------------------------------- */

:root {
  --ink:        #1a1a1a;
  --ink-soft:   #43474e;
  --ink-faint:  #6b7280;

  /* University of Florida palette */
  --uf-blue:    #0021a5;   /* 12.4:1 on white — safe for text        */
  --uf-blue-dk: #001a80;
  --uf-orange:  #fa4616;   /* 3.4:1 — decorative rules only, no text */
  --orange-dk:  #b8330c;   /* 5.3:1 — safe for hover text            */

  --rule:       #d8dce6;
  --rule-soft:  #eceef4;
  --bg:         #ffffff;
  --bg-soft:    #f4f6fb;
  --bg-tint:    #eef1fa;

  --accent:     var(--uf-blue);
  --accent-dk:  var(--uf-blue-dk);

  --measure:    46rem;
}

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

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

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  /* institutional bar across the very top */
  border-top: 5px solid var(--uf-blue);
  font-family: "Charter", "Bitstream Charter", "Sitka Text", Cambria,
               Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* --- skip link ----------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* --- layout -------------------------------------------------------------- */

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

.site-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  padding: 2.25rem 0 0;
  margin-bottom: 2.5rem;
}

.site-header .wrap > .name {
  margin: 0 0 0.15rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.site-header .name a {
  color: var(--uf-blue);
  text-decoration: none;
}
.site-header .name a:hover,
.site-header .name a:focus {
  color: var(--accent);
}

.site-header .role {
  margin: 0 0 1.25rem;
  color: var(--ink-faint);
  font-size: 0.9375rem;
}

/* --- navigation ---------------------------------------------------------- */

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.site-nav a[aria-current="page"] {
  color: var(--uf-blue);
  font-weight: 700;
  border-bottom-color: var(--uf-orange);
}

/* --- typography ---------------------------------------------------------- */

main { padding-bottom: 3rem; }

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--uf-blue);
  /* short orange bar rather than a full-width rule: same idiom as h2 below,
     just heavier, so the two headings read as one system */
  background-image: linear-gradient(to right, var(--uf-orange) 0 4rem, transparent 4rem);
  background-size: 100% 4px;
  background-position: left bottom;
  background-repeat: no-repeat;
}

/* Section rule: a short orange lead-in against a longer grey line, drawn with
   a background gradient so it needs no extra markup. */
h2 {
  font-size: 1.1875rem;
  margin: 2.75rem 0 0.9rem;
  padding-bottom: 0.4rem;
  letter-spacing: -0.005em;
  color: var(--uf-blue);
  border-bottom: 2px solid var(--rule);
  background-image: linear-gradient(to right, var(--uf-orange) 0 2.5rem, transparent 2.5rem);
  background-size: 100% 2px;
  background-position: left bottom;
  background-repeat: no-repeat;
}

h3 {
  font-size: 1.0625rem;
  margin: 0 0 0.2rem;
  color: var(--ink);
}

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover, a:focus {
  color: var(--orange-dk);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink);
}

/* --- headshot slot -------------------------------------------------------
   No photo yet. When one is supplied, drop it in the <img> commented out in
   index.html; these rules are already wired up.
   ------------------------------------------------------------------------- */

.intro {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: flex-start;
}
.intro-text { flex: 1 1 20rem; min-width: 0; }

.headshot {
  flex: 0 0 auto;
  width: 11rem;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--rule);
}

/* --- entries (research, projects, positions) ----------------------------- */

.entry {
  margin: 0 0 1.75rem;
  padding: 0 0 1.5rem 1rem;
  border-bottom: 1px solid var(--rule-soft);
  border-left: 3px solid var(--rule);
}
.entry:hover {
  border-left-color: var(--uf-orange);
}
.entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1rem;
}

.entry-date {
  color: var(--uf-blue-dk);
  background: var(--bg-tint);
  border-radius: 2px;
  padding: 0.05rem 0.45rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.entry-kind {
  color: var(--ink-faint);
  font-size: 0.9375rem;
  font-style: italic;
  margin: 0 0 0.5rem;
}

.entry p { margin: 0 0 0.6rem; }

.meta {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}
.meta strong { color: var(--uf-blue-dk); }
.meta:last-child { margin-bottom: 0; }

/* --- publication --------------------------------------------------------- */

.pub { margin: 0 0 1.5rem; }
.pub-cite { margin: 0 0 0.4rem; }
.pub-authors { font-style: normal; }
.pub-venue { font-style: italic; }
.pub-links {
  font-size: 0.9375rem;
  margin: 0;
}
.pub-links a + a { margin-left: 0.85rem; }

/* --- interests / tags ---------------------------------------------------- */

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tags li {
  background: var(--bg-tint);
  border: 1px solid #ccd4ee;
  border-left: 3px solid var(--uf-blue);
  border-radius: 2px;
  padding: 0.25rem 0.6rem;
  font-size: 0.875rem;
  color: var(--uf-blue-dk);
}

/* --- contact list -------------------------------------------------------- */

.contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact li {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
}
.contact .label {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--uf-blue);
  font-weight: 600;
}

/* --- footer -------------------------------------------------------------- */

.site-footer {
  background: var(--bg-soft);
  border-top: 3px solid var(--uf-blue);
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}
.site-footer p { margin: 0; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .site-header { padding-top: 1.75rem; margin-bottom: 2rem; }
  h1 { font-size: 1.5rem; }
  h2 { margin-top: 2.25rem; }
  .site-nav ul { gap: 0 1.1rem; }
  .entry-head { flex-direction: column; }
  .entry-date { white-space: normal; }
  .contact .label { min-width: 0; display: block; }
  .headshot { width: 8.5rem; }
}

@media (min-width: 64rem) {
  .wrap { padding: 0 1.5rem; }
}

/* --- print --------------------------------------------------------------- */

@media print {
  .site-nav, .skip-link { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}
