/*
Theme Name: Arslan Zafar
Theme URI: https://arslanz.com
Author: Arslan Zafar
Author URI: https://arslanz.com
Description: Personal brand site for Muhammad Arslan Zafar. Single-page editorial design (ink, cream, terracotta; Fraunces + Work Sans) with article pages under /writing/. Converted 1:1 from the approved Claude Design build.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: All rights reserved
Text Domain: arslan-zafar
*/

/* ============ Base ============ */
:root {
  --ink: #1A1815;
  --cream: #F5F1E8;
  --terracotta: #C1603C;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--ink);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal system: elements start hidden, .is-on plays the stagger */
.rv { opacity: 0; }
.is-on .rv, .rv.is-on {
  animation: riseIn 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.is-on .rv-0   { animation-delay: 0ms; }
.is-on .rv-80  { animation-delay: 80ms; }
.is-on .rv-120 { animation-delay: 120ms; }
.is-on .rv-160 { animation-delay: 160ms; }
.is-on .rv-240 { animation-delay: 240ms; }
.is-on .rv-280 { animation-delay: 280ms; }
.is-on .rv-300 { animation-delay: 300ms; }
.is-on .rv-360 { animation-delay: 360ms; }
.is-on .rv-380 { animation-delay: 380ms; }

@media (prefers-reduced-motion: reduce) {
  .rv, .is-on .rv { animation: none !important; opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* Shared container: max 1200, side padding 56/40/20 */
.az-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
}

/* ============ Hero ============ */
.az-hero {
  width: 100%;
  height: 100dvh;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.az-hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(193,96,60,0.08), transparent 70%);
  pointer-events: none;
}
.az-nav {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 24px; padding-bottom: 24px; flex-shrink: 0;
}
.az-nav__wordmark {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: 22px; letter-spacing: 0.01em;
}
.az-nav__contact {
  color: var(--cream); opacity: 0.7; text-decoration: none; font-size: 15px;
  border-bottom: 1px solid rgba(245,241,232,0.3); padding-bottom: 2px;
  transition: opacity .2s ease, border-color .2s ease;
}
.az-nav__contact:hover { opacity: 1; border-bottom-color: rgba(245,241,232,0.7); }

.az-hero__body {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 48px; padding-top: 24px; padding-bottom: 24px; min-height: 0;
}
.az-hero__text {
  max-width: 560px; display: flex; flex-direction: column;
  gap: 18px; flex-shrink: 1; min-width: 0;
}
.az-kicker {
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 13px; font-weight: 600; color: var(--terracotta);
}
.az-hero__kicker-span { opacity: 0.85; }
.az-hero__headline {
  margin: 0; font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(28px, 3.6vw, 50px); line-height: 1.15; letter-spacing: -0.01em;
}
.az-hero__subhead { margin: 0; font-size: 17px; line-height: 1.5; color: var(--cream); max-width: 560px; }
.az-hero__subhead strong { font-weight: 600; }
.az-hero__ctas { display: flex; align-items: center; gap: 32px; margin-top: 4px; }
.az-cta-primary {
  color: var(--cream); font-size: 17px; font-weight: 500; text-decoration: none;
  border-bottom: 1px solid var(--terracotta); padding-bottom: 3px; transition: color .2s ease;
}
.az-cta-primary:hover { color: var(--terracotta); }
.az-cta-secondary { color: var(--cream); opacity: 0.55; font-size: 15px; text-decoration: none; transition: opacity .2s ease; }
.az-cta-secondary:hover { opacity: 0.85; }

.az-hero__photo {
  flex: 0 0 auto; width: min(38%, 380px); min-width: 280px;
  height: 100%; max-height: 620px;
  display: flex; align-items: center; justify-content: center;
}
.az-hero__photo-frame { position: relative; width: 100%; height: 100%; }
.az-hero__photo-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  border-radius: 10px; filter: grayscale(0.2) contrast(1.05); display: block;
}
.az-hero__photo-vignette {
  position: absolute; inset: 0; border-radius: 10px;
  box-shadow: inset 0 0 55px 20px var(--ink); pointer-events: none;
}

/* ============ Shared section scaffolding ============ */
.az-section { width: 100%; font-family: 'Work Sans', sans-serif; display: flex; justify-content: center; }
.az-section--cream { background: var(--cream); color: var(--ink); padding: 128px 0; }
.az-section--ink { background: var(--ink); color: var(--cream); }
.az-inner-680 { width: 100%; max-width: 680px; display: flex; flex-direction: column; gap: 26px; }
.az-inner-760 { width: 100%; max-width: 760px; display: flex; flex-direction: column; }
.az-hairline { height: 1px; width: 100%; background: rgba(26,24,21,0.15); }
.az-h2 {
  margin: 0; font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 40px; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink);
}

