/*
Theme Name: Aziz Editorial
Template: twentytwentyfive
Version: 2.1
*/
* { box-sizing: border-box; }
body {
  --ink: #142a3f; --muted: #526475; --paper: #f2f6fa; --surface: #fff;
  --line: #dce5ed; --accent: #165583; --hero: #102d49; --hero-ink: #fff; --mark: #75e1cd;
  --display: system-ui, sans-serif; --radius: 12px;
  margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 system-ui, sans-serif;
}
body.technical {
  --paper: #f5f6f8; --ink: #15263b; --accent: #9b411c; --hero: #17283e;
  --mark: #ffc398; --line: #e3e7ec; --radius: 5px;
}
body.studio {
  --paper: #f2f1eb; --ink: #223c33; --accent: #385e48; --hero: #e5ebe0;
  --hero-ink: #223c33; --line: #d8e0d4; --mark: #385e48; --display: Georgia, serif;
}
body.journal {
  --paper: #fbf7ee; --ink: #292923; --accent: #8b492e; --hero: #f1e7d8;
  --hero-ink: #292923; --line: #e6dccf; --mark: #8b492e; --display: Georgia, serif; --radius: 4px;
}
body.blogger {
  --paper: #f5f5ee; --ink: #25332d; --accent: #3d6852; --hero: #e7ece0;
  --hero-ink: #25332d; --line: #d8e0d5; --mark: #3d6852;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.az-wrap { width: min(1170px, calc(100% - 48px)); margin-inline: auto; }
.az-strip { background: #0a2239; color: #c4deee; font-size: .7rem; font-weight: 700; letter-spacing: .13em; padding: 7px 0; }
.az-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.az-bar { min-height: 86px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-block: 13px; }
.az-brand { margin-right: auto; color: var(--ink); font: 750 clamp(1.45rem, 3vw, 2rem)/1.1 var(--display); letter-spacing: -.035em; text-decoration: none; }
.az-bar nav { display: flex; gap: 20px; }
.az-bar nav a { color: var(--ink); font-size: .9rem; text-decoration: none; }
.az-bar nav a:hover, .az-card h2 a:hover, .az-card h3 a:hover { text-decoration: underline; }
.az-bar .search-form { display: flex; gap: 5px; margin: 0; }
.az-bar .search-field, .az-bar .search-submit { padding: .42em .6em; font: inherit; font-size: .84rem; border: 1px solid var(--line); border-radius: 3px; }
.az-bar .search-field { width: min(20vw, 145px); }
.az-bar .search-submit { color: var(--ink); background: var(--paper); cursor: pointer; }
.az-main { min-height: 55vh; }
.az-hero { margin-top: 34px; border-radius: var(--radius); overflow: hidden; background: var(--hero); color: var(--hero-ink); }
.az-hero.has-image { display: grid; grid-template-columns: 1.04fr .96fr; }
.az-hero-copy { padding: clamp(30px, 5vw, 72px); align-self: center; }
h1,h2,h3 { font-family: var(--display); line-height: 1.16; letter-spacing: -.035em; overflow-wrap: anywhere; }
.az-hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.15rem); max-width: 16ch; }
.az-hero-copy > p { max-width: 45ch; font-size: 1.1rem; }
.az-button { display: inline-block; background: var(--surface); color: var(--ink); padding: .65em 1.08em; font-weight: 700; border-radius: 3px; text-decoration: none; }
.az-button:hover { text-decoration: underline; }
.az-hero .az-pick { margin: 21px 0 0; font-size: .92rem; }
.az-pick a { color: var(--mark); }
.az-hero-image { min-height: 300px; }
.az-hero-image img, .az-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.technical .az-hero { border-left: 7px solid #ec783a; }
.technical .az-hero.has-image { grid-template-columns: 1fr 1fr; }
.studio .az-hero { background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; }
.studio .az-hero-copy { padding: clamp(26px,5vw,70px) 0; }
.studio .az-hero h1 { max-width: 19ch; }
.journal .az-hero { border: 1px solid var(--line); }
.journal .az-hero-image { margin: 20px; border-radius: 2px; overflow: hidden; }
.az-library { padding-block: 36px 68px; scroll-margin-top: 14px; }
.az-library > h1, .az-library > h2 { margin: 0 0 24px; font-size: clamp(1.7rem,4vw,2.45rem); }
.az-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.az-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.az-card-image { display: block; aspect-ratio: 16/10; overflow: hidden; }
.az-card-copy { padding: 18px 21px 22px; }
.az-card h2, .az-card h3 { font-size: 1.26rem; margin: .45em 0; }
.az-card h2 a, .az-card h3 a { color: var(--ink); text-decoration: none; }
.az-card p { margin: 0; color: var(--muted); }
.az-meta { color: var(--muted); font-size: .8rem; }
.az-reading { max-width: 810px; margin: 42px auto 64px; }
.az-reading h1 { margin: .5em 0 .2em; font-size: clamp(2.1rem,5vw,3.7rem); }
.az-cover { margin: 22px 0; }
.az-cover img { display: block; border-radius: var(--radius); }
.az-prose { font-size: 1.08rem; overflow-wrap: anywhere; }
.az-prose figure { margin-inline: 0; }
.az-prose h2 { margin-top: 1.55em; }
.az-footer { border-top: 1px solid var(--line); padding-block: 25px; }
.az-footer a { font-weight: 700; }
.pagination { margin-top: 26px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { padding: .3em .65em; border: 1px solid var(--line); }
.az-skip { position: absolute; transform: translateY(-150%); z-index: 20; background: white; padding: 8px; }
.az-skip:focus { transform: translateY(0); }
@media (max-width: 850px) { .az-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 630px) {
  .az-wrap { width: calc(100% - 30px); }
  .az-bar { gap: 10px 18px; }
  .az-bar .search-form { flex-basis: 100%; }
  .az-bar .search-field { width: min(52vw, 220px); }
  .az-hero.has-image, .technical .az-hero.has-image, .az-grid { grid-template-columns: 1fr; }
  .az-hero-image { min-height: 0; aspect-ratio: 16/10; }
  .journal .az-hero-image { margin: 0 15px 15px; }
}
