/*
Theme Name: KB Foundry
Theme URI: https://kbstudio.net
Author: K-B Studio
Description: Type foundry theme for K-B Studio. Live Arabic-script type testers, typeface pages, works archive and CV.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: kb-foundry
*/

:root {
	--ink: #000;
	--paper: #fff;
	--muted: #6e6e6e;
	--muted-dark: #a8a8a8;
	--line: #dadada;
	--soft: #f2f2f2;
	--pad: clamp(16px, 2.4vw, 32px);
	--sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "Geist Mono", ui-monospace, "Apple Symbols", "Segoe UI Symbol", monospace;
	--fa: "Vazirmatn", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-variant-emoji: text; margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:not(.tf-tile):not(.motion-card):not(.work):hover { color: var(--muted); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

.mono { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 400; }
.muted { color: var(--muted); }
.fa { font-family: var(--fa); }
.rtl { direction: rtl; }
.nolink { text-decoration: none; }
.pad { padding-left: var(--pad); padding-right: var(--pad); }
.rule { border-top: 1px solid var(--ink); }
.rule-b { border-bottom: 1px solid var(--ink); }

/* Header */
.site-nav { padding: 14px var(--pad); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; border-bottom: 1px solid var(--ink); }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; padding: 8px 0; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand-tag { font-size: 11px; color: var(--muted); }
.menu { display: flex; flex-wrap: wrap; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; padding: 12px 0; display: inline-block; }
.menu a[aria-current="page"], .menu .current-menu-item > a { text-decoration: underline; text-underline-offset: 4px; }

/* Announcement */
.announce { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 12px var(--pad); background: var(--ink); color: var(--paper); text-decoration: none; }
.announce:hover { color: var(--muted-dark); }

/* Big titles */
.page-head { padding: clamp(32px, 5vw, 80px) var(--pad) clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.display { margin: 0; font-weight: 800; font-size: clamp(64px, 9vw, 150px); line-height: 0.85; letter-spacing: -0.06em; }
.statement { margin: 0; flex: 999 1 640px; font-weight: 600; font-size: clamp(40px, 5.6vw, 88px); line-height: 0.98; letter-spacing: -0.045em; max-width: 1100px; }
.lede { font-weight: 500; font-size: clamp(22px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.02em; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px 18px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 0; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--paper); color: var(--ink); }
.chip { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; min-height: 40px; padding: 8px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; border-radius: 0; text-decoration: none; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); color: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Section header row */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 0 var(--pad) 12px; border-bottom: 1px solid var(--ink); }
.sec-head h2 { margin: 0; }
.section { padding-top: clamp(56px, 7vw, 104px); }

/* Typeface grid */
.tf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 600px), 1fr)); }
.tf-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 420px; padding: 20px var(--pad); text-decoration: none; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); overflow: hidden; background: var(--paper); color: var(--ink); }
.tf-tile { transition: background-color .25s ease, color .25s ease; }
/* Black/white alternation: every other tile in one column, a checkerboard in two columns. */
.tf-grid > .tf-tile.is-dark { background: var(--paper); color: var(--ink); }
.tf-grid > .tf-tile.is-dark .muted { color: var(--muted); }
.tf-grid > .tf-tile:nth-child(even) { background: var(--ink); color: var(--paper); }
.tf-grid > .tf-tile:nth-child(even) .muted { color: var(--muted-dark); }
@media (min-width: 1200px) {
	.tf-grid > .tf-tile:nth-child(even) { background: var(--paper); color: var(--ink); }
	.tf-grid > .tf-tile:nth-child(even) .muted { color: var(--muted); }
	.tf-grid > .tf-tile:nth-child(4n+2), .tf-grid > .tf-tile:nth-child(4n+3) { background: var(--ink); color: var(--paper); }
	.tf-grid > .tf-tile:nth-child(4n+2) .muted, .tf-grid > .tf-tile:nth-child(4n+3) .muted { color: var(--muted-dark); }
}
/* Invert when pressed (click or tap); a light underline on hover only. */
.tf-grid > .tf-tile:hover .tf-name { text-decoration: underline; text-underline-offset: 5px; }
.tf-grid > .tf-tile:active, .tf-grid > .tf-tile.is-pressed { background: var(--ink); color: var(--paper); transition: none; }
.tf-grid > .tf-tile:active .muted, .tf-grid > .tf-tile.is-pressed .muted { color: var(--muted-dark); }
.tf-grid > .tf-tile:nth-child(even):active, .tf-grid > .tf-tile:nth-child(even).is-pressed { background: var(--paper); color: var(--ink); }
.tf-grid > .tf-tile:nth-child(even):active .muted, .tf-grid > .tf-tile:nth-child(even).is-pressed .muted { color: var(--muted); }
@media (min-width: 1200px) {
	.tf-grid > .tf-tile:nth-child(even):active, .tf-grid > .tf-tile:nth-child(even).is-pressed { background: var(--ink); color: var(--paper); }
	.tf-grid > .tf-tile:nth-child(even):active .muted, .tf-grid > .tf-tile:nth-child(even).is-pressed .muted { color: var(--muted-dark); }
	.tf-grid > .tf-tile:nth-child(4n+2):active, .tf-grid > .tf-tile:nth-child(4n+3):active, .tf-grid > .tf-tile:nth-child(4n+2).is-pressed, .tf-grid > .tf-tile:nth-child(4n+3).is-pressed { background: var(--paper); color: var(--ink); }
	.tf-grid > .tf-tile:nth-child(4n+2):active .muted, .tf-grid > .tf-tile:nth-child(4n+3):active .muted, .tf-grid > .tf-tile:nth-child(4n+2).is-pressed .muted, .tf-grid > .tf-tile:nth-child(4n+3).is-pressed .muted { color: var(--muted); }
}
.tf-grid > .tf-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: -6px; }
/* Grey dividers stay visible on both black and white tiles, so neighbours never merge. */
.tf-grid > .tf-tile { border-color: #8c8c8c; }
.tf-top, .tf-bottom { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tf-name { font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.tf-sample { text-align: center; line-height: 1.15; overflow-wrap: anywhere; direction: rtl; }
.tf-pending { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.tf-pending b { font-weight: 800; font-size: clamp(64px, 8vw, 128px); line-height: 0.9; letter-spacing: -0.05em; }
.tf-tile[hidden] { display: none; }

/* Tester bar */
.tester-bar { padding: 12px var(--pad); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.tester-bar input[type="text"] { flex: 1 1 280px; min-width: 0; min-height: 44px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 0; font-family: "Amiri", var(--fa); font-size: 20px; background: var(--paper); direction: rtl; }
.range { flex: 0 1 260px; display: flex; align-items: center; gap: 10px; }
.range input { flex: 1; accent-color: var(--ink); min-height: 44px; }
.feat { min-width: 64px; min-height: 44px; text-transform: none; }

/* Specimen rows */
.spec-row { border-bottom: 1px solid var(--ink); padding: 12px var(--pad) clamp(20px, 2.4vw, 36px); display: flex; flex-direction: column; gap: 4px; }
.spec-text { direction: rtl; line-height: 1.55; overflow-wrap: anywhere; }
.spec-text[contenteditable]:focus { outline: none; }

/* Single-specimen stage and weight axis */
.stage { min-height: clamp(260px, 36vw, 520px); display: flex; align-items: center; justify-content: center; padding: clamp(24px, 3vw, 48px) var(--pad); border-bottom: 1px solid var(--ink); overflow: hidden; }
.stage-text { width: 100%; text-align: center; line-height: 1.45; font-feature-settings: 'rlig' 1, 'liga' 1, 'calt' 1; -webkit-text-stroke: 0 currentColor; paint-order: stroke fill; }
.axis { padding: 14px var(--pad) 18px; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 10px; }
.axis-head { display: flex; align-items: center; gap: 16px; }
.axis-out { flex: 1; text-transform: none; font-variant-numeric: tabular-nums; }
.axis-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
.axis-range::-webkit-slider-runnable-track { height: 2px; background: var(--ink); }
.axis-range::-moz-range-track { height: 2px; background: var(--ink); }
.axis-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.axis-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.axis-ticks { display: flex; justify-content: space-between; gap: 8px; }
.axis-ticks button { background: none; border: none; padding: 8px 0; min-height: 36px; cursor: pointer; font: inherit; text-transform: inherit; letter-spacing: inherit; }
.axis-ticks button.is-on { text-decoration: underline; text-underline-offset: 4px; }
.axis-ticks button:first-child { text-align: left; }
.axis-ticks button:last-child { text-align: right; }

/* Typeface hero */
.crumbs { padding: 14px var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-bottom: 1px solid var(--ink); }
.crumbs nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.crumbs a { text-decoration: none; padding: 6px 0; }
.tf-hero { padding: clamp(24px, 3vw, 48px) var(--pad) 0; border-bottom: 1px solid var(--ink); }
.tf-hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; }
.tf-hero h1 { margin: 0; font-weight: 800; font-size: clamp(72px, 11vw, 180px); line-height: 0.85; letter-spacing: -0.06em; }
.tf-hero-glyphs { direction: rtl; font-size: clamp(120px, 20vw, 340px); line-height: 1.75; padding-top: 0.05em; }
.facts { margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--ink); }
.facts div { padding: 14px 16px 14px 0; display: flex; flex-direction: column; gap: 6px; }
.facts dd { margin: 0; font-size: 18px; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); margin: 0 calc(-1 * var(--pad)); }
.cta-row a { flex: 1 1 320px; display: flex; justify-content: space-between; padding: 20px var(--pad); text-decoration: none; }
.cta-row a:first-child { background: var(--ink); color: var(--paper); }
.cta-row a:first-child:hover { color: var(--muted-dark); }

/* OpenType cards */
.ot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); margin: 0 var(--pad); }
.ot-card { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ot-card header { padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.ot-card .ot-sample { padding: 10px 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.ot-card .ot-sample + .ot-sample { border-top: 1px solid var(--line); }
.ot-card .ot-text { direction: rtl; font-size: 44px; line-height: 1.6; overflow-wrap: anywhere; }

/* Glyphs */
.glyphs { display: flex; flex-wrap: wrap; border-top: 1px solid var(--ink); margin: 0 var(--pad); }
.glyph-big { flex: 1 1 340px; min-width: 0; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; padding: 16px; }
.glyph-big .g { text-align: center; font-size: 280px; line-height: 1.2; direction: rtl; }
.glyph-grid { flex: 999 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); align-content: start; }
.glyph-grid button { cursor: pointer; height: 84px; border: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 36px; line-height: 1; }
.glyph-grid button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Marks are shown on their own, on an invisible base */
.glyph-grid button.is-mark { font-size: 44px; }

/* Two-column text blocks */
.split { padding: clamp(56px, 7vw, 104px) var(--pad) 0; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.split > :first-child { flex: 1 1 240px; }
.split > :last-child { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cols { padding: clamp(56px, 7vw, 104px) var(--pad) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 24px; }
.cols > div { border-top: 1px solid var(--ink); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.cols p { margin: 0; line-height: 1.6; }
.cols h2 { margin: 0; }

/* Big list rows */
.big-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ink); text-decoration: none; }
.big-list .t { font-weight: 600; font-size: clamp(32px, 4.4vw, 68px); line-height: 1; letter-spacing: -0.04em; }

/* Works */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.work { display: flex; flex-direction: column; text-decoration: none; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.work[hidden] { display: none; }
.work-img { aspect-ratio: 4 / 5; background: transparent; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.work:hover .work-img img { transform: scale(1.03); }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px clamp(12px, 1.6vw, 20px) 16px; border-top: 1px solid var(--ink); }
.work-meta .t { font-size: 15px; font-weight: 600; line-height: 1.3; }

/* Lift the light grey mockup backdrops in work photos to white */
.work-img img, .work-single figure img, .motion-media img, .tf-page .entry img, .single-kbf_motion .entry img { filter: url(#kbf-white); }
.motion-media { background: var(--paper); }
.motion-media img { object-fit: contain; }

/* Motion */
.motion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.motion-card { display: flex; flex-direction: column; text-decoration: none; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.motion-media { aspect-ratio: 1 / 1; background: var(--ink); overflow: hidden; position: relative; }
.motion-media video, .motion-media img, .motion-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.motion-media iframe { pointer-events: none; }
.motion-media > span { position: absolute; left: 12px; bottom: 12px; color: var(--muted-dark); }
.entry video, .entry iframe { max-width: 100%; }
.entry .wp-block-embed iframe, .entry iframe[src*="youtube"], .entry iframe[src*="vimeo"] { width: 100%; aspect-ratio: 16 / 9; height: auto; }

/* Single work */
.work-single { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.work-single figure { margin: 0; flex: 999 1 640px; min-width: 0; background: transparent; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 64px); border-right: 1px solid var(--ink); }
.work-single figure img { max-height: 86vh; width: auto; }
.work-single aside { flex: 1 1 320px; padding: clamp(24px, 3vw, 48px) var(--pad); display: flex; flex-direction: column; gap: 18px; }
.work-single h1 { margin: 0; font-weight: 700; font-size: clamp(32px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.035em; }
.work-nav { display: flex; justify-content: space-between; padding: 0 var(--pad); }
.work-nav a { padding: 18px 0; text-decoration: none; }
.entry p { margin: 0 0 1em; }
.entry > :last-child { margin-bottom: 0; }

/* CV */
.cv-index { padding: 12px var(--pad); display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--ink); }
.cv-sec { padding: clamp(40px, 5vw, 72px) var(--pad) 0; scroll-margin-top: 16px; }
.cv-sec h2 { margin: 0; font-weight: 700; font-size: clamp(36px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.cv-list { margin: 0; padding: 0; list-style: none; }
.cv-list li { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cv-list .n { flex: 0 0 40px; }
.cv-list .ti { flex: 999 1 420px; min-width: 0; font-weight: 500; line-height: 1.45; }
.cv-list .pl { flex: 1 1 280px; min-width: 0; font-size: 15px; line-height: 1.45; color: #4a4a4a; }
.cv-list .yr { flex: 0 0 72px; text-align: right; }
.portrait { aspect-ratio: 4 / 5; max-width: 360px; background: transparent; display: flex; align-items: flex-end; padding: 12px; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Contact / forms (incl. Contact Form 7) */
.contact { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--ink); }
.contact > div { flex: 1 1 420px; min-width: 0; padding: clamp(32px, 5vw, 80px) var(--pad); display: flex; flex-direction: column; gap: 24px; border-right: 1px solid var(--ink); }
.contact > section { flex: 999 1 560px; min-width: 0; padding: clamp(32px, 5vw, 80px) var(--pad); }
.contact .links a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--ink); text-decoration: none; }
.wpcf7 form p { margin: 0; }
.wpcf7 label { display: block; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; padding: 14px 0 6px; border-top: 1px solid var(--ink); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 textarea { width: 100%; font-family: var(--sans); font-size: 22px; text-transform: none; letter-spacing: 0; min-height: 52px; padding: 4px 0 12px; border: none; border-radius: 0; background: transparent; }
.wpcf7 textarea { font-size: 20px; min-height: 160px; border-bottom: 1px solid var(--ink); resize: vertical; }
.wpcf7 input[type="submit"] { margin-top: 20px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; min-height: 52px; padding: 14px 28px; border: none; border-radius: 0; background: var(--ink); color: var(--paper); }
.wpcf7 input[type="submit"]:hover { background: #333; }
.wpcf7-not-valid-tip { font-family: var(--mono); font-size: 12px; color: #b4231a; padding-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; }
.wpcf7-spinner { vertical-align: middle; }

/* Info: calmer opening paragraph */
.info-lede { font-size: clamp(19px, 1.8vw, 25px); line-height: 1.4; }

/* Contact: calmer scale */
.contact-title { font-size: clamp(44px, 5.4vw, 84px); }
.contact-lede { font-size: clamp(18px, 1.6vw, 22px); }
.contact > div, .contact > section { padding-top: clamp(24px, 3.4vw, 48px); padding-bottom: clamp(24px, 3.4vw, 48px); }
.contact > div { gap: 16px; }
.contact .wpcf7 label { padding: 10px 0 4px; }
.contact .wpcf7 input[type="text"], .contact .wpcf7 input[type="email"] { font-size: 17px; min-height: 40px; padding: 2px 0 8px; }
.contact .wpcf7 textarea { font-size: 17px; min-height: 110px; }
.contact .wpcf7 input[type="submit"] { min-height: 44px; padding: 10px 24px; margin-top: 14px; }

/* Generic page / blog */
.entry-wrap { padding: 0 var(--pad); max-width: 900px; }
.entry-wrap .entry { font-size: 18px; line-height: 1.7; }

/* Footer */
.site-footer { margin-top: clamp(56px, 7vw, 104px); background: var(--ink); color: var(--paper); padding: 24px var(--pad) 16px; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--paper); text-decoration: none; padding: 10px 0; }
.site-footer a:hover { color: var(--muted-dark); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-mark { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; overflow: hidden; }
.foot-mark .l { font-weight: 800; font-size: clamp(64px, 15vw, 240px); line-height: 0.82; letter-spacing: -0.06em; }
.foot-mark .r { font-family: "Jomhuria", serif; font-size: clamp(80px, 16vw, 260px); line-height: 0.62; direction: rtl; }

@media (max-width: 640px) {
	.tester-bar { position: static; }
	.work-single figure { border-right: none; border-bottom: 1px solid var(--ink); }
	.contact > div { border-right: none; border-bottom: 1px solid var(--ink); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .work-img img { transition: none; } }
