/* ozgurkarahan.com: the rules every page shares (DESIGN.md is the source of truth). Each page links this file with a
   ?v=<date> query, because the host caches unhashed files for ten minutes, and keeps only its own rules inline, after
   the link. Change a shared rule here, never in a page, then bump the date in every page's link. */

/* Self-hosted Bricolage Grotesque, Public Sans and IBM Plex Mono (SIL Open Font License 1.1; see the OFL files
   in fonts/). Latin and Latin Extended subsets only; served from this site so no font request goes to a third
   party. fonts/fonts.css keeps the same @font-face rules for the redirect stubs. */

/* IBM Plex Mono 400, latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 400, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono 500, latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 500, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Public Sans 400, latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public Sans 400, latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Public Sans 500, latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public Sans 500, latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Public Sans 600, latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public Sans 600, latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Public Sans 700, latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public Sans 700, latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Public Sans 800, latin-ext */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/public-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Public Sans 800, latin */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/public-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Bricolage Grotesque, variable weight (display face), latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Bricolage Grotesque, variable weight (display face), latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brand tokens: OKLCH is the source of truth (see DESIGN.md); hex values are the rendered sRGB. */
:root {
  color-scheme: light dark;
  --canvas: #f8f8fb;
  --surface: #ffffff;
  --ink: #191a2c;
  --muted: #535568;
  --line: #d9dae4;
  --brand: #2f2a6b;
  --brand-soft: #eeeffe;
  --brand-mid: #5e5cb3;
  --accent: #b8791a;
  --accent-text: #905c16;
  --accent-soft: #fef2dd;
  --deep: #181737;
  --on-deep: #f2f3f9;
  --on-deep-muted: #c7c9de;
  --cta: #ecb259;
  --on-cta: #191a2c;
  --display: "Bricolage Grotesque", "Public Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --measure: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0f0f19;
    --surface: #171825;
    --ink: #ebecf4;
    --muted: #b4b6c7;
    --line: #353647;
    --brand: #a7a9ef;
    --brand-soft: #23233e;
    --brand-mid: #8d8ee0;
    --accent: #e7ab54;
    --accent-text: #eab35f;
    --accent-soft: #3c2a13;
    --deep: #070715;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* The block scroll padding makes focus scrolling lift an element sitting at either edge of the window, so its ring stays whole. */
html { scroll-behavior: smooth; scroll-padding-block: 0.75rem; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.24em; }
a:hover { text-decoration-thickness: 0.14em; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand-mid);
  outline-offset: 5px;
  border-radius: 4px;
}
a, button, summary { scroll-margin-block: 0.75rem; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
p { max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 1rem; }
[id] { scroll-margin-top: 1.25rem; }
.shell { width: min(100% - 4rem, 74rem); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-200%);
  font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.mono { font-family: var(--mono); }

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 0.85rem; font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.brand-portrait { flex: none; }
.brand-portrait img { display: block; width: 60px; height: 60px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); object-fit: cover; }
.brand-text > span { display: block; margin-top: 0.12rem; font-family: "Public Sans", "Segoe UI", sans-serif; font-size: 0.9rem; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; max-width: 100%; font-size: 0.9rem; }
.primary-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; }
.primary-nav a:hover { text-decoration: underline; }
.primary-nav .contact-link { font-weight: 700; }

.button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  max-width: 100%;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.button { padding: 0.8rem 1.15rem; border-radius: 8px; text-align: center; text-decoration: none; background: var(--brand); color: var(--on-deep); }
.button:hover { background: var(--ink); }
@media (prefers-color-scheme: dark) {
  .button { background: var(--cta); color: var(--on-cta); }
  .button:hover { background: var(--on-deep); }
}
/* The quiet second action: same box as .button, outlined, never filled. */
.button.button-quiet { padding: calc(0.8rem - 1px) calc(1.15rem - 1px); border: 1px solid var(--brand); background: transparent; color: var(--brand); }
.button.button-quiet:hover { background: var(--brand-soft); color: var(--ink); border-color: var(--ink); }
.text-link { justify-content: flex-start; text-align: start; }
.button-light, .button-light:hover { background: var(--cta); color: var(--on-cta); }
.button-light:hover { background: var(--on-deep); }

.contact-field { color: var(--on-deep); background: var(--deep); }
.contact-field a:focus-visible { outline-color: var(--cta); }
.contact { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; padding-block: 4rem; align-items: end; }
.contact h2 { max-width: 16ch; font-size: clamp(2.1rem, 3.4vw, 3.2rem); }
.contact p { color: var(--on-deep-muted); margin-top: 1.2rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.7rem 1.3rem; align-items: center; }
.site-footer { display: flex; align-items: start; justify-content: space-between; gap: 2rem; padding-block: 1.5rem; border-top: 1px solid rgb(199 201 222 / 0.3); color: var(--on-deep-muted); font-size: 0.82rem; }
.site-footer p { max-width: 76ch; }
.site-footer > span { white-space: nowrap; }

/* Status chips: mono uppercase, 6px radius. The homepage's cards call them .topic-chip, the other pages .chip. */
.topic-chip, .chip {
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--brand);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.topic-chip-live, .chip-live { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-text); }

/* The block kicker's type. Its box stays with each page: a flex label on the homepage, an inline-flex 44px link on the others. */
.layer-kicker { align-items: center; gap: 0.75rem; color: var(--brand); font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
/* "You are here": five bars, the current block filled. */
.layer-marker { display: inline-grid; gap: 3px; width: 1.75rem; }
.layer-marker i { display: block; height: 5px; border-radius: 2px; background: var(--line); }
.layer-marker[data-layer="1"] i:nth-child(1),
.layer-marker[data-layer="2"] i:nth-child(2),
.layer-marker[data-layer="3"] i:nth-child(3),
.layer-marker[data-layer="4"] i:nth-child(4),
.layer-marker[data-layer="5"] i:nth-child(5) { background: var(--brand); }

@media (max-width: 720px) {
  .shell { width: min(100% - 2rem, 74rem); }
  /* Two short rows, 88px at most: the portrait and the name, then the nav on one line. Each nav link keeps a 44px
     target through a transparent extension above and below, so the row itself can stay 36px. */
  .masthead { align-items: stretch; flex-direction: column; gap: 0; padding-block: 0.375rem 0; min-height: 0; }
  .brand { align-self: start; gap: 0.65rem; min-height: 44px; font-size: 1.15rem; }
  .brand-portrait img { width: 40px; height: 40px; }
  .brand-text > span { display: none; }
  .primary-nav { flex-wrap: nowrap; width: 100%; font-size: 0.85rem; }
  .primary-nav a { position: relative; min-height: 36px; }
  .primary-nav a::before { content: ""; position: absolute; inset: -4px 0; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 1.7rem; padding-block: 3rem 2rem; }
  .contact h2 { max-width: 18ch; }
  .site-footer { flex-direction: column; gap: 0.75rem; }
}
@media (max-width: 480px) {
  /* Phones: the nav spreads across its row. */
  .primary-nav { justify-content: space-between; gap: 0.8rem; }
}
@media (max-width: 380px) {
  .primary-nav { gap: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
