/* nassif.us — elegant heritage: cedar green, warm parchment, gold.
   System fonts only; no external assets. */

html { color-scheme: only light; }
:root {
  --cedar:        #1d3b2c;
  --cedar-deep:   #12281d;
  --cedar-soft:   #2c5240;
  --parchment:    #f7f1e2;
  --parchment-2:  #efe6d0;
  --parchment-3:  #e7dcc2;
  --gold:         #b8934a;
  --gold-bright:  #d3b06a;
  --gold-pale:    #e9d9b4;
  --ink:          #292317;
  --ink-soft:     #574e3c;
  --line:         #d9cdae;
  --serif: 'Palatino Linotype', Palatino, 'Book Antiqua', 'URW Palladio L', 'Iowan Old Style', Georgia, serif;
  --body:  Georgia, 'Iowan Old Style', 'Times New Roman', Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font: 17px/1.75 var(--body);
  color: var(--ink);
  background: var(--parchment);
}
img, svg { max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--cedar); }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: .8rem; }
h3 { font-size: 1.22rem; margin-bottom: .4rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--cedar-soft); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
strong { color: inherit; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--cedar-deep);
  padding: .5rem 1rem; z-index: 99; font-family: var(--sans);
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* ------------------------------------------------------------- header --- */
.site-head { background: var(--cedar-deep); color: var(--parchment); border-bottom: 3px solid var(--gold); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .65rem; padding-bottom: .65rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--parchment); text-decoration: none; }
.brand-cedar { width: 34px; height: 27px; color: var(--gold-bright); flex: none; }
.brand-text { font-family: var(--serif); font-size: 1.18rem; letter-spacing: .04em; white-space: nowrap; }
.brand-text strong { color: var(--gold-bright); font-weight: 700; }

.site-nav ul { display: flex; gap: 1.35rem; list-style: none; }
.site-nav a {
  color: #e8e0ca; text-decoration: none; font-family: var(--sans); font-size: .82rem;
  letter-spacing: .13em; text-transform: uppercase; padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--gold-bright); }
.site-nav a[aria-current="page"] { color: var(--gold-bright); border-bottom-color: var(--gold); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-bright); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .head-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: 0; padding: .4rem 0 .8rem; }
  .site-nav a { display: block; padding: .55rem .2rem; border-bottom: 1px solid rgba(211,176,106,.18); }
}

/* --------------------------------------------------------------- hero --- */
.hero {
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(211,176,106,.16), transparent 60%),
    radial-gradient(800px 420px at 12% 110%, rgba(44,82,64,.55), transparent 65%),
    var(--cedar);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}
.hero-inner { position: relative; padding: 4.5rem 1.25rem 4.2rem; text-align: center; }
.hero-arabic {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: clamp(9rem, 28vw, 20rem); color: rgba(211,176,106,.09);
  user-select: none; pointer-events: none; line-height: 1;
}
.hero h1 { color: var(--parchment); position: relative; }
.hero h1 .gold { color: var(--gold-bright); }
.eyebrow {
  font-family: var(--sans); font-size: .8rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-bright); display: block; margin-bottom: 1rem; position: relative;
}
.hero-tagline { font-size: 1.25rem; font-style: italic; color: #e8e0ca; max-width: 640px; margin: 1.1rem auto 0; position: relative; }
.hero-cedar { width: 92px; height: 72px; color: var(--gold-bright); margin: 0 auto 1.2rem; display: block; position: relative; }
.hero-rule { width: 130px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 1.6rem auto; border: 0; position: relative; }
.hero-ctas { margin-top: 1.8rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; position: relative; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: .85rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; padding: .8rem 1.7rem; border-radius: 3px;
  border: 1px solid var(--gold); transition: background .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--cedar-deep); font-weight: 700; }
.btn-gold:hover { background: var(--gold-bright); color: var(--cedar-deep); }
.btn-ghost { color: var(--gold-bright); background: var(--cedar-deep); }
.btn-ghost:hover { background: rgba(211,176,106,.12); color: var(--gold-bright); }
.btn-cedar { background: var(--cedar); color: var(--parchment); border-color: var(--cedar); }
.btn-cedar:hover { background: var(--cedar-soft); color: var(--parchment); }