/* ============ Story ============ */
.az-story-body { margin: 0; font-size: 18px; line-height: 1.68; color: var(--ink); }
.az-pullquote {
  margin: 10px -32px; font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 1.32; color: var(--terracotta); letter-spacing: -0.01em;
}
.az-values {
  margin: 0; font-size: 14px; line-height: 1.6; letter-spacing: 0.06em;
  text-transform: uppercase; color: rgba(26,24,21,0.6);
}

/* ============ Proof ============ */
.az-section--proof { background: var(--cream); color: var(--ink); padding: 32px 0 128px; }
.az-proof-head { margin: 0 0 8px; max-width: 640px; }
.az-proof-blocks { display: flex; flex-direction: column; }
.az-proof-block { padding: 32px 0; border-top: 1px solid rgba(26,24,21,0.15); }
.az-proof-pain {
  margin: 0 0 14px; font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: 25px; line-height: 1.32; letter-spacing: -0.01em; color: var(--terracotta);
}
.az-proof-outcome { margin: 0; font-size: 17px; line-height: 1.62; color: rgba(26,24,21,0.78); }
.az-proof-creds { border-top: 1px solid rgba(26,24,21,0.15); padding-top: 28px; margin-top: 8px; }
.az-proof-creds-line {
  margin: 0 0 8px; font-size: 14px; line-height: 1.5; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600; color: var(--ink);
}
.az-proof-geo { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(26,24,21,0.55); }

/* ============ Currently Building ============ */
.az-section--building { padding: 140px 0; }
.az-building-name {
  margin: 0 0 28px; font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 58px; line-height: 1.06; letter-spacing: -0.015em; color: var(--cream);
}
.az-building-kicker { margin-bottom: 18px; }
.az-building-body { display: flex; flex-direction: column; gap: 20px; max-width: 600px; }
.az-building-body p { margin: 0; font-size: 18px; line-height: 1.66; color: var(--cream); }
.az-building-body p.az-dim { color: rgba(245,241,232,0.8); }
.az-building-cta { margin-top: 32px; }

/* ============ Working Together / Writing ============ */
.az-index-kicker { margin-bottom: 18px; }
.az-work-head { margin: 0 0 10px; line-height: 1.16; }
.az-work-sub { margin: 0 0 32px; font-size: 18px; line-height: 1.6; color: rgba(26,24,21,0.7); max-width: 520px; }
.az-rows { display: flex; flex-direction: column; }
.az-work-row {
  display: flex; flex-direction: row; align-items: baseline; gap: 40px;
  padding: 32px 0; border-top: 1px solid rgba(26,24,21,0.15);
}
.az-work-name {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 30px;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink);
  flex: 0 0 auto; width: 220px;
}
.az-work-desc { margin: 0; font-size: 17px; line-height: 1.62; color: rgba(26,24,21,0.75); flex: 1; }
.az-row-endcap { border-top: 1px solid rgba(26,24,21,0.15); }

.az-writing-head { margin: 0 0 24px; line-height: 1.16; }
.az-writing-row { padding: 30px 0; border-top: 1px solid rgba(26,24,21,0.15); }
.az-writing-title {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 27px;
  line-height: 1.24; letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 6px; display: inline-block; text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
}
a.az-writing-title:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.az-writing-dek { margin: 6px 0 12px; font-size: 17px; line-height: 1.6; color: rgba(26,24,21,0.6); }
.az-writing-dek--static { margin: 0; }
.az-read-link {
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--terracotta);
  text-decoration: none; border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .2s ease;
}
.az-read-link:hover { border-bottom-color: var(--terracotta); }
.az-inprogress {
  margin: 0 0 6px; font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600; color: var(--terracotta);
}
.az-writing-title--static { border-bottom: none; }

