/* ============================================================
   Shefa; brand site — editorial minimal
   Paper + ink. Satoshi display. Purple lives in the semicolon,
   the links, and one button. Nothing glows.
   ============================================================ */

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/satoshi-variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

:root {
  --paper: #fafaf7;
  --paper-deep: #f1f0ea;
  --ink: #141417;
  --ink-soft: #44444c;
  --ink-mute: #65656e;
  --hairline: #dddcd4;
  --hairline-strong: #b9b8ae;
  --accent: #5b2eee;
  --accent-deep: #4a24bf;

  --font-display: "Satoshi", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;

  --measure: 66ch;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 13vw, 168px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ---------- primitives ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section); padding-bottom: var(--section); }
.section + .section { padding-top: 0; }

.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* Editorial section header: number + label on a hairline */
.kicker {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.kicker .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.kicker .label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kicker .aside {
  margin-left: auto;
  font-size: 13px;
  color: var(--ink-mute);
}

.display {
  font-family: var(--font-display);
  font-weight: 640;
  letter-spacing: -0.03em;
  line-height: 0.99;
  text-wrap: balance;
}

.h-1 { font-size: clamp(2.6rem, 7.4vw, 5.9rem); }
.h-2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 620; letter-spacing: -0.025em; line-height: 1.04; text-wrap: balance; }
.h-3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 620; letter-spacing: -0.015em; line-height: 1.2; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}

.mute { color: var(--ink-mute); }
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-mute);
}

/* The wordmark — "Shefa" with a purple semicolon */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark .mark {
  width: auto;
  height: 0.96em;
  margin-right: 0.34em;
  flex: none;
}
.wordmark::after { content: ";"; color: var(--accent); }

/* Inline links: ink text, purple underline */
.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 160ms var(--ease);
}
.link:hover { color: var(--accent); }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}
.arrow-link::after { content: "→"; color: var(--accent); transition: transform 200ms var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.site-header .wordmark { font-size: 22px; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.site-nav a {
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 14.5px;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 140ms;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .btn { padding: 9px 18px; font-size: 13.5px; }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--hairline);
    padding: 12px var(--gutter) 24px;
  }
  .site-nav a { padding: 10px 0; font-size: 17px; }
  .site-nav .btn { margin-top: 8px; padding: 13px 24px; }
  .site-header.nav-open .site-nav { display: flex; }
}

/* ---------- hero ---------- */

.hero { padding-top: clamp(72px, 11vw, 150px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero .display em {
  font-style: normal;
  color: var(--ink-mute);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.hero-meta div { min-width: 130px; }
.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 4px;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 17px;
}

/* ---------- work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 40px);
}
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }

.project-card { text-decoration: none; color: inherit; display: block; }
.project-card .frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--paper-deep);
  aspect-ratio: 16 / 10;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 600ms var(--ease);
}
.project-card:hover img { transform: scale(1.025); }
.project-card .meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 2px 0;
}
.project-card .name {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.project-card .role { font-size: 14px; color: var(--ink-mute); }
.project-card .tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}
.project-card .tag.inhouse { color: var(--accent); }

.work-foot { margin-top: clamp(32px, 5vw, 48px); }

/* feature card (home, first project full-width) */
.project-card.feature { grid-column: 1 / -1; }
.project-card.feature .frame { aspect-ratio: 21 / 10; }

/* ---------- included (pillars) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  border-bottom: 1px solid var(--hairline);
  padding: 28px 28px 32px 0;
}
.pillar .mono { display: block; margin-bottom: 18px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 14px; }
.pillar ul { margin: 0; padding: 0; list-style: none; }
.pillar li {
  font-size: 13.5px;
  color: var(--ink-mute);
  padding: 5px 0;
  border-top: 1px solid var(--hairline);
}

/* ---------- process (14 days) ---------- */

.days { border-top: 1px solid var(--hairline); }
.day {
  display: grid;
  grid-template-columns: 72px 110px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 640px) { .day { grid-template-columns: 52px 1fr; } .day .phase { display: none; } }
.day .n {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.day .phase {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.day .what { font-size: 15px; color: var(--ink-soft); }
.day .what b { color: var(--ink); font-weight: 620; font-family: var(--font-display); }
.day.launch .n::after { content: ";"; color: var(--accent); }

/* ---------- pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-card { border-top: 2px solid var(--ink); padding-top: 24px; }
.price-card.secondary { border-top: 1px solid var(--hairline-strong); }
.price-card .amount {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card .cadence { font-size: 14px; color: var(--ink-mute); margin: 8px 0 22px; }
.price-card ul { margin: 0 0 22px; padding: 0; list-style: none; }
.price-card li {
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-soft);
}
.price-card .foot { font-size: 14px; color: var(--ink-mute); }

/* ---------- founder ---------- */

.founder {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 640px) { .founder { grid-template-columns: 1fr; } }
.founder .portrait {
  aspect-ratio: 1;
  background: var(--paper-deep);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--ink-mute);
  overflow: hidden;
}
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder blockquote {
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
  max-width: 30em;
}
.founder .sig { margin-top: 20px; font-size: 14px; }
.founder .sig b { font-family: var(--font-display); font-weight: 640; color: var(--ink); display: block; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--hairline); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--accent); font-weight: 500; font-size: 20px; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); max-width: 64ch; }