/* ----------------------------------------------------------- sections --- */
.section { padding: 3.6rem 0; }
.section-alt { background: var(--parchment-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-cedar { background: var(--cedar); color: var(--parchment); }
.section-cedar h2, .section-cedar h3 { color: var(--gold-bright); }
.section-cedar a { color: var(--gold-pale); }

.kicker {
  font-family: var(--sans); font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: .5rem;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.4rem; }
.section-head .lede { font-size: 1.12rem; color: var(--ink-soft); }

.divider { text-align: center; padding: .4rem 0 0; color: var(--gold); }
.divider svg { width: 46px; height: 36px; }

/* page hero (interior pages) */
.page-hero { background: var(--cedar); color: var(--parchment); padding: 3rem 0 2.6rem; text-align: center; border-bottom: 3px solid var(--gold); }
.page-hero h1 { color: var(--parchment); }
.page-hero .lede { color: #e8e0ca; font-style: italic; font-size: 1.15rem; max-width: 640px; margin: .8rem auto 0; }
.page-hero .arabic-inline { color: var(--gold-bright); }

/* ---------------------------------------------------------- cards etc --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.4rem; }
.card {
  background: #fffdf6; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 4px; padding: 1.5rem 1.5rem 1.2rem; box-shadow: 0 2px 10px rgba(41,35,23,.06);
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; margin-bottom: .6rem; }
.card .more { font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.6rem; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold-bright); line-height: 1.15; }
.stat-label { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #cfc6ab; }
.section-cedar .stat-label a { color: inherit; }

/* variant chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.4rem; padding: 0; list-style: none; }
.chips li {
  font-family: var(--serif); font-size: 1.05rem; background: #fffdf6; border: 1px solid var(--gold);
  color: var(--cedar); border-radius: 999px; padding: .25rem 1rem;
}
.chips li strong { color: var(--gold); font-weight: 700; }

/* arabic display */
.arabic-display {
  font-size: clamp(3.4rem, 9vw, 5.6rem); text-align: center; color: var(--cedar);
  line-height: 1.4; margin: .6rem 0 .2rem;
}
.arabic-caption { text-align: center; font-style: italic; color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.6rem; }

/* definition block */
.defbox {
  background: #fffdf6; border: 1px solid var(--line); border-left: 4px solid var(--gold);
  padding: 1.4rem 1.6rem; margin: 1.6rem 0; border-radius: 0 4px 4px 0;
}
.defbox .word { font-family: var(--serif); font-size: 1.5rem; color: var(--cedar); }
.defbox .pos { font-style: italic; color: var(--ink-soft); font-size: .95rem; }

blockquote {
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--cedar);
  border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1.4rem; margin: 1.8rem 0;
}
blockquote cite { display: block; font-size: .85rem; font-style: normal; font-family: var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: .5rem; }

/* ----------------------------------------------------------- timeline --- */
.timeline { position: relative; margin: 2.5rem 0; padding-left: 0; list-style: none; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 130px;
  width: 2px; background: linear-gradient(var(--gold) 60%, transparent); opacity: .55;
}
.timeline li { position: relative; padding: 0 0 2rem 170px; }
.timeline li::before {
  content: ""; position: absolute; left: 124px; top: .5rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--parchment); border: 3px solid var(--gold);
}
.tl-year {
  position: absolute; left: 0; top: .1rem; width: 108px; text-align: right;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--gold);
}
.timeline h3 { margin-bottom: .25rem; }
.timeline p { font-size: .98rem; margin-bottom: 0; color: var(--ink-soft); }
.tl-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.tl-reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tl-reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .timeline li { padding: 0 0 1.8rem 34px; }
  .timeline li::before { left: 1px; }
  .tl-year { position: static; display: block; text-align: left; width: auto; margin-bottom: .15rem; }
}

