/* yousef.burhama.com — editorial black-ramp, brass accent (DESIGN-NOTES.md) */

:root {
  --bg-0: #0a0a0a;
  --bg-1: #121212;
  --ink: #ececec;
  --ink-muted: #a3a3a3;
  --accent: #d9a856;
  --accent-deep: #c2913f;
  --hairline: rgba(255, 255, 255, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  padding: 0 1.5rem;
}

.masthead, main, footer {
  max-width: 62ch;
  margin-inline: auto;
}

/* ---- masthead ---- */
.masthead { padding: clamp(4rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4rem); }

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.ident {
  margin-top: 1rem;
  font-size: 1.24rem;
  color: var(--ink-muted);
}

.rule {
  display: block;
  width: 100%;
  height: 8px;
  margin-top: 2.2rem;
  color: var(--accent);
}

/* ---- sections ---- */
section { padding: clamp(3.5rem, 9vh, 6rem) 0 0; }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink-muted);
  margin-bottom: 2.2rem;
}

/* ---- work rows (editorial list — hairlines, never boxes) ---- */
.row { padding: 1.9rem 0; border-top: 1px solid var(--hairline); }
.row:last-of-type { border-bottom: 1px solid var(--hairline); }

.row h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

.row h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  transition: color 160ms ease, border-color 160ms ease;
}
.row h3 a:hover { color: var(--accent); border-color: var(--accent-deep); }

.row p { color: var(--ink); max-width: 58ch; }

.meta {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

/* ---- about ---- */
.about p + p { margin-top: 1.1rem; }
.about a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-deep); }
.about a:hover { color: var(--accent-deep); }

/* ---- icons (Lucide, inline, stroke) ---- */
.icon { flex: none; stroke: currentColor; }
.icon-row {
  width: 22px;
  height: 22px;
  color: var(--ink-muted);
  transition: color 200ms ease;
}
.row-link h3 { display: flex; align-items: center; gap: 0.75rem; }
.row-link:hover .icon-row { color: var(--accent); }
.icon-meta {
  width: 15px;
  height: 15px;
  vertical-align: -3px;
  margin-right: 0.35rem;
}

.spring-link { display: inline-block; will-change: transform; }

/* ---- contact / hold-to-reveal ---- */
.contact p { max-width: 52ch; }

.reveal-zone { margin-top: 2rem; }

#hold-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: 500 1rem var(--sans);
  color: var(--ink);
  background: var(--bg-1);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
  transition: border-color 160ms ease;
}
#hold-btn:hover, #hold-btn:focus-visible { border-color: var(--accent); outline: none; }

.ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.5; }
.ring-track { stroke: var(--hairline); }
.ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 69.115;
  stroke-dashoffset: 69.115;
}

#email-out { margin-top: 1.4rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
#email-out[hidden] { display: none; }

#email-link {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-deep);
}
#email-link:hover { color: var(--accent-deep); }

#copy-btn {
  font: 500 0.88rem var(--sans);
  color: var(--ink);
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  cursor: pointer;
  transition: border-color 160ms ease;
}
#copy-btn:hover { border-color: var(--accent); }

#copy-ok { font-size: 0.88rem; color: var(--ink-muted); }

/* ---- footer ---- */
footer {
  padding: clamp(4rem, 10vh, 7rem) 0 2.5rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* ---- motion staging (only when JS + motion allowed adds .js-anim) ---- */
.js-anim .reveal { opacity: 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .ident { font-size: 1.1rem; }
}
