/* ==========================================================================
   Junifaa Zatara — personal site. Editorial layout: one paper surface,
   hairline rules, numbered margin labels, typographic lists and tables.
   Type: Thmanyah Serif Display (headings) · Thmanyah Sans (text), self-hosted.
   ========================================================================== */

@font-face { font-family: 'Thmanyah Serif Display'; src: url('/assets/fonts/thmanyah-serif-display-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Thmanyah Serif Display'; src: url('/assets/fonts/thmanyah-serif-display-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('/assets/fonts/thmanyah-sans-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('/assets/fonts/thmanyah-sans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('/assets/fonts/thmanyah-sans-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Thmanyah Sans'; src: url('/assets/fonts/thmanyah-sans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F6F3EE;
  --ink: #171717;
  --ink-2: #3D3B37;
  --muted: #6F6A62;
  --rule: #D9D3C7;
  --rule-strong: #171717;
  --accent: #1F4D3F;

  --serif: 'Thmanyah Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'Thmanyah Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 48px);
  --label-col: 200px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
p a, .note a, .small a, figcaption a, .colophon__links a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--rule-strong);
  transition: color .15s;
}
p a:hover, .note a:hover, .small a:hover, figcaption a:hover, .colophon__links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
::selection { background: #E9E2D2; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; top: -60px; inset-inline-start: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.skip:focus { top: 12px; }
.small { font-size: .92rem; color: var(--muted); }
.small + .small { margin-top: 6px; }

/* ---------- headings ---------- */
.h2, .statement, .item h4, .steps h3, .quote p, .reading__t, .career__r, .colophon__name, .wordmark, .byline strong {
  font-family: var(--serif);
  font-weight: 700;
}
.h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.35; margin-bottom: 18px; max-width: 24ch; text-wrap: balance; }
html[lang="en"] .h2 { line-height: 1.15; }
.group {
  font-family: var(--sans); font-weight: 500; font-size: .95rem; color: var(--muted);
  margin: 52px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--rule-strong);
}
.intro { font-size: 1.12rem; font-weight: 300; color: var(--ink-2); max-width: 60ch; }
html[lang="en"] .intro { font-weight: 400; }
.note { margin-top: 26px; font-size: 1rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule-strong); }
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.wordmark { font-size: 1.25rem; }
.menu { display: flex; gap: clamp(16px, 2.4vw, 32px); font-size: .95rem; }
.menu a { padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .15s; }
.menu a:hover { border-color: var(--ink); }
.masthead__aside { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.langbtn { border-bottom: 1px solid var(--ink); padding: 2px 0; line-height: 1.3; }
.langbtn:hover { color: var(--accent); border-color: var(--accent); }
.menubtn { display: none; border-bottom: 1px solid var(--ink); padding: 2px 0; line-height: 1.3; }

/* ---------- opening ---------- */
.opening { padding: clamp(48px, 8vw, 112px) 0 clamp(56px, 8vw, 104px); }
.kicker { font-size: .95rem; color: var(--muted); margin-bottom: 22px; }
.statement {
  font-size: clamp(2.05rem, 1rem + 4.4vw, 4.4rem);
  line-height: 1.28; letter-spacing: 0; max-width: 22ch; text-wrap: balance;
}
html[lang="en"] .statement { line-height: 1.08; max-width: 18ch; }
.opening__grid {
  display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 48px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--rule);
  align-items: start;
}
.byline img { width: 160px; height: 160px; object-fit: cover; object-position: center top; border: 1px solid var(--rule-strong); }
.byline figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.byline strong { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.byline a { margin-top: 6px; align-self: flex-start; color: var(--ink); }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-weight: 300; color: var(--ink-2); max-width: 58ch; }
html[lang="en"] .lead { font-weight: 400; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.button {
  display: inline-block; background: var(--ink); color: var(--paper); padding: 13px 22px;
  font-weight: 500; font-size: .98rem; line-height: 1.3; border-radius: 2px; transition: background .15s;
}
.button:hover { background: var(--accent); }
.textlink { border-bottom: 1px solid var(--ink); padding-bottom: 2px; transition: color .15s, border-color .15s; }
.textlink:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- sections ---------- */
.sec { border-top: 1px solid var(--rule-strong); padding: 40px 0 clamp(64px, 8vw, 104px); }
.sec__grid { display: grid; grid-template-columns: var(--label-col) minmax(0, 1fr); gap: 48px; align-items: start; }
.sec__label {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 4px; font-size: .95rem; color: var(--muted); line-height: 1.5;
}
.sec__num { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.sec__body { min-width: 0; }

/* facts */
.facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.facts > div:first-child { border-top: 0; padding-top: 4px; }
.facts dt { color: var(--muted); font-size: .95rem; }
.facts dd { font-size: 1.05rem; }

/* service list */
.item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.item__n { font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.item h4 { font-size: 1.3rem; font-weight: 500; line-height: 1.4; margin-bottom: 6px; }
.item p { font-size: .98rem; color: var(--ink-2); max-width: 62ch; }
.item__link { font-size: .95rem; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; transition: color .15s, border-color .15s; }
.item__link:hover { color: var(--accent); border-color: var(--accent); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { border-top: 1px solid var(--rule); padding-top: 18px; }
.steps__n { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.4rem; margin-bottom: 10px; }
.steps h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 6px; }
.steps p { font-size: .96rem; color: var(--ink-2); }

/* about */
.prose p + p { margin-top: 18px; }
.prose p { color: var(--ink-2); font-size: 1.05rem; max-width: 64ch; }
.career { width: 100%; border-collapse: collapse; }
.career td { padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.career__y { width: 130px; color: var(--muted); font-size: .92rem; white-space: nowrap; padding-inline-end: 20px !important; font-variant-numeric: tabular-nums; }
.career__r { display: block; font-size: 1.05rem; font-weight: 500; line-height: 1.4; direction: ltr; text-align: start; }
.career__o { display: block; font-size: .92rem; color: var(--muted); margin-top: 3px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.twocol .group { margin-top: 44px; }

/* views */
.quote { border-top: 1px solid var(--rule); padding: 26px 0; }
.quote:first-child { border-top: 0; padding-top: 4px; }
.quote p { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.8rem); font-weight: 500; line-height: 1.6; max-width: 34ch; }
html[lang="en"] .quote p { line-height: 1.35; }
.testimony { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--rule-strong); max-width: 60ch; }
.testimony p:first-child { font-size: 1.15rem; color: var(--ink-2); }
.testimony__by { margin-top: 12px; font-size: .92rem; color: var(--muted); }

/* reading list */
.reading li { border-bottom: 1px solid var(--rule); }
.reading a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t a" "d a"; column-gap: 20px; padding: 20px 0; }
.reading__t { grid-area: t; font-size: 1.2rem; font-weight: 500; line-height: 1.45; }
.reading__d { grid-area: d; font-size: .95rem; color: var(--ink-2); margin-top: 4px; max-width: 62ch; }
.reading__a { grid-area: a; align-self: start; color: var(--muted); transition: color .15s; }
.reading a:hover .reading__t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.reading a:hover .reading__a { color: var(--ink); }

/* booking */
.handoff { display: none; margin-top: 8px; }
.handoff .button { margin-bottom: 12px; }
.embed { margin-top: 28px; border: 1px solid var(--rule-strong); background: var(--paper); }
.calendly-inline-widget { min-width: 320px; height: 720px; position: relative; }
.embed__loading { position: absolute; top: 24px; inset-inline-start: 24px; }
.calendly-inline-widget iframe { position: relative; z-index: 1; }

/* colophon */
.colophon { border-top: 1px solid var(--rule-strong); padding: 40px 0 48px; }
.colophon__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: start; }
.colophon__name { font-size: 1.15rem; }
.colophon__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .95rem; }
.colophon__copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--rule); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .menu { display: none; }
  .menu.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; inset-inline: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--rule-strong); padding: 6px var(--gutter) 14px;
  }
  .menu.is-open a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .menu.is-open a:last-child { border-bottom: 0; }
  .menubtn { display: inline-block; }
  .opening__grid, .sec__grid { grid-template-columns: 1fr; gap: 24px; }
  .sec__label { position: static; flex-direction: row; gap: 12px; align-items: baseline; }
  .byline { display: flex; gap: 18px; align-items: flex-start; }
  .byline img { width: 112px; height: 112px; }
  .byline figcaption { margin-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .twocol { grid-template-columns: 1fr; gap: 0; }
  .colophon__row { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .handoff { display: block; }
  .embed { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .item { grid-template-columns: 32px minmax(0, 1fr); }
  .item__link { grid-column: 2; justify-self: start; }
  .career__y { display: block; width: auto; padding-bottom: 0 !important; border-bottom: 0 !important; }
  .career td:last-child { display: block; padding-top: 4px; }
  .actions { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