/* ----------------------------------------------------------- profiles --- */
.profiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.6rem; }
.profile {
  background: #fffdf6; border: 1px solid var(--line); border-radius: 4px;
  padding: 1.7rem 1.6rem 1.3rem; box-shadow: 0 2px 10px rgba(41,35,23,.06);
  display: flex; flex-direction: column;
}
.profile-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.monogram {
  flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--cedar);
  color: var(--gold-bright); font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold);
}
.profile h3 { margin-bottom: .1rem; }
.profile .dates { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase; }
.profile .role { font-style: italic; color: var(--gold); font-size: .98rem; margin-bottom: .6rem; font-family: var(--serif); }
.profile p { font-size: .96rem; }
.profile .src { margin-top: auto; font-family: var(--sans); font-size: .78rem; letter-spacing: .05em; color: var(--ink-soft); padding-top: .6rem; border-top: 1px dashed var(--line); }

.landmark {
  background: var(--cedar); color: var(--parchment); border-radius: 4px; padding: 2.2rem 2rem;
  margin-top: 2.4rem; border: 1px solid var(--cedar-deep); box-shadow: 0 2px 14px rgba(18,40,29,.28);
}
.landmark h3 { color: var(--gold-bright); font-size: 1.5rem; }
.landmark p { color: #e8e0ca; }

/* ------------------------------------------------------------ sources --- */
.srclist { list-style: none; margin: 0 0 2rem; }
.srclist li { padding: .8rem 0; border-bottom: 1px dotted var(--line); }
.srclist .src-title { font-weight: 700; color: var(--cedar); }
.srclist .src-url { display: block; font-family: var(--sans); font-size: .82rem; word-break: break-all; }
.srclist .src-note { font-size: .92rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- form --- */
.form-card {
  background: #fffdf6; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: 4px; padding: 2rem; max-width: 680px; margin: 0 auto;
}
.form-card label { display: block; font-family: var(--sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cedar); font-weight: 700; margin: 1.1rem 0 .35rem; }
.form-card label small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.form-card input[type=text], .form-card input[type=email], .form-card textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 3px;
  font: 1rem/1.5 var(--body); background: var(--parchment); color: var(--ink);
}
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-card textarea { min-height: 150px; resize: vertical; }
.form-card .hp { position: absolute; left: -9999px; top: -9999px; }
.form-card button { margin-top: 1.4rem; cursor: pointer; }
.flash { max-width: 680px; margin: 0 auto 1.4rem; padding: .9rem 1.2rem; border-radius: 4px; font-family: var(--sans); font-size: .95rem; }
.flash-ok  { background: #e6efdd; border: 1px solid #9db87f; color: #2f4a1e; }
.flash-err { background: #f3e0d8; border: 1px solid #c98f6f; color: #6d3014; }

/* --------------------------------------------------------------- misc --- */
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1rem 1.4rem; }
.prose .note { font-size: .9rem; color: var(--ink-soft); font-style: italic; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

table.vartable { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; font-size: .97rem; }
table.vartable th { font-family: var(--sans); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; text-align: left; color: var(--gold); border-bottom: 2px solid var(--gold); padding: .5rem .6rem; }
table.vartable td { padding: .6rem; border-bottom: 1px dotted var(--line); vertical-align: top; }
table.vartable td:first-child { font-family: var(--serif); font-size: 1.08rem; color: var(--cedar); font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

/* ------------------------------------------------------------- footer --- */
.site-foot { background: var(--cedar-deep); color: #cfc6ab; border-top: 3px solid var(--gold); margin-top: 3.5rem; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2.2rem; padding: 2.6rem 1.25rem 2.2rem; }
.foot-cedar { width: 44px; height: 35px; color: var(--gold); }
.foot-name { font-family: var(--serif); font-size: 1.25rem; color: var(--parchment); margin: .5rem 0 .2rem; }
.foot-arabic { color: var(--gold-bright); margin-left: .4rem; }
.foot-tag { font-style: italic; font-size: .95rem; margin: 0; }
.foot-nav ul { list-style: none; }
.foot-nav a { color: #cfc6ab; text-decoration: none; font-size: .95rem; line-height: 2; }
.foot-nav a:hover { color: var(--gold-bright); }
.foot-note { font-size: .9rem; }
.foot-note a { color: var(--gold-pale); }
.foot-legal { margin-top: .8rem; font-size: .8rem; opacity: .8; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; gap: 1.4rem; } }
