/* ============================================================
   Mohammed Usrof — mohammedusrof.com
   One font. One colour. Paper, ink, and rules.
   Newsreader (Google Fonts) · ink #211f1a · paper #faf7f0 · olive #4a5a2a
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  font-optical-sizing: auto;
  background: #faf7f0;
  color: #211f1a;
  line-height: 1.65;
}

.wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: #4a5a2a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #2f3a1a; }

ul { list-style: none; }

em { font-style: italic; }
strong { font-weight: 600; }


/* ------------------------------------------------------------
   Masthead
   ------------------------------------------------------------ */
.masthead {
  padding: 2.75rem 0 0;
  border-bottom: 1px solid #211f1a;
  margin-bottom: 2.5rem;
}

.site-name {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #211f1a;
  text-decoration: none;
  display: inline-block;
  line-height: 1.1;
}

.site-name:hover { color: #211f1a; }

.site-line {
  font-size: 0.95rem;
  font-style: italic;
  color: #6b6759;
  margin: 0.35rem 0 1.4rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  padding-bottom: 0.8rem;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6759;
  text-decoration: none;
}

.site-nav a:hover { color: #211f1a; }

.site-nav a[aria-current="page"] {
  color: #211f1a;
  border-bottom: 2px solid #4a5a2a;
  padding-bottom: 2px;
}


/* ------------------------------------------------------------
   Headings & intro
   ------------------------------------------------------------ */
h1 {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.75rem 0 0.9rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.intro p {
  font-size: 1.1rem;
  margin-bottom: 1.1rem;
}

.intro .now {
  font-size: 0.95rem;
  color: #494639;
  border-top: 1px solid #ddd7c8;
  padding-top: 1.1rem;
}

.page-intro {
  font-size: 1rem;
  color: #494639;
  margin-bottom: 2rem;
  max-width: 60ch;
}

.writing { margin-top: 3rem; }


/* ------------------------------------------------------------
   Entry lists — the heart of the site
   ------------------------------------------------------------ */
.entry-list { margin-bottom: 1.5rem; }

.entry {
  padding: 1.1rem 0;
  border-bottom: 1px solid #e4dfd2;
}

.entry-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8574;
  margin-bottom: 0.2rem;
}

.entry-title {
  display: block;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.4;
  color: #211f1a;
}

a.entry-title { color: #211f1a; }
a.entry-title:hover { color: #4a5a2a; }

.entry-venue {
  display: block;
  font-size: 0.92rem;
  font-style: italic;
  color: #6b6759;
  margin-top: 0.2rem;
}

.entry-venue em { font-style: normal; }

.more { margin-top: 1.5rem; font-size: 0.98rem; }


/* ------------------------------------------------------------
   Home intro portrait
   ------------------------------------------------------------ */
.intro-row { display: flex; gap: 2rem; align-items: flex-start; }
.intro-row .intro-text { flex: 1 1 auto; }
.intro-row .intro-text p:last-child { margin-bottom: 0; }
.intro-portrait { flex: 0 0 132px; width: 132px; margin: 0; }
.intro-portrait img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd7c8;
  filter: grayscale(100%);
}


/* ------------------------------------------------------------
   Writing filter — topics and source (by / about)
   ------------------------------------------------------------ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.1rem;
  border-top: 1px solid #211f1a;
  border-bottom: 1px solid #e4dfd2;
  padding: 0.7rem 0;
}
.filter-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a8574;
}
.tag-btn {
  font-family: inherit;
  font-size: 0.9rem;
  color: #4a5a2a;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.tag-btn:hover { border-bottom-color: #4a5a2a; }
.tag-btn.on { color: #211f1a; border-bottom-color: #211f1a; font-weight: 600; }
.filter-spacer { flex: 1 1 auto; }
.source-toggle {
  display: inline-flex;
  border: 1px solid #ddd7c8;
  border-radius: 2px;
  overflow: hidden;
}
.source-toggle button {
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #6b6759;
  background: #faf7f0;
  border: none;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
}
.source-toggle button + button { border-left: 1px solid #ddd7c8; }
.source-toggle button.on { background: #4a5a2a; color: #faf7f0; }
.filter-count {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8574;
  margin: 0.55rem 0 0.1rem;
}
.entry-tags { display: block; margin-top: 0.4rem; }
.entry-tags i {
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9a9482;
  margin-right: 0.9rem;
}
.entry-tags i.tag-kind { color: #c2bcab; }


/* ------------------------------------------------------------
   Work page themes
   ------------------------------------------------------------ */
.theme { margin-bottom: 2.5rem; }

.theme h2 {
  border-top: 2px solid #211f1a;
  padding-top: 1rem;
  margin-top: 2.25rem;
}

.theme-note {
  font-size: 0.95rem;
  color: #494639;
  max-width: 60ch;
  margin-bottom: 0.75rem;
}


/* ------------------------------------------------------------
   About
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: start;
}

.about-text p { margin-bottom: 1.1rem; }

.about-side .small,
.small {
  font-size: 0.88rem;
  color: #494639;
  line-height: 1.6;
}

.portrait-pending {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid #ddd7c8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: #8a8574;
  margin-bottom: 1rem;
}

.about-side img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
}

.cv-section { margin-top: 3rem; }

.cv-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #e4dfd2;
  font-size: 0.98rem;
}

.registry {
  margin-top: 3rem;
  border-top: 2px solid #211f1a;
  padding-top: 1rem;
}


/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  margin-top: 4.5rem;
  border-top: 1px solid #211f1a;
  padding: 1.5rem 0 3rem;
}

.site-footer p {
  font-size: 0.85rem;
  color: #6b6759;
}


/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  html { font-size: 16px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { order: -1; max-width: 260px; }
  .site-name { font-size: 1.7rem; }
  .intro-row { flex-direction: column-reverse; }
  .intro-portrait { width: 120px; }
  .filter-bar { gap: 0.5rem 0.9rem; }
}
