/*
 * `sharifi` — one engineer's résumé as an architect's drafting board.
 * Fetched, not compiled.
 *
 * Subject and visitor: Abolfazl Sharifi's résumé, read by a hiring CTO or a
 * founder looking for someone who builds with coding agents.
 * Tone: technical and hand-annotated — a drafting board, not a brochure.
 * The one detail: he draws systems that agents build, so the site is his
 * board: grid paper, pinned sheets with a strip of tape, figures drawn in ink
 * with notes in marker orange, a live terminal session pinned beside his name,
 * and a drawing's title block as the footer. In the dark it is a cyanotype.
 *
 * Ink on grid paper, one blue for links and calls, marker orange only for the
 * notes and what is happening now. Headings in Estedad Black; body copy is
 * VazirmatnFD. Monospace only for Latin (tool names, the terminal): a Persian
 * word in a monospace fallback loses its joins. Never letter-spaced.
 *
 * Plain CSS, copied to `public/themes/sharifi.css` by
 * `scripts/build/sync-theme-assets.mjs`; it selects only the hooks the builder
 * publishes (`sb-*`, `data-*`).
 *
 * @see specs/themes
 */

@font-face {
  font-family: 'EstedadFD';
  src: url('fonts/estedad/Estedad-FD-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EstedadFD';
  src: url('fonts/estedad/Estedad-FD-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root.theme-sharifi {
  --theme-font-display: 'EstedadFD';
  --background: #eef1f5;
  --foreground: #151a2d;
  --card: #fbfcfd;
  --card-foreground: #151a2d;
  --popover: #fbfcfd;
  --popover-foreground: #151a2d;
  --primary: var(--brand-primary, #1f4fd1);
  --primary-foreground: var(--brand-primary-foreground, #ffffff);
  --ring: var(--brand-primary, #1f4fd1);
  --secondary: #e3e9fb;
  --secondary-foreground: #151a2d;
  --muted: #fbfcfd;
  --muted-foreground: #4f5870;
  --accent: #e3e9fb;
  --accent-foreground: #151a2d;
  --destructive: #c2410c;
  --destructive-foreground: #ffffff;
  --border: #cdd5e1;
  --input: #cdd5e1;

  --primary-50: oklch(from var(--brand-primary, #1f4fd1) 0.97 calc(c * 0.12) h);
  --primary-100: oklch(from var(--brand-primary, #1f4fd1) 0.93 calc(c * 0.25) h);
  --primary-200: oklch(from var(--brand-primary, #1f4fd1) 0.86 calc(c * 0.45) h);
  --primary-300: oklch(from var(--brand-primary, #1f4fd1) 0.76 calc(c * 0.7) h);
  --primary-400: oklch(from var(--brand-primary, #1f4fd1) 0.62 calc(c * 0.9) h);
  --primary-500: oklch(from var(--brand-primary, #1f4fd1) calc(l + 0.06) c h);
  --primary-600: var(--brand-primary, #1f4fd1);
  --primary-700: oklch(from var(--brand-primary, #1f4fd1) calc(l - 0.07) c h);
  --primary-800: oklch(from var(--brand-primary, #1f4fd1) calc(l - 0.14) c h);
  --primary-900: oklch(from var(--brand-primary, #1f4fd1) calc(l - 0.2) calc(c * 0.8) h);
  --primary-950: oklch(from var(--brand-primary, #1f4fd1) calc(l - 0.28) calc(c * 0.6) h);

  --brand-accent: var(--brand-secondary, #f2601f);
  --brand-accent-foreground: var(--brand-secondary-foreground, #ffffff);
  --chrome-ink: #151a2d;
  --chrome-ink-foreground: #fbfcfd;

  --surface-page: #eef1f5;
  --surface-alt: #fbfcfd;
  --surface-input: #ffffff;
  --surface-panel: #fbfcfd;
  --ink-secondary: #3b4257;

  --radius-step-sm: 3px;
  --radius-step-md: 4px;
  --radius-step-lg: 6px;
  --radius-step-xl: 8px;

  --sharifi-grid: #dde3ec;
  --sharifi-shadow: #cdd5e1;
  --sharifi-tape: rgb(255 214 102 / 0.72);
  --sharifi-mark: var(--brand-secondary, #f2601f);
  --sharifi-term: #0d1024;
  --sharifi-term-ink: #c9cff0;
  --sharifi-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --sharifi-display: var(--app-font-display);

  /* The résumé's own sheet (`ResumeSheet`) paints from `--glass-*`. */
  --glass-page: transparent;
  --glass-blur: 0px;
  --glass-blur-panel: 0px;
  --glass-surface: var(--card);
  --glass-surface-panel: var(--card);
  --glass-border: var(--foreground);
  --glass-shadow: 6px 6px 0 var(--sharifi-shadow);
  --glass-shadow-panel: 0 0 #0000;
  --glass-sheen: none;
  --glass-halo: none;
  --glass-ink: var(--foreground);
  --glass-body: var(--ink-secondary);
  --glass-soft: var(--muted-foreground);
  --glass-faint: var(--muted-foreground);
  --glass-accent: var(--primary);
  --glass-accent-warm: var(--sharifi-mark);
  --glass-ring: transparent;
  --glass-chip: var(--card);
  --glass-chip-border: var(--border);
  --glass-chip-ink: var(--foreground);
  --glass-chip-shadow: 0 0 #0000;
}

/* The dark board is a cyanotype: white lines on Prussian blue. */
@media (prefers-color-scheme: dark) {
  :root:not(.light).theme-sharifi {
    color-scheme: dark;
    --background: #0d2a6e;
    --foreground: #f4f7ff;
    --card: #11367f;
    --card-foreground: #f4f7ff;
    --popover: #11367f;
    --popover-foreground: #f4f7ff;
    --primary: oklch(from var(--brand-primary, #1f4fd1) 0.84 calc(c * 0.45) h);
    --primary-foreground: #0d2a6e;
    --secondary: rgb(255 255 255 / 0.1);
    --secondary-foreground: #f4f7ff;
    --muted: #11367f;
    --muted-foreground: #b8c8ee;
    --accent: rgb(255 255 255 / 0.1);
    --accent-foreground: #f4f7ff;
    --border: rgb(255 255 255 / 0.28);
    --input: rgb(255 255 255 / 0.32);
    --ring: oklch(from var(--brand-primary, #1f4fd1) 0.84 calc(c * 0.45) h);
    --chrome-ink: #071640;
    --surface-page: #0d2a6e;
    --surface-alt: #11367f;
    --surface-input: #0b2560;
    --surface-panel: #11367f;
    --ink-secondary: #d3ddf6;
    --sharifi-grid: rgb(255 255 255 / 0.09);
    --sharifi-shadow: rgb(0 0 0 / 0.28);
    --sharifi-tape: rgb(255 255 255 / 0.2);
    --sharifi-mark: oklch(from var(--brand-secondary, #f2601f) 0.82 calc(c * 0.9) calc(h + 20));
    --sharifi-term: #071640;
  }
}

/* Same palette as the media query above — change both. */
:root.dark.theme-sharifi {
  color-scheme: dark;
  --background: #0d2a6e;
  --foreground: #f4f7ff;
  --card: #11367f;
  --card-foreground: #f4f7ff;
  --popover: #11367f;
  --popover-foreground: #f4f7ff;
  --primary: oklch(from var(--brand-primary, #1f4fd1) 0.84 calc(c * 0.45) h);
  --primary-foreground: #0d2a6e;
  --secondary: rgb(255 255 255 / 0.1);
  --secondary-foreground: #f4f7ff;
  --muted: #11367f;
  --muted-foreground: #b8c8ee;
  --accent: rgb(255 255 255 / 0.1);
  --accent-foreground: #f4f7ff;
  --border: rgb(255 255 255 / 0.28);
  --input: rgb(255 255 255 / 0.32);
  --ring: oklch(from var(--brand-primary, #1f4fd1) 0.84 calc(c * 0.45) h);
  --chrome-ink: #071640;
  --surface-page: #0d2a6e;
  --surface-alt: #11367f;
  --surface-input: #0b2560;
  --surface-panel: #11367f;
  --ink-secondary: #d3ddf6;
  --sharifi-grid: rgb(255 255 255 / 0.09);
  --sharifi-shadow: rgb(0 0 0 / 0.28);
  --sharifi-tape: rgb(255 255 255 / 0.2);
  --sharifi-mark: oklch(from var(--brand-secondary, #f2601f) 0.82 calc(c * 0.9) calc(h + 20));
  --sharifi-term: #071640;
}

/* ── The board: grid paper under everything ───────────────────────────── */

.theme-sharifi .sb-frame {
  background:
    linear-gradient(var(--sharifi-grid) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--sharifi-grid) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--background);
  color: var(--ink-secondary);
}

.theme-sharifi :is(h1, h2, h3, .sb-heading, .sb-cta-title, .sb-resume-name) {
  font-family: var(--sharifi-display);
  color: var(--foreground);
  line-height: 1.35;
}

.theme-sharifi main :is(h1, h2) {
  font-weight: 900;
}

/* The caret after a page's title: he works in a terminal. */
.theme-sharifi main h1::after {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.12em;
  margin-inline-start: 0.15em;
  background: var(--sharifi-mark);
  animation: sharifi-blink 1.1s steps(1) infinite;
}

@keyframes sharifi-blink {
  50% {
    opacity: 0;
  }
}

.theme-sharifi main [data-block='heading'] h1 {
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.theme-sharifi main [data-block='heading'] h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
}

/* ── The header: his card where a logo would be ───────────────────────── */

.theme-sharifi .sb-chrome-header {
  border-bottom: 1.5px dashed var(--border);
  background: color-mix(in oklab, var(--background) 88%, transparent);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.theme-sharifi .sb-chrome-header .sb-section-inner {
  align-items: center;
}

.theme-sharifi .sb-chrome-header .sb-column:last-child {
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.theme-sharifi .sb-chrome-header .sb-resume-card {
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.theme-sharifi .sb-chrome-header .sb-resume-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border: 1.5px solid var(--foreground);
  box-shadow: 3px 3px 0 var(--sharifi-shadow);
}

.theme-sharifi .sb-chrome-header .sb-resume-available {
  display: none;
}

.theme-sharifi .sb-chrome-header .sb-resume-name {
  font-size: 1.15rem;
  line-height: 1.3;
}

.theme-sharifi .sb-chrome-header .sb-resume-headline {
  margin-top: 0.1rem;
  max-width: 22rem;
  overflow: hidden;
  color: var(--primary);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 63.99rem) {
  .theme-sharifi .sb-chrome-header .sb-resume-headline {
    display: none;
  }
}

.theme-sharifi .sb-chrome-header .sb-chrome-menu > ul {
  gap: 0.125rem;
}

.theme-sharifi .sb-chrome-header :is(.sb-chrome-menu-link, button.sb-chrome-theme, button.sb-chrome-locale) {
  border-radius: 4px;
  padding: 0.375rem 0.75rem;
  color: var(--ink-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: color 150ms, background-color 150ms;
}

.theme-sharifi .sb-chrome-header :is(.sb-chrome-menu-link, button.sb-chrome-theme, button.sb-chrome-locale):hover {
  color: var(--primary);
}

.theme-sharifi .sb-chrome-header .sb-chrome-menu-link[aria-current='page'] {
  background: var(--foreground);
  color: var(--background);
}

.theme-sharifi .sb-chrome-mega-panel {
  border: 1.5px solid var(--foreground);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 4px 4px 0 var(--sharifi-shadow);
}

/* ── Pinned sheets ─────────────────────────────────────────────────────
   A «muted» band is a sheet pinned to the board: ink edge, a hard offset
   shadow and a strip of tape. */

.theme-sharifi main .sb-section[data-sb-background='muted'] {
  background: transparent;
}

.theme-sharifi main .sb-section[data-sb-background='muted'] > .sb-section-inner {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1.5px solid var(--foreground);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 6px 6px 0 var(--sharifi-shadow);
}

.theme-sharifi main .sb-section[data-sb-background='muted'] > .sb-section-inner::before,
.theme-sharifi main [data-block='image'] figure::before,
.theme-sharifi .sb-resume-project::before,
.theme-sharifi .sb-cta::before {
  content: '';
  position: absolute;
  top: -11px;
  inset-inline-start: calc(50% - 46px);
  width: 92px;
  height: 22px;
  background: var(--sharifi-tape);
  transform: rotate(-3deg);
  pointer-events: none;
  z-index: 1;
}

/* The figure: a drawing pinned on its own. */
.theme-sharifi main [data-block='image'] figure {
  position: relative;
}

.theme-sharifi main [data-block='image'] img {
  border: 1.5px solid var(--foreground);
  border-radius: 4px;
  box-shadow: 6px 6px 0 var(--sharifi-shadow);
}

/* ── The live session: a <pre> in a text block is a terminal ───────────── */

/* Taped to the board like every other sheet. */
.theme-sharifi main [data-block='text']:has(pre) {
  position: relative;
}

.theme-sharifi main [data-block='text']:has(pre)::before {
  content: '';
  position: absolute;
  top: -12px;
  inset-inline-start: calc(50% - 46px);
  width: 92px;
  height: 22px;
  background: var(--sharifi-tape);
  transform: rotate(-3deg);
  z-index: 2;
  pointer-events: none;
}

.theme-sharifi main [data-block='text'] pre {
  margin: 0;
  padding: 2.75rem 1.25rem 1.25rem;
  position: relative;
  border: 1.5px solid var(--foreground);
  border-radius: 6px;
  background: var(--sharifi-term);
  color: var(--sharifi-term-ink);
  box-shadow: 8px 8px 0 var(--sharifi-shadow);
  transform: rotate(-1deg);
  font-family: var(--sharifi-mono);
  font-size: 0.8rem;
  line-height: 2;
  white-space: pre-wrap;
  text-align: left;
}

.theme-sharifi main [data-block='text'] pre::before {
  content: '~/simacms · claude';
  position: absolute;
  inset-inline: 0;
  top: 0;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  color: #8f97c7;
  font-size: 0.72rem;
}

.theme-sharifi main [data-block='text'] pre span {
  display: block;
  animation: sharifi-line 0.45s ease both;
}

.theme-sharifi main [data-block='text'] pre span:nth-child(2) { animation-delay: 0.5s; }
.theme-sharifi main [data-block='text'] pre span:nth-child(3) { animation-delay: 1s; }
.theme-sharifi main [data-block='text'] pre span:nth-child(4) { animation-delay: 1.5s; color: #7ee0a0; }
.theme-sharifi main [data-block='text'] pre span:nth-child(5) { animation-delay: 2s; color: #7ee0a0; }
.theme-sharifi main [data-block='text'] pre span:nth-child(6) { animation-delay: 2.5s; color: #7ee0a0; }
.theme-sharifi main [data-block='text'] pre span:nth-child(7) { animation-delay: 3s; }
.theme-sharifi main [data-block='text'] pre span:first-child { color: #ffffff; }

.theme-sharifi main [data-block='text'] pre span:last-child::after {
  content: '';
  display: inline-block;
  width: 0.55em;
  height: 1em;
  vertical-align: -0.15em;
  background: var(--sharifi-mark);
  animation: sharifi-blink 1.1s steps(1) infinite;
}

@keyframes sharifi-line {
  from {
    opacity: 0.25;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Marks written into the text ───────────────────────────────────────
   A text block's own markup, drawn the board's way: a `code` standing alone
   is a sheet's mono label (`FIG. 1 · SIMACMS`), an `em` standing alone a
   hand-written note in marker orange, a `small` standing alone the
   open-to-work tag, and `code` among words a tool's chip. */

.theme-sharifi main [data-block='text'] code::before,
.theme-sharifi main [data-block='text'] code::after,
.theme-sharifi .sb-resume-chart-detail code::before,
.theme-sharifi .sb-resume-chart-detail code::after {
  content: none;
}

.theme-sharifi main [data-block='text'] p code,
.theme-sharifi .sb-resume-chart-detail code {
  display: inline-block;
  margin: 0.15rem 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.05rem 0.5rem;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--sharifi-mono);
  font-size: 0.76rem;
  font-weight: 400;
}

.theme-sharifi main [data-block='text'] p > code:only-child {
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  color: var(--primary);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  direction: ltr;
}

.theme-sharifi main [data-block='text'] p:has(> code:only-child) {
  margin-bottom: 0.25rem;
}

.theme-sharifi main [data-block='text'] p > em:only-child {
  display: inline-block;
  color: var(--sharifi-mark);
  font-family: var(--sharifi-display);
  font-style: normal;
  font-weight: 700;
  transform: rotate(-1.5deg);
}

.theme-sharifi main [data-block='text'] p > small:only-child {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  background: var(--card);
  color: var(--ink-secondary);
  font-size: 0.8rem;
}

.theme-sharifi main [data-block='text'] p > small:only-child::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #22a35a;
}

/* Two calls in a row sit side by side, as the board draws them. */
.theme-sharifi main .sb-column:has(> [data-block='button'] + [data-block='button']) {
  flex-flow: row wrap;
  align-items: center;
}

.theme-sharifi main .sb-column:has(> [data-block='button'] + [data-block='button']) > :not([data-block='button']) {
  flex-basis: 100%;
}

/* On a sheet, a call is a full-width line: the contact sheet's email and phone. */
.theme-sharifi main .sb-section[data-sb-background='muted'] .sb-column > [data-block='button'] {
  flex-basis: 100%;
  margin: 0;
}

.theme-sharifi main .sb-section[data-sb-background='muted'] .sb-column > [data-block='button'] .sb-button-row,
.theme-sharifi main .sb-section[data-sb-background='muted'] .sb-column > [data-block='button'] .sb-button {
  width: 100%;
}

.theme-sharifi main .sb-section[data-sb-background='muted'] .sb-column > [data-block='button'] .sb-button {
  justify-content: flex-start;
  font-family: var(--sharifi-mono);
  font-weight: 400;
  direction: ltr;
}

/* A drawing on a sheet is drawn ON it: no second frame, no second tape. */
.theme-sharifi main .sb-section[data-sb-background='muted'] [data-block='image'] figure::before {
  display: none;
}

.theme-sharifi main .sb-section[data-sb-background='muted'] [data-block='image'] img {
  border: 0;
  box-shadow: none;
}

/* ── Lists of things, each a small sheet ───────────────────────────────── */

.theme-sharifi .sb-feature,
.theme-sharifi .sb-post,
.theme-sharifi [data-block='icon-box'] > *,
.theme-sharifi .sb-resume-project {
  position: relative;
  border: 1.5px solid var(--foreground);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 5px 5px 0 var(--sharifi-shadow);
}

.theme-sharifi main .sb-section[data-sb-background='muted'] .sb-feature {
  box-shadow: none;
  border-color: var(--border);
}

.theme-sharifi .sb-feature {
  padding: 1.25rem 1.5rem;
}

.theme-sharifi .sb-feature-icon {
  color: var(--sharifi-mark);
}

.theme-sharifi .sb-feature-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.theme-sharifi .sb-post-eyebrow {
  color: var(--sharifi-mark);
  font-weight: 700;
}

.theme-sharifi .sb-post-image {
  border-bottom: 1.5px solid var(--foreground);
}

/* Pinned project cards, each at its own small angle. */
.theme-sharifi .sb-resume-projects {
  gap: 2rem;
  padding-top: 0.75rem;
}

@media (max-width: 40rem) {
  .theme-sharifi .sb-resume-projects {
    grid-template-columns: minmax(0, 1fr);
  }
}

.theme-sharifi .sb-resume-project {
  overflow: visible;
  transform: rotate(-1deg);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.theme-sharifi .sb-resume-project:nth-child(3n + 2) {
  transform: rotate(0.8deg);
}

.theme-sharifi .sb-resume-project:nth-child(3n) {
  transform: rotate(-0.5deg);
}

.theme-sharifi .sb-resume-project:hover {
  border-color: var(--foreground);
  transform: translateY(-4px);
  box-shadow: 8px 10px 0 var(--sharifi-shadow);
}

.theme-sharifi .sb-resume-project:focus-visible {
  outline: 2px solid var(--sharifi-mark);
  outline-offset: 3px;
}

.theme-sharifi .sb-resume-project img {
  border-bottom: 1.5px solid var(--foreground);
  border-radius: 3px 3px 0 0;
}

.theme-sharifi .sb-resume-project-body h3 {
  font-size: 1rem;
}

/* The toolbox: a parts list, a ruled row per group with its chips. Tool names
   are Latin, so mono. */
.theme-sharifi .sb-resume-skills {
  display: block;
}

.theme-sharifi .sb-resume-skill-group {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  border-top: 1px solid var(--border);
  padding-block: 0.75rem;
}

.theme-sharifi .sb-resume-skill-group h3 {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.theme-sharifi .sb-resume-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.theme-sharifi .sb-resume-skill-list > * {
  margin: 0;
}

.theme-sharifi .sb-resume-skill:not([data-measured]) {
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.05rem 0.5rem;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--sharifi-mono);
  font-size: 0.76rem;
  direction: ltr;
}

/* ── The history chart ─────────────────────────────────────────────────── */

.theme-sharifi .sb-resume-chart-bar {
  background: var(--primary);
}

.theme-sharifi .sb-resume-chart-bar[data-current] {
  background: var(--sharifi-mark);
}

.theme-sharifi .sb-resume-chart-row[data-selected='true'] {
  background: var(--secondary);
  box-shadow: inset -3px 0 0 var(--sharifi-mark);
}

.theme-sharifi:lang(en) .sb-resume-chart-row[data-selected='true'] {
  box-shadow: inset 3px 0 0 var(--sharifi-mark);
}

.theme-sharifi .sb-resume-chart-row[data-selected='true'] .sb-resume-chart-bar {
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--foreground);
}

.theme-sharifi .sb-resume-chart-year {
  background: var(--border);
  opacity: 0.6;
}

.theme-sharifi .sb-resume-chart-bar[data-kind='education'] {
  background: transparent;
  border: 1.5px dashed var(--primary);
}

.theme-sharifi .sb-resume-chart-detail {
  border: 1.5px solid var(--foreground);
  border-radius: 4px;
  background: var(--background);
}

.theme-sharifi .sb-resume-chart-detail h3 {
  font-family: var(--sharifi-display);
  font-weight: 900;
}

/* The contact form is a sheet too, with drawn fields. */
.theme-sharifi .sb-form {
  border: 1.5px solid var(--foreground);
  border-radius: 4px;
  background: var(--card);
  box-shadow: 6px 6px 0 var(--sharifi-shadow);
}

.theme-sharifi .sb-form :is(input, textarea) {
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: var(--surface-input);
}

.theme-sharifi .sb-form :is(input, textarea):focus-visible {
  border-color: var(--primary);
  outline: none;
}

/* ── Calls and buttons ─────────────────────────────────────────────────── */

.theme-sharifi .sb-button {
  border-radius: 4px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 120ms, filter 150ms, background-color 150ms, color 150ms;
}

.theme-sharifi .sb-button:active {
  transform: translateY(1px);
}

.theme-sharifi .sb-button[data-sb-variant='outline'] {
  border: 1.5px solid var(--foreground);
  color: var(--foreground);
  background: transparent;
}

.theme-sharifi .sb-button[data-sb-variant='outline']:hover {
  background: var(--foreground);
  color: var(--background);
}

.theme-sharifi main [data-block='button'] {
  display: inline-flex;
  margin-inline-end: 0.75rem;
}

.theme-sharifi .sb-cta,
.theme-sharifi .sb-cta[data-sb-tone] {
  position: relative;
  border: 1.5px solid var(--foreground);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink-secondary);
  box-shadow: 6px 6px 0 var(--sharifi-shadow);
}

.theme-sharifi .sb-cta-title {
  font-weight: 900;
}

/* The platform turns a primary-tone band's button white; this design's band is a card. */
.theme-sharifi .sb-cta .sb-button,
.theme-sharifi .sb-cta[data-sb-tone] .sb-button[data-sb-variant] {
  background: var(--primary);
  color: var(--primary-foreground);
}

.theme-sharifi .sb-stat-value {
  font-family: var(--sharifi-display);
  font-weight: 900;
  color: var(--sharifi-mark);
}

/* ── The footer: a drawing's title block ───────────────────────────────── */

.theme-sharifi .sb-chrome-footer {
  padding-block: 2rem 2.5rem;
  color: var(--ink-secondary);
  font-size: 0.875rem;
}

.theme-sharifi .sb-chrome-footer .sb-section:first-child > .sb-section-inner {
  border: 1.5px solid var(--foreground);
  border-radius: 2px;
  background: var(--card);
  gap: 0;
  padding: 0;
  align-items: stretch;
}

.theme-sharifi .sb-chrome-footer .sb-section:first-child .sb-column {
  align-self: stretch;
  justify-content: center;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
}

.theme-sharifi .sb-chrome-footer .sb-section:first-child .sb-column + .sb-column {
  border-inline-start: 1.5px solid var(--foreground);
}

/* A title block names its cells; the names are Latin, so mono. */
.theme-sharifi .sb-chrome-footer .sb-section:first-child .sb-column:nth-child(n + 2)::before {
  color: var(--primary);
  font-family: var(--sharifi-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  direction: ltr;
}

.theme-sharifi .sb-chrome-footer .sb-section:first-child .sb-column:nth-child(2)::before {
  content: 'ROLE';
}

.theme-sharifi .sb-chrome-footer .sb-section:first-child .sb-column:nth-child(3)::before {
  content: 'REACH';
}

.theme-sharifi .sb-chrome-footer .sb-section:first-child .sb-column:nth-child(4)::before {
  content: 'LINKS';
}

.theme-sharifi .sb-chrome-footer .sb-section:first-child .sb-column:nth-child(5)::before {
  content: 'SHEET';
}

.theme-sharifi .sb-chrome-footer .sb-resume-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border: 1.5px solid var(--foreground);
}

.theme-sharifi .sb-chrome-footer :is(.sb-resume-headline, .sb-resume-available) {
  display: none;
}

.theme-sharifi .sb-chrome-footer .sb-resume-name {
  font-size: 1rem;
}

.theme-sharifi .sb-chrome-footer a {
  color: inherit;
  transition: color 150ms;
}

.theme-sharifi .sb-chrome-footer a:hover {
  color: var(--primary);
}

.theme-sharifi .sb-chrome-copyright {
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

@media (max-width: 47.99rem) {
  .theme-sharifi .sb-features {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-sharifi .sb-chrome-footer .sb-section:first-child .sb-column + .sb-column {
    border-inline-start: 0;
    border-top: 1.5px solid var(--foreground);
  }

  .theme-sharifi .sb-resume-skill-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .theme-sharifi main [data-block='text'] pre {
    transform: none;
  }

  .theme-sharifi .sb-resume-project,
  .theme-sharifi .sb-resume-project:nth-child(n) {
    transform: none;
  }
}

/* ── Focus, motion, paper ──────────────────────────────────────────────── */

.theme-sharifi :focus-visible {
  outline-color: var(--sharifi-mark);
}

@media (prefers-reduced-motion: reduce) {
  .theme-sharifi main h1::after,
  .theme-sharifi main [data-block='text'] pre span,
  .theme-sharifi main [data-block='text'] pre span:last-child::after {
    animation: none;
  }

  .theme-sharifi .sb-resume-project,
  .theme-sharifi .sb-button {
    transition: none;
  }
}

@media print {
  .theme-sharifi .sb-frame {
    background: #ffffff;
  }

  .theme-sharifi .sb-chrome-header {
    position: static;
  }

  .theme-sharifi main h1::after,
  .theme-sharifi main [data-block='text'] pre span:last-child::after {
    display: none;
  }
}
