/* Raziye Chamanpara — portfolio styles. One file, no framework. */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 300 500; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("/assets/fonts/overpass.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --ink: #2E2B2B; --muted: #595858; --subtle: #7B7979; --rule: #D9D7D7;
  --paper: #F9F7F7; --gray: #F2F0F0; --white: #FFF;
  --accent: #E74C3C; --orange: #FA612A; --navy: #10408D; --blue: #0050DC;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Overpass", var(--sans);
  --mono: "Courier New", Courier, monospace;
  --pad: clamp(24px, 5vw, 64px);
  --gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 var(--sans); color: var(--muted); background: var(--white); text-rendering: optimizeLegibility; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--ink); text-wrap: balance; }
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding-left: 1.25em; }
li + li { margin-top: .5em; }

/* ---------- Layout ---------- */
.wrap { max-width: 1248px; margin-inline: auto; padding-inline: var(--pad); }
.wrap.narrow { max-width: calc(770px + 2 * var(--pad)); }
.sec { padding-block: clamp(56px, 8vw, 96px); }
.wrap > * + *, .card > * + *, .panel > * + *, .callout > * + *, .stack > * + * { margin-top: var(--gap); }
.card > * + *, .panel > * + *, .callout > * + * { margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--gap); }
.grid > * { margin: 0; }
.grid.mid { align-items: center; }
.badge { background: var(--bg); padding: 8px; }
.badge.pill { display: inline-block; border: 1px solid var(--bg); border-radius: 30px; padding: 8px 16px; justify-self: start; }
.badge.tag { display: inline-block; border-radius: 5px; padding: 4px 10px; justify-self: start; }
.split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--gap); flex-wrap: wrap; }
.split > :first-child { max-width: 560px; }

.card { border: 1px solid var(--rule); border-radius: 4px; padding: 24px; }
.callout { border: 1px solid var(--line, #0076C2); border-left-width: 4px; border-radius: 5px; padding: 32px; }
.panel { background: var(--bg, var(--gray)); border-radius: 4px; padding: 32px; }

/* ---------- Backgrounds ---------- */
.bg-ink { background: var(--ink); }
.bg-gray { background: var(--gray); }
.bg-paper { background: var(--paper); }
.bg-custom { background: var(--bg); }
.bg-texture { background: var(--paper) url("/assets/img/texture.webp") center / cover; }

/* ---------- Type ---------- */
.h-xl { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.h-l { font-size: clamp(30px, 4vw, 40px); line-height: 1.23; }
.h-m { font-size: clamp(26px, 3vw, 32px); line-height: 1.1; }
.h-s { font-size: 24px; line-height: 1.4; }
.h-xs { font-size: 20px; line-height: 1.4; }
.h-xxs { font-size: 14px; line-height: 1.4; }
.label { font-family: var(--sans); font-size: 16px; line-height: 1.5; font-weight: 400; color: var(--muted); }
.lead { font-size: 20px; line-height: 1.5; }
.mono { font-family: var(--mono); font-size: 20px; line-height: 1.4; letter-spacing: .5px; color: var(--ink); }
.mono.sm { font-size: 16px; letter-spacing: 0; }
.text > * + * { margin-top: 1em; }
.upper { text-transform: uppercase; }
.tc { text-align: center; }
.w300 { font-weight: 300; } .w500 { font-weight: 500; } .w600 { font-weight: 600; } .w700 { font-weight: 700; } .w800 { font-weight: 800; }

.ink { color: var(--ink); } .muted { color: var(--muted); } .subtle { color: var(--subtle); }
.light { color: var(--paper); } .light2 { color: #E8E6E6; } .white { color: var(--white); }
.accent { color: var(--accent); } .orange { color: var(--orange); } .blue { color: var(--blue); }
.navy { color: var(--navy); } .green { color: #28A745; } .red { color: #D50A0A; } .slate { color: #69727D; }

/* ---------- Media & icons ---------- */
.img img, .img video { margin-inline: auto; }
.img video { width: 100%; background: var(--ink); }
.rounded { border-radius: 8px; }
.icon { display: block; line-height: 0; }
.icon svg { width: var(--s); height: var(--s); fill: currentColor; }
.icon.tc svg { margin-inline: auto; }
.i24 { --s: 24px; } .i28 { --s: 28px; } .i32 { --s: 32px; } .i40 { --s: 40px; } .i50 { --s: 50px; }
.logo svg { width: auto; height: var(--s); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 16px 24px; border-radius: 4px; background: var(--accent); color: var(--paper);
  font: 500 16px/1.2 var(--sans); text-transform: uppercase; text-decoration: none; transition: background .2s; }
.btn:hover { background: #BD3A2B; }
.btn-ghost { background: transparent; color: var(--accent); padding-inline: 0; }
.btn-ghost::after { content: " ›"; }
.btn-ghost:hover { background: transparent; text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header { background: var(--paper) url("/assets/img/texture.webp") center / cover; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 24px; }
.brand, .site-header nav a { font-family: var(--mono); font-size: 20px; letter-spacing: .5px; color: var(--ink); text-decoration: none; }
.brand .accent { margin-left: .5em; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--accent); }

/* ---------- Home hero ---------- */
.hero .h-xl.upper { line-height: 1.33; }
.hero .split { margin-top: clamp(48px, 10vw, 140px); }

/* ---------- Footer ---------- */
.site-footer { padding-block: clamp(56px, 8vw, 96px); }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 48px; }
.contact > div { border-top: 1px solid var(--rule); padding-top: 24px; text-align: center; }
.contact h3 { margin-bottom: 12px; }
.contact a { font-size: 20px; color: var(--subtle); text-decoration: none; overflow-wrap: anywhere; }
.contact a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(min(var(--cols, 2), 2), minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid, .contact { grid-template-columns: minmax(0, 1fr); }
  .card, .callout, .panel { padding: 20px; }
  .site-header .wrap { padding-block: 16px; }
  .brand { font-size: 15px; letter-spacing: 0; }
  .site-header nav a { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
