/* alameermd.com — calm editorial personal site. Newsreader (display) + Inter (text); IBM Plex Sans Arabic for AR. */
:root {
  --ink: #15171a;
  --ink-2: #2a2d31;
  --muted: #5d6066;
  --paper: #f7f4ef;
  --paper-2: #efe9e0;
  --white: #fffdf9;
  --line: rgba(21, 23, 26, .12);
  --accent: #1d4a42;
  --accent-2: #2f6b5f;
  --night: #101213;
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --wrap: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --r: 14px;
}
[lang="ar"] {
  --serif: 'IBM Plex Sans Arabic', 'Newsreader', Georgia, serif;
  --sans: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[lang="ar"] body { font-size: 18px; line-height: 1.9; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { font-weight: 500; letter-spacing: 0; }
p { margin: 0 0 1em; }
figure { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.k {
  font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 22px; display: flex; align-items: center; gap: 12px;
}
.k::before { content: ''; width: 22px; height: 1px; background: currentColor; }
[lang="ar"] .k { font-size: 14px; letter-spacing: 0; }
h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; margin-bottom: 20px; }
[lang="ar"] h2 { line-height: 1.4; }
.ar, .ext { width: 1em; height: 1em; vertical-align: -.12em; flex: none; }
.ext { width: .8em; height: .8em; margin-inline-start: .25em; opacity: .6; }
[dir="rtl"] .ar { transform: scaleX(-1); }
[dir="rtl"] .ext { transform: scaleX(-1); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px;
  border-radius: 999px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--accent); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: #e9e2d6; }
.btn-ghost { border-color: rgba(255, 255, 255, .38); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.tl { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: border-color .2s, gap .2s; }
.tl:hover { border-color: var(--ink); gap: 12px; }

/* header */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 239, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, color .3s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd-dark { position: fixed; inset-inline: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.hd-dark.scrolled { background: rgba(16, 18, 19, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255, 255, 255, .08); }
.hd-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 76px; display: flex; align-items: center; gap: 32px; }
.wm { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; white-space: nowrap; }
.wm-n { font: 400 25px/1 'Newsreader', Georgia, serif; letter-spacing: -.015em; }
.wm-md { font: 600 10.5px/1 var(--sans); letter-spacing: .2em; padding: 4px 0 4px 9px; border-inline-start: 1px solid currentColor; opacity: .75; }
[lang="ar"] .wm-n { font: 600 23px/1 'IBM Plex Sans Arabic', sans-serif; }
[lang="ar"] .wm-md { font-size: 13px; letter-spacing: 0; padding-inline: 9px 0; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 14.5px; opacity: .82; transition: opacity .2s; }
.nav a:hover, .nav a[aria-current] { opacity: 1; }
.hd-r { display: flex; align-items: center; gap: 18px; }
.lang { font-size: 14px; text-decoration: none; opacity: .8; }
.lang:hover { opacity: 1; }
.hd-dark .btn-solid { background: var(--white); color: var(--ink); }
.hd-dark .btn-solid:hover { background: #e9e2d6; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: none; color: inherit; padding: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline-start: 10px; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.mnav { background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); padding: 12px var(--gut) 28px; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 24px/1.2 var(--serif); }
.mnav .ext { display: none; }
.mnav-f { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.hd-dark.open { background: var(--paper); color: var(--ink); }
.hd-dark.open .btn-solid { background: var(--ink); color: var(--white); }

/* hero */
.hero { background: var(--night); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 90% at 78% 40%, rgba(80, 66, 48, .35), transparent 60%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: clamp(32px, 5vw, 80px); min-height: min(100vh, 920px); padding-top: 120px; }
.hero-t { align-self: center; padding-bottom: 40px; }
.eyebrow { font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 28px; }
[lang="ar"] .eyebrow { font-size: 15px; letter-spacing: 0; }
.hero h1 { font-size: clamp(40px, 4.9vw, 70px); line-height: 1.04; letter-spacing: -.022em; max-width: 13.5em; }
[lang="ar"] .hero h1 { font-size: clamp(34px, 3.9vw, 54px); line-height: 1.42; letter-spacing: 0; }
.hero-sub { font-size: clamp(17px, 1.35vw, 19px); color: rgba(255, 255, 255, .74); max-width: 33em; margin: 28px 0 40px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-p { position: relative; align-self: end; }
.hero-p img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r) var(--r) 0 0; }
.hero-p::after { content: ''; position: absolute; inset: 0; border-radius: var(--r) var(--r) 0 0; background: linear-gradient(180deg, transparent 62%, rgba(16, 18, 19, .55)); pointer-events: none; }

/* pillars */
.pillars, .pr { padding: clamp(72px, 9vw, 120px) 0; }
.pl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pl li { padding: 36px 36px 8px 0; border-inline-end: 1px solid var(--line); padding-inline: 0 36px; }
.pl li + li { padding-inline-start: 36px; }
.pl li:last-child { border-inline-end: 0; }
.pn { font: 500 13px/1 var(--sans); color: var(--muted); letter-spacing: .08em; }
.pl h3 { font-size: 32px; line-height: 1.15; margin: 18px 0 12px; }
.pl p { color: var(--muted); max-width: 26em; }
.disc { margin-top: 40px; font-size: 14px; color: var(--muted); }

/* about teaser */
.ab { background: var(--white); padding: clamp(80px, 10vw, 140px) 0; }
.ab-in { display: grid; grid-template-columns: 420px 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.ab-p img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; }
.ab-t { max-width: 36em; }
.ab-t p { color: var(--ink-2); }
.ab-t .tl { margin-top: 14px; }

/* letter */
.lt { background: var(--accent); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.lt .k { color: rgba(255, 255, 255, .7); }
.lt-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.lt-t p:not(.k) { color: rgba(255, 255, 255, .78); max-width: 30em; margin: 0; }
.lt h2 { margin-bottom: 18px; }
.lf-row { display: flex; gap: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px; }
.lf input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: inherit; padding: 0 18px; font: 400 16px var(--sans); outline: none; }
.lf input::placeholder { color: currentColor; opacity: .5; }
.lt .btn-solid, .nl .lf .btn-solid { background: var(--white); color: var(--ink); height: 48px; }
.lt .btn-solid:hover { background: #e9e2d6; }
.lf-note { font-size: 13.5px; opacity: .7; margin: 14px 4px 0; }
.lf.bad .lf-row { border-color: #f2b8a8; }
.lf.ok .lf-note { opacity: 1; }

/* videos / social */
.vd, .vt { padding: clamp(80px, 10vw, 130px) 0 0; }
.vt { padding-bottom: clamp(80px, 10vw, 130px); }
.sh { max-width: 40em; margin-bottom: 44px; }
.sh p { color: var(--muted); }
.soc-g { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.soc { display: grid; gap: 10px; padding: 36px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .25s, transform .25s, box-shadow .25s; min-height: 250px; align-content: start; }
.soc:hover { border-color: rgba(21, 23, 26, .3); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(21, 23, 26, .25); }
.soc-k { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
[lang="ar"] .soc-k { font-size: 14px; letter-spacing: 0; }
.soc-h { font: 400 clamp(26px, 2.6vw, 36px)/1.15 'Newsreader', Georgia, serif; margin-top: 18px; direction: ltr; unicode-bidi: isolate; text-align: start; }
.soc-d { color: var(--muted); }
.soc-cta { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* ventures */
.vn-l { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vn { display: grid; grid-template-columns: 280px 1fr auto; gap: 32px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s; }
.vn:hover { padding-inline-start: 12px; }
.vn-n { font: 400 34px/1.1 'Newsreader', Georgia, serif; }
.vn-d { color: var(--ink-2); font-size: 18px; }
.vn-u { color: var(--muted); font-size: 14.5px; direction: ltr; unicode-bidi: isolate; }

/* contact */
.ct { background: var(--paper-2); padding: clamp(80px, 10vw, 130px) 0; text-align: center; }
.ct .k { justify-content: center; }
.ct .k::before { display: none; }
.ct-in p { color: var(--muted); }
.ct-mail { display: inline-block; margin-top: 18px; font: 400 clamp(26px, 3.4vw, 46px)/1.2 'Newsreader', Georgia, serif; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: border-color .2s; word-break: break-word; }
.ct-mail:hover { border-color: var(--ink); }

/* page header (about) */
.ph { padding: clamp(56px, 7vw, 96px) 0 0; }
.ph-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.ph h1, .nl h1, .nf h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -.022em; }
[lang="ar"] .ph h1, [lang="ar"] .nl h1, [lang="ar"] .nf h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.35; letter-spacing: 0; }
.lede { font-size: clamp(19px, 1.6vw, 23px); color: var(--ink-2); margin-top: 26px; max-width: 30em; line-height: 1.55; }
.ph-t { padding-bottom: clamp(40px, 6vw, 90px); }
.ph-p img { border-radius: var(--r) var(--r) 0 0; aspect-ratio: 4 / 5; object-fit: cover; }
.prose { padding-top: clamp(64px, 8vw, 110px); }
.as { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.as h2 { font-size: 30px; }
.as div { max-width: 38em; font-size: 18.5px; color: var(--ink-2); }
.p-about .pr { background: var(--white); margin-top: clamp(40px, 6vw, 80px); }

/* newsletter page */
.nl { padding: clamp(80px, 10vw, 150px) 0 clamp(72px, 9vw, 120px); background: var(--accent); color: #fff; }
.nl .k { color: rgba(255, 255, 255, .7); }
.nl-in { max-width: 860px; }
.nl .lede { color: rgba(255, 255, 255, .8); margin-bottom: 44px; }
.nl .lf { max-width: 560px; }

.nf { padding: clamp(100px, 14vw, 200px) 0; }
.nf .lede { margin-bottom: 36px; }

/* footer */
.ft { background: var(--night); color: rgba(255, 255, 255, .86); padding: 88px 0 40px; }
.ft-top { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 60px; padding-bottom: 64px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ft-brand p { color: rgba(255, 255, 255, .56); margin: 18px 0 22px; }
.ft-mail { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: 3px; }
.ft-mail:hover { border-color: #fff; }
.ft-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fc h3 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 22px; }
[lang="ar"] .fc h3 { font-size: 14px; letter-spacing: 0; }
.fc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fc a { text-decoration: none; opacity: .86; }
.fc a:hover { opacity: 1; }
.ft-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: 13.5px; color: rgba(255, 255, 255, .45); }
.ft-bot p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .hd-r { margin-inline-start: auto; }
  .burger { display: block; }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .hd-in { height: 64px; gap: 12px; }
  .hd-r .btn, .hd-r .lang { display: none; }
  .wm-n { font-size: 22px; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 92px; gap: 30px; }
  .eyebrow { margin-bottom: 18px; font-size: 12px; }
  .hero h1 { font-size: 35px; line-height: 1.08; }
  [lang="ar"] .hero h1 { font-size: 30px; line-height: 1.45; }
  .hero-sub { font-size: 16px; line-height: 1.6; margin: 18px 0 26px; }
  .hero-cta .btn { height: 46px; }
  .hero-t { padding-bottom: 0; }
  .hero-p { margin: 0 calc(-1 * var(--gut)); }
  .hero-p img, .hero-p::after { border-radius: 0; }
  .hero-p img { aspect-ratio: 1 / 1; object-position: 50% 12%; }
  .pl { grid-template-columns: 1fr; }
  .pl li, .pl li + li { padding: 28px 0 12px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .ab-in, .lt-in, .ph-in, .ft-top { grid-template-columns: 1fr; }
  .ab-p { display: none; }
  .soc-g { grid-template-columns: 1fr; }
  .soc { min-height: 0; padding: 28px; }
  .vn { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
  .vn:hover { padding-inline-start: 0; }
  .as { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .ph-p { margin: 0 calc(-1 * var(--gut)); }
  .ph-p img { border-radius: 0; aspect-ratio: 1 / 1; object-position: 50% 15%; }
  .ft-cols { grid-template-columns: repeat(2, 1fr); }
  .ft { padding-top: 64px; }
}
@media (max-width: 420px) {
  .lf-row { flex-direction: column; border-radius: 20px; }
  .lf .btn { width: 100%; }
  .hero-cta .btn { flex: 1; }
}
[lang="ar"] .eyebrow, [lang="ar"] .k, [lang="ar"] .soc-k, [lang="ar"] .fc h3 { text-transform: none; }