/* ---------- booking ---------- */

.book {
  background: var(--ink);
  color: #ece9e2;
}
.book .kicker { border-bottom-color: #3a3a40; }
.book .kicker .label, .book .h-2, .book h3 { color: #fafaf7; }
.book .lede { color: #b9b6ad; }
.book .mono, .book .kicker .num { color: #8d8a82; }
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } }
.book-points { margin: 28px 0 0; padding: 0; list-style: none; }
.book-points li {
  padding: 13px 0;
  border-top: 1px solid #3a3a40;
  font-size: 15px;
  color: #b9b6ad;
}
.book-points li b { color: #fafaf7; font-family: var(--font-display); font-weight: 620; }
.cal-shell {
  border: 1px solid #3a3a40;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cal-shell.loaded { display: block; padding: 0; background: #fff; }
.cal-fallback { text-align: center; max-width: 380px; }
.cal-fallback p { color: #b9b6ad; font-size: 15px; margin-bottom: 20px; }
.book .email-line { margin-top: 28px; font-size: 14.5px; color: #8d8a82; }
.book .email-line a { color: #ece9e2; text-decoration-color: var(--accent); }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0 40px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-start;
}
.footer-grid .wordmark { font-size: 26px; }
.footer-cols { display: flex; gap: 64px; margin-left: auto; flex-wrap: wrap; }
.footer-cols .col-h {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li { padding: 4px 0; }
.footer-cols a { font-size: 14.5px; text-decoration: none; color: var(--ink-soft); }
.footer-cols a:hover { color: var(--ink); }
.footer-legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ---------- case study ---------- */

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  border-top: 1px solid var(--ink);
  padding-top: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}
.case-meta dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.case-meta dd { margin: 0; font-size: 15px; font-weight: 540; }
.case-hero-img {
  border: 1px solid var(--hairline);
  background: var(--paper-deep);
  margin-top: clamp(36px, 6vw, 64px);
}
.case-hero-img img { width: 100%; }

.case-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(36px, 6vw, 64px) 0;
  border-top: 1px solid var(--hairline);
}
@media (max-width: 720px) { .case-section { grid-template-columns: 1fr; gap: 16px; } }
.case-section h2 {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 620;
}
.case-section .body { max-width: var(--measure); }
.case-section .body p { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 18px; }
.case-section .body p:last-child { margin-bottom: 0; }
.shipped-list { margin: 0; padding: 0; list-style: none; }
.shipped-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
}
.shipped-list li::before { content: ";"; color: var(--accent); font-weight: 700; font-family: var(--font-display); }
.case-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--ink);
}

/* ---------- writing ---------- */

.post-list { border-top: 1px solid var(--hairline); }
.post-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
}
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: 6px; } }
.post-row .date { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.post-row h3 { transition: color 140ms; }
.post-row:hover h3 { color: var(--accent); }
.post-row .excerpt { font-size: 14.5px; color: var(--ink-mute); margin-top: 6px; max-width: 60ch; }
.post-row .cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

/* prose (post body) */
.prose { max-width: var(--measure); }
.prose p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 22px; }
.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 44px 0 16px;
}
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 8px; }
.prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
}
.prose strong { color: var(--ink); }
.byline {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-top: 24px;
  font-size: 14px;
  color: var(--ink-mute);
}
.byline b { font-family: var(--font-display); font-weight: 620; color: var(--ink); }

/* ---------- reveal motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
  html.no-js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- misc ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }
