/* ============================================================
   salihkarahan.com — ana sayfa stil paketi
   Kaynak: www-blog-html-ui-templates/css (ITCSS + BEM). Yalnız ana
   sayfanın kullandığı katmanlar, main.css'teki sırayla birleştirildi.
   ============================================================ */

/* ---- settings/_settings.css ---- */
/* ===== CUSTOM PROPERTIES — LIGHT ===== */
:root {
  --bg: #fafafa;
  --bg-surface: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-hover: #d1d5db;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.08);
  --code-bg: #f7f8fc;
  --code-text: #1f2937;
  --code-header-bg: #eef2ff;
  --code-header-border: #dbe4ff;
  --code-lang-text: #4b5563;
  --code-copy-bg: #e5edff;
  --code-copy-text: #374151;
  --code-copy-hover-bg: #dbe7ff;
  --code-copy-hover-text: #1f2937;
  --code-copy-success: #15803d;
  --code-token-keyword: #6d28d9;
  --code-token-string: #0f766e;
  --code-token-comment: #6b7280;
  --code-token-type: #1d4ed8;
  --code-token-number: #c2410c;
  --code-token-attr: #a16207;
  --code-token-punctuation: #4b5563;
  --tag-bg: #f3f4f6;
  --tag-text: #374151;
  --callout-info-bg: #eff6ff;
  --callout-info-border: #3b82f6;
  --callout-info-text: #1e40af;
  --callout-warn-bg: #fffbeb;
  --callout-warn-border: #f59e0b;
  --callout-warn-text: #92400e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --container: 720px;
  --container-home: 560px;
  --header-h: 64px;
  --transition: 200ms ease;
  --transition-slow: 400ms ease;

  /* Hairline card surfaces — minimalist, flat, no drop shadow */
  --card-border: 1px solid var(--border);
  --card-shadow: none;
  --card-shadow-hover: none;

  /* Editorial accents — mono meta, index numerals, short rules */
  --rule: var(--border);
  --rule-strong: var(--text);
  --meta-size: 0.74rem;
  --control-size: 34px;
  --dummy-bg: #fef3c7;
  --dummy-text: #92400e;
  --dummy-border: #f59e0b;
}

/* ===== CUSTOM PROPERTIES — DARK ===== */
html[data-theme="dark"] {
  --bg: #0b0b0f;
  --bg-surface: #13131a;
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #1f2937;
  --border-hover: #374151;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-subtle: rgba(96, 165, 250, 0.1);
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --code-header-bg: rgba(255, 255, 255, 0.04);
  --code-header-border: rgba(255, 255, 255, 0.06);
  --code-lang-text: rgba(255, 255, 255, 0.4);
  --code-copy-bg: rgba(255, 255, 255, 0.08);
  --code-copy-text: rgba(255, 255, 255, 0.45);
  --code-copy-hover-bg: rgba(255, 255, 255, 0.16);
  --code-copy-hover-text: rgba(255, 255, 255, 0.75);
  --code-copy-success: #4ade80;
  --code-token-keyword: #cba6f7;
  --code-token-string: #a6e3a1;
  --code-token-comment: #6c7086;
  --code-token-type: #89b4fa;
  --code-token-number: #fab387;
  --code-token-attr: #f9e2af;
  --code-token-punctuation: #bac2de;
  --tag-bg: #1f2937;
  --tag-text: #d1d5db;
  --callout-info-bg: rgba(59, 130, 246, 0.1);
  --callout-info-border: #3b82f6;
  --callout-info-text: #93c5fd;
  --callout-warn-bg: rgba(245, 158, 11, 0.1);
  --callout-warn-border: #f59e0b;
  --callout-warn-text: #fcd34d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --dummy-bg: rgba(245, 158, 11, 0.14);
  --dummy-text: #fcd34d;
  --dummy-border: #d97706;
}

/* ---- generic/_generic.css ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- elements/_elements.css ---- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--transition), color var(--transition);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---- objects/_objects.css ---- */
main { flex: 1; }

.o-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.o-container--narrow {
  max-width: var(--container-home);
}

@media (max-width: 768px) {
  .o-container { padding: 0 1rem; }
}

/* ---- components/_accent-line.css ---- */
.accent-line {
  height: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---- components/_header.css ---- */
.header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  max-width: 1260px;
  margin: 0 auto;
  width: 100%;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), max-width 0.35s ease, padding 0.35s ease;
}

body.is-wide-mode .header {
  justify-content: flex-start;
  max-width: 100%;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

body.is-wide-mode .header__controls {
  margin-left: auto;
}

body.is-wide-mode .header__post-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.page-blog .header,
.page-blog-post .header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.header__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity var(--transition);
}

.header__logo:hover {
  opacity: 0.6;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header__nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.header__nav-link:hover,
.header__nav-link--active {
  color: var(--text);
}

.header__nav-link:hover::after,
.header__nav-link--active::after {
  width: 100%;
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header__search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: 0.75rem;
  flex: 1 1 auto;
  transition: opacity var(--transition), max-width var(--transition), width var(--transition), margin var(--transition);
}

/* underline-style search: icon left, "/" shortcut hint right, hairline below */
.header__search::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.55;
  background: currentColor;
  color: var(--text-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: opacity var(--transition), color var(--transition);
}

.header__search:focus-within::before {
  opacity: 1;
  color: var(--accent);
}

.header__search-input {
  width: 100%;
  height: var(--control-size);
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 0 1.6rem 0 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  transition: border-color var(--transition);
}

.header__search-input::placeholder {
  color: var(--text-muted);
}

.header__search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.header__search-input:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.header__search-kbd {
  position: absolute;
  right: 0.15rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.15rem 0.3rem;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.header__search:focus-within .header__search-kbd {
  opacity: 0;
}
.header__post-title {
  display: none;
}

.page-blog-post .header__post-title {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: max-width var(--transition), opacity var(--transition), color var(--transition);
}

.page-blog-post .header--show-post-title .header__post-title {
  opacity: 1;
  max-width: 560px;
  color: var(--text);
}

.page-blog-post .header--show-post-title .header__search {
  opacity: 0;
  width: 0;
  max-width: 0;
  margin-left: 0;
  margin-right: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .header {
    padding: 0 1rem;
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    row-gap: 0.6rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .header__nav {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .header__search {
    order: 3;
    width: 100%;
    margin: 0;
  }

  .page-blog-post .header__post-title {
    order: 3;
    width: 100%;
  }

  .page-blog-post .header--show-post-title .header__post-title {
    max-width: 100%;
  }
}

/* ---- components/_footer.css ---- */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: auto;
  display: grid;
  gap: 1.2rem;
  justify-items: center;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--text);
}

.footer__subscribe {
  width: min(980px, 100%);
  display: grid;
  gap: 0.65rem;
  justify-items: center;
}

.footer__subscribe-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.footer__subscribe-form {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) auto;
  gap: 0.6rem;
}

.footer__subscribe-input {
  height: 40px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  padding: 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.footer__subscribe-input::placeholder {
  color: var(--text-muted);
}

.footer__subscribe-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.footer__subscribe-btn {
  height: 40px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 0;
  padding: 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
}

.footer__subscribe-btn:hover {
  filter: brightness(1.04);
}

.footer__subscribe-btn:active {
  transform: translateY(1px);
}

.footer__subscribe-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.footer__subscribe-message {
  min-height: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__subscribe-message.is-success {
  color: #16a34a;
}

.footer__subscribe-message.is-error {
  color: #dc2626;
}

html[data-theme="dark"] .footer__subscribe-message.is-success {
  color: #4ade80;
}

html[data-theme="dark"] .footer__subscribe-message.is-error {
  color: #fca5a5;
}

@media (max-width: 860px) {
  .footer__subscribe-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer__subscribe-form {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ---- components/_theme-toggle.css ---- */
/* ===== THEME TOGGLE — bare icon button ===== */
.theme-toggle {
  background: none;
  border: 0;
  border-radius: 0;
  width: var(--control-size);
  height: var(--control-size);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--accent-subtle);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s ease;
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

.theme-toggle__icon--moon { display: block; }
.theme-toggle__icon--sun { display: none; }
html[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
html[data-theme="dark"] .theme-toggle__icon--sun { display: block; }

/* ---- components/_lang-toggle.css ---- */
/* ===== LANGUAGE TOGGLE — typographic "EN / TR", no box ===== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--font-mono);
  height: var(--control-size);
}

/* the slash lives on the container so it is never part of a button's hit area */
.lang-toggle::after {
  content: '/';
  order: 1;
  color: var(--text-muted);
  opacity: 0.55;
  font-size: 0.72rem;
  line-height: 1;
  pointer-events: none;
}

.lang-toggle__btn:nth-child(2) {
  order: 2;
}

.lang-toggle__btn {
  appearance: none;
  position: relative;
  border: 0;
  background: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  height: var(--control-size);
  padding: 0 0.35rem;
  cursor: pointer;
  transition: color var(--transition);
}

.lang-toggle__btn::after {
  content: '';
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 7px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.lang-toggle__btn:hover {
  color: var(--text);
}

.lang-toggle__btn.is-active {
  color: var(--text);
  cursor: default;
}

.lang-toggle__btn.is-active::after {
  transform: scaleX(1);
}

.lang-toggle__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ---- components/_social-link.css ---- */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--transition);
}

.social-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.social-link:hover {
  color: var(--text);
}

.social-link:hover::after {
  width: 100%;
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .social-link {
    font-size: 0.85rem;
  }
}

/* ---- components/_tag.css ---- */
/* ===== TAG — typographic, no box. "#" prefix + hairline underline on hover/active ===== */
.tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  font-family: var(--font-mono);
  font-size: var(--meta-size);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  padding: 0.05rem 0;
  text-decoration: none;
  cursor: default;
  transition: color var(--transition), border-color var(--transition);
}

.tag::before {
  content: '#';
  color: var(--text-muted);
  opacity: 0.7;
  transition: color var(--transition), opacity var(--transition);
}

a.tag,
button.tag {
  cursor: pointer;
}

a.tag:hover,
button.tag:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

a.tag:hover::before,
button.tag:hover::before,
.tag.is-active::before {
  color: var(--accent);
  opacity: 1;
}

.tag.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.tag--sm {
  font-size: 0.7rem;
}

/* optional usage count rendered as a small superscript (resume skills) */
.tag__count {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-left: 0.15rem;
  align-self: flex-start;
  font-weight: 400;
}

/* ---- pages/_home.css ---- */
.p-home {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  animation: fadeInUp 0.6s ease both;
}

.p-home__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    ".     name"
    ".     title"
    "photo about"
    ".     tags"
    ".     divider"
    ".     links";
  column-gap: 3rem;
  max-width: 900px;
  width: 100%;
}

.p-home__name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.p-home__title {
  grid-area: title;
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.p-home__title strong {
  font-weight: 600;
  color: var(--text);
}

/* Photo — sits only in the "about" row, vertically centered */
.p-home__avatar {
  grid-area: photo;
  align-self: center;
}

.p-home__avatar-photo {
  position: relative;
}

.p-home__avatar-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.p-home__avatar-img:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

/* Initials placeholder (when no photo) */
.p-home__avatar-initials {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.04em;
  border: 3px solid var(--border);
  transition: all var(--transition);
  user-select: none;
}

html[data-theme="dark"] .p-home__avatar-initials {
  background: #0f172a;
}

.p-home__avatar-initials:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle);
  transform: scale(1.03);
}

/* About Paragraphs */
.p-home__about {
  grid-area: about;
  margin-bottom: 1.75rem;
}

.p-home__about p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.p-home__about p:last-child {
  margin-bottom: 0;
}

/* Tags */
.p-home__tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.p-home__divider {
  grid-area: divider;
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

/* Social Links */
.p-home__links {
  grid-area: links;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .p-home__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "photo"
      "name"
      "title"
      "about"
      "tags"
      "divider"
      "links";
    text-align: center;
    justify-items: center;
  }

  .p-home__tags {
    justify-content: center;
  }

  .p-home__links {
    justify-content: center;
  }

  .p-home__name {
    font-size: 2.1rem;
  }

  .p-home__title {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .p-home {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .p-home__name {
    font-size: 1.75rem;
  }

  .p-home__links {
    gap: 0.75rem;
  }

  .p-home__avatar-initials {
    width: 130px;
    height: 130px;
    font-size: 2.5rem;
  }

  .p-home__avatar-img {
    width: 130px;
    height: 130px;
  }
}

/* ---- trumps/_trumps.css ---- */
/* ===== LANGUAGE TOGGLE (i18n) ===== */
html[data-lang="tr"] .i18n-en { display: none !important; }
html:not([data-lang="tr"]) .i18n-tr { display: none !important; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ===== PRINT ===== */
@media print {
  .header,
  .footer,
  .header__controls,
  .reading-progress,
  .accent-line,
  .post-nav,
  .footer__subscribe,
  .p-post__sidebar--left,
  .p-post__sidebar--right,
  .header__post-title,
  .code-block__copy-btn,
  .theme-toggle,
  .lang-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .p-post__content a {
    color: #000;
    text-decoration: underline;
  }

  .p-post__content a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }
}