/* ============ Contact ============ */
.az-section--contact { padding: 150px 0 0; }
.az-contact-inner { width: 100%; display: flex; flex-direction: column; }
.az-contact-head {
  margin: 0 0 36px; font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 36px; line-height: 1.18; letter-spacing: -0.01em; color: var(--cream); max-width: 640px;
}
.az-contact-email {
  font-family: 'Fraunces', serif; font-weight: 400; font-size: 56px;
  line-height: 1.05; letter-spacing: -0.015em; color: var(--cream);
  text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 4px;
  align-self: flex-start; transition: color .2s ease, border-color .2s ease;
  overflow-wrap: anywhere;
}
.az-contact-email:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.az-contact-linkedin-wrap { margin-top: 28px; }
.az-contact-linkedin {
  color: rgba(245,241,232,0.7); font-size: 16px; text-decoration: none;
  border-bottom: 1px solid rgba(245,241,232,0.3); padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.az-contact-linkedin:hover { color: var(--cream); border-bottom-color: rgba(245,241,232,0.7); }
.az-footer {
  margin-top: 110px; padding: 28px 0; border-top: 1px solid rgba(245,241,232,0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.az-footer__wordmark { font-family: 'Fraunces', serif; font-weight: 500; font-size: 16px; color: var(--cream); }
.az-footer__year { font-size: 14px; color: rgba(245,241,232,0.45); }

/* ============ Article pages ============ */
.az-article-page { background: var(--cream); color: var(--ink); font-family: 'Work Sans', sans-serif; min-height: 100vh; }
.az-article-section { padding-top: 96px; padding-bottom: 120px; }
.az-article-measure {
  width: 100%; max-width: 680px; display: flex; flex-direction: column;
  animation: riseIn 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.az-back-link {
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: rgba(26,24,21,0.6);
  text-decoration: none; align-self: flex-start; transition: color .2s ease;
}
.az-back-link--top { margin-bottom: 36px; }
.az-back-link--bottom { margin-top: 40px; }
.az-back-link:hover { color: var(--terracotta); }
.az-article-kicker { margin: 0 0 20px; }
.az-article-title {
  margin: 0 0 40px; font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 46px; line-height: 1.14; letter-spacing: -0.015em; color: var(--ink);
}
.az-article-measure h2 {
  margin: 44px 0 20px; font-family: 'Fraunces', serif; font-weight: 400;
  font-size: 26px; line-height: 1.24; letter-spacing: -0.01em; color: var(--ink);
}
.az-article-measure > p { margin: 0 0 22px; font-size: 18px; line-height: 1.68; color: var(--ink); }
.az-article-close { border-top: 1px solid rgba(26,24,21,0.15); margin-top: 36px; padding-top: 28px; }
.az-article-close p {
  margin: 0; font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: 18px; line-height: 1.6; color: rgba(26,24,21,0.72);
}

/* ============ Tablet (640 - 1023) ============ */
@media (max-width: 1023px) {
  .az-container { padding-left: 40px; padding-right: 40px; }
  .az-hero__body { gap: 36px; }
  .az-hero__photo { width: min(40%, 320px); min-width: 240px; }
  .az-section--cream { padding: 96px 0; }
  .az-section--proof { padding: 32px 0 96px; }
  .az-section--building { padding: 104px 0; }
  .az-section--contact { padding: 112px 0 0; }
  .az-h2 { font-size: 32px; }
  .az-pullquote { font-size: 26px; }
  .az-proof-pain { font-size: 23px; }
  .az-building-name { font-size: 46px; }
  .az-work-name { font-size: 27px; }
  .az-writing-title { font-size: 25px; }
  .az-contact-head { font-size: 30px; }
  .az-contact-email { font-size: 44px; }
  .az-article-title { font-size: 38px; }
}

/* ============ Mobile (< 640) ============ */
@media (max-width: 639px) {
  .az-container { padding-left: 20px; padding-right: 20px; }
  .az-nav { padding-top: 18px; padding-bottom: 18px; }
  .az-hero__body {
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 32px; padding-top: 16px; padding-bottom: 16px; overflow-y: auto;
  }
  .az-hero__text { max-width: 100%; width: 100%; }
  .az-hero__photo {
    order: 2; width: 100%; max-width: 320px; height: 300px; min-width: 0;
    justify-content: flex-start;
  }
  .az-section--cream { padding: 64px 0; }
  .az-section--proof { padding: 20px 0 64px; }
  .az-section--building { padding: 72px 0; }
  .az-section--contact { padding: 80px 0 0; }
  .az-inner-680 { gap: 22px; }
  .az-inner-760 { }
  .az-h2 { font-size: 26px; }
  .az-story-body { font-size: 17px; }
  .az-pullquote { margin: 6px 0; font-size: 22px; }
  .az-proof-pain { font-size: 21px; }
  .az-proof-outcome { font-size: 16px; }
  .az-proof-block { padding: 32px 0; }
  .az-building-name { font-size: 34px; }
  .az-building-body p { font-size: 17px; }
  .az-work-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 0; }
  .az-work-name { font-size: 24px; width: auto; }
  .az-work-desc { font-size: 16px; }
  .az-work-sub { font-size: 17px; }
  .az-writing-row { padding: 26px 0; }
  .az-writing-title { font-size: 22px; }
  .az-writing-dek { font-size: 16px; }
  .az-contact-head { font-size: 24px; }
  .az-contact-email { font-size: 30px; }
  .az-footer { margin-top: 72px; }
  .az-article-section { padding-top: 48px; padding-bottom: 64px; }
  .az-article-title { font-size: 30px; }
  .az-article-measure h2 { font-size: 22px; }
  .az-article-measure > p { font-size: 17px; }
  .az-article-close p { font-size: 17px; }
}

/* WordPress admin bar offset */
body.admin-bar .az-hero { height: calc(100dvh - 32px); }
