/*
Theme Name: Akhiezer Patent Practice
Theme URI: https://aakhiezer.com
Author: Prepared for Alexander Akhiezer
Description: A black-and-red profile theme for a patent attorney: hero profile page, tabbed credentials, blog and video pages.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary, for Alexander Akhiezer
Text Domain: akhiezer
*/

:root {
  box-sizing: border-box;
  --red: #D9372B; --black: #000; --ink: #1a1a1a; --gray: #6b6b6b; --rule: #d8d8d8; --paper: #fff;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Red Hat Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.wrap { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* header */
.site-head { background: var(--black); position: sticky; top: 0; z-index: 30; padding-block: 1.1rem; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; flex-wrap: wrap; }
.mark { display: flex; align-items: center; gap: 0.9rem; color: #fff; text-decoration: none; font-weight: 300; font-size: clamp(1.25rem, 2.6vw, 2rem); letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.mark i { display: block; width: 4px; align-self: stretch; min-height: 2.1rem; background: var(--red); }
.head-end { display: flex; align-items: center; gap: 1.2rem 2rem; flex-wrap: wrap; }
.site-head nav ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.7rem; list-style: none; margin: 0; padding: 0; }
.site-head nav a { color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em; padding-block: 0.3rem; border-bottom: 3px solid transparent; }
.site-head nav a:hover { border-bottom-color: #666; }
.site-head nav a[aria-current="page"] { border-bottom-color: var(--red); }
.sq { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; background: var(--red); color: #fff; text-decoration: none; }
.sq:hover { filter: brightness(1.12); }
.sq svg { width: 1.35rem; height: 1.35rem; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sq svg.solid { fill: currentColor; stroke: none; }
@media (max-width: 52rem) { .site-head nav { order: 3; width: 100%; } .site-head nav ul { gap: 0.3rem 1.2rem; } .site-head nav a { font-size: 0.85rem; } }

.draft-banner { margin: 0; background: #fff1a8; color: #3a3200; text-align: center; padding: 0.5rem 1rem; font-size: 0.92rem; }
.todo { background: #FFF1A8; color: #3A3200; padding: 0 0.25em; border-radius: 2px; }

/* hero */
.hero-profile { position: relative; background: #000; min-height: clamp(34rem, 80vh, 50rem); display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; display: flex; justify-content: center; }
.hero-photo img { height: 100%; width: auto; max-width: none; object-fit: cover; object-position: 50% 15%; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 76%, transparent 100%); filter: brightness(0.82) contrast(1.02); }
.hero-profile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0) 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-bottom: 2rem; }
.hero-text { text-align: center; padding-bottom: 3.2rem; }
.hero-text h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.08; color: #fff; margin: 0; letter-spacing: -0.01em; }
.hero-text .role { margin: 0.9rem 0 0; color: #fff; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: clamp(1.05rem, 2vw, 1.5rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.6rem; color: #fff; }
.hero-actions .loc { display: flex; align-items: center; gap: 0.4rem; margin-right: 0.7rem; font-size: 1.05rem; }
.hero-actions .loc svg { width: 1.1rem; height: 1.1rem; stroke: #fff; fill: none; stroke-width: 1.8; }
@media (max-width: 40rem) { .hero-actions { justify-content: center; } .hero-actions .loc { width: 100%; justify-content: center; margin: 0 0 0.3rem; } .sq { width: 2.9rem; height: 2.9rem; } }

/* quote with red rules */
.quote { position: relative; text-align: center; padding: 7.2rem 1.5rem 0; }
.vline { display: block; width: 6px; background: var(--red); margin-inline: auto; }
.quote .vline.top { position: absolute; left: 50%; top: -4.5rem; transform: translateX(-50%); height: 9.5rem; z-index: 3; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.55; margin: 0 auto; max-width: 52rem; }
.quote .vline.bottom { height: 7rem; margin-top: 3.2rem; }

/* practice list and bio */
.profile-cols { display: grid; gap: 2rem 4.5rem; grid-template-columns: 1fr; padding-block: 4rem 4.5rem; }
@media (min-width: 56rem) { .profile-cols { grid-template-columns: minmax(14rem, 0.8fr) 1.8fr; } }
.practice-links { list-style: none; margin: 0; padding: 0; }
.practice-links li { border-bottom: 1px solid var(--rule); }
.practice-links li:last-child { border-bottom: 0; }
.practice-links a { display: block; color: var(--red); text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; padding-block: 1.05rem; }
.practice-links a:hover { text-decoration: underline; }
.bio p { margin: 0; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.8; color: #222; max-width: 46rem; }

/* vertical tabs */
.tabs-sec { border-top: 1px solid #111; }
.tabs-v { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-block: 3.5rem 5rem; }
@media (min-width: 56rem) { .tabs-v { grid-template-columns: minmax(15rem, 0.8fr) 1.8fr; gap: 0; } }
.tablist { display: none; }
.js .tablist { display: block; }
@media (min-width: 56rem) { .js .tablist { border-right: 1px solid #111; margin-right: 3rem; padding-right: 0; } }
.tablist button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 2rem 2rem 2rem 0; font: inherit; font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; color: #111; cursor: pointer; position: relative; }
.tablist button:last-child { border-bottom: 1px solid var(--rule); }
.tablist button:hover { color: var(--red); }
.tablist button[aria-selected="true"] { color: var(--red); }
@media (min-width: 56rem) { .tablist button[aria-selected="true"]::after { content: ""; position: absolute; right: -4px; top: 0; bottom: 0; width: 8px; background: var(--red); } }
@media (max-width: 55.99rem) { .js .tablist { display: flex; flex-wrap: wrap; gap: 0 1.4rem; border-bottom: 1px solid var(--rule); } .tablist button { width: auto; border: 0; padding: 0.9rem 0; font-size: 0.9rem; border-bottom: 3px solid transparent; } .tablist button[aria-selected="true"] { border-bottom-color: var(--red); } .tablist button:last-child { border-bottom: 3px solid transparent; } .tablist button[aria-selected="true"]:last-child { border-bottom-color: var(--red); } }
[role="tabpanel"] h3 { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 1.4rem; }
[role="tabpanel"] h3:not(:first-child) { margin-top: 2.6rem; }
.panel-title { position: static; font-size: 1.1rem; text-transform: uppercase; font-weight: 700; margin: 2rem 0 1rem; }
.js .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.bul { list-style: none; margin: 0; padding: 0; }
.bul li { position: relative; padding-left: 2.2rem; margin: 0 0 0.75rem; font-size: 1.15rem; line-height: 1.5; }
.bul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #6f6f6f; }
.intro-note { color: var(--gray); margin: 0 0 1.4rem; }

/* inner pages */
.page-title { padding-block: 4rem 1.5rem; }
.page-title::before { content: ""; display: block; width: 4.5rem; height: 6px; background: var(--red); margin-bottom: 1.6rem; }
.page-title h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.15; margin: 0; }
.page-title p { color: var(--gray); max-width: 40rem; margin: 1rem 0 0; font-size: 1.15rem; }
section.block { padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.block-grid { display: grid; gap: 1.5rem 4rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .block-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.8fr); } }
section.block h2 { text-transform: uppercase; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; margin: 0; }
.lede { color: var(--gray); margin: 0.6rem 0 0; max-width: 24rem; }
.more { margin: 1.5rem 0 0; }
.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.95rem; text-decoration: none; padding: 1rem 1.7rem; }
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible { outline-color: #000; }

.claim { font-family: var(--serif); margin: 0; }
.claim .preamble { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.25; font-weight: 400; margin: 0 0 1.4rem; display: flex; gap: 0.9rem; }
.claim .preamble .no { color: var(--red); font-style: italic; flex: none; }
.claim ol { list-style: none; margin: 0; padding: 0 0 0 clamp(1.4rem, 3.2vw, 2.4rem); display: grid; gap: 0.9rem; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.45; }
.claim li { display: grid; grid-template-columns: 2.4rem 1fr; }
.claim li span:first-child { color: var(--red); font-style: italic; }
.wherein { margin: 1.5rem 0 0; padding-left: clamp(1.4rem, 3.2vw, 2.4rem); font-size: clamp(1.1rem, 2vw, 1.4rem); font-style: italic; color: var(--gray); }
.claim-block { padding-block: 1rem 2rem; }

.areas { list-style: none; margin: 0; padding: 0; }
.areas li { display: grid; grid-template-columns: 1fr; gap: 0.15rem; padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.areas li:first-child { padding-top: 0; }
@media (min-width: 40rem) { .areas li { grid-template-columns: 17rem 1fr; gap: 2rem; } }
.areas strong { color: var(--red); text-transform: uppercase; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.areas span { color: #333; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 2rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem; }
.steps li::before { content: counter(step); font-family: var(--serif); font-style: italic; font-size: 2rem; line-height: 1; color: var(--red); }
.steps h3 { font-size: 1.1rem; text-transform: uppercase; font-weight: 700; margin: 0 0 0.3rem; letter-spacing: 0.02em; }
.steps p { margin: 0; color: #333; max-width: 38rem; }

.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding-block: 1.6rem; border-bottom: 1px solid var(--rule); }
.posts li:first-child { padding-top: 0; }
.posts a.t { font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 1.6rem); line-height: 1.3; color: var(--ink); text-decoration: none; }
.posts a.t:hover { color: var(--red); text-decoration: underline; }
.posts p { margin: 0.5rem 0 0; color: #444; max-width: 40rem; }
.meta { font-size: 0.9rem; color: var(--gray); margin-top: 0.5rem; }

.article { max-width: 42rem; padding-block: 3.5rem 4rem; }
.article h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.2; margin: 0 0 0.6rem; }
.article h2 { font-size: 1.1rem; text-transform: uppercase; font-weight: 700; margin: 2.4rem 0 0.7rem; letter-spacing: 0.02em; }
.article p, .article li { font-size: 1.15rem; line-height: 1.75; }
.article p { margin: 0 0 1.1rem; }
.article ul { padding-left: 1.2rem; margin: 0 0 1.2rem; }
.article li { margin-bottom: 0.4rem; }
.back { display: inline-block; margin-bottom: 1.4rem; font-size: 0.95rem; }
.draft-note { background: #fff1a8; color: #3a3200; padding: 0.6rem 0.9rem; font-size: 0.92rem; margin: 0 0 1.5rem; }
.disclaimer { margin-top: 2.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.92rem; color: var(--gray); }

.videos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.6rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .videos { grid-template-columns: 1fr 1fr; } }
.poster { aspect-ratio: 16 / 9; background: #111; display: grid; place-items: center; position: relative; overflow: hidden; }
.poster svg { width: 3.4rem; height: 3.4rem; color: var(--red); }
.poster span { position: absolute; left: 0.9rem; bottom: 0.7rem; font-size: 0.85rem; color: #bbb; }
.poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: 1rem 0 0.3rem; }
.videos p { margin: 0; color: #444; }

.contact .big { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; margin: 0 0 1.4rem; max-width: 34rem; }
.contact dl { display: grid; gap: 0.4rem 1.5rem; grid-template-columns: auto 1fr; margin: 1.8rem 0 0; max-width: 28rem; }
.contact dt { color: var(--gray); }
.contact dd { margin: 0; }
.note { margin: 1.5rem 0 0; font-size: 0.92rem; color: var(--gray); max-width: 34rem; }

/* footer */
.site-foot { background: #000; color: #fff; margin-top: 4rem; padding-block: 4rem 2.5rem; }
.foot-grid { display: grid; gap: 2.5rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .foot-grid { grid-template-columns: 1.1fr 1fr; } }
.foot-quote { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.3; margin: 0; max-width: 32rem; }
.foot-right { text-align: left; }
@media (min-width: 56rem) { .foot-right { text-align: right; } }
.foot-places { list-style: none; margin: 0; padding: 0; text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.02em; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
@media (min-width: 56rem) { .foot-places { justify-content: flex-end; } }
.foot-places li + li { border-left: 3px solid var(--red); padding-left: 1.4rem; }
.foot-follow { margin: 2rem 0 0; text-transform: uppercase; font-weight: 700; color: var(--red); letter-spacing: 0.02em; }
.foot-follow a { color: var(--red); text-decoration: none; }
.foot-legal { grid-column: 1 / -1; display: grid; gap: 1rem 2rem; color: #ddd; font-size: 0.95rem; }
@media (min-width: 56rem) { .foot-legal { grid-template-columns: auto 1fr; align-items: end; } .foot-legal .legal-text { text-align: right; } }
.foot-legal a { color: #ddd; }
.foot-legal p { margin: 0 0 0.3rem; }
.mark.small { font-size: 1.2rem; }
.mark.small i { min-height: 1.5rem; }

@media print {
  .site-head, .hero-actions, .tablist, .btn, .site-foot, .skip, .quote .vline { display: none !important; }
  [role="tabpanel"][hidden] { display: block !important; }
  .js .panel-title { position: static; width: auto; height: auto; clip: auto; margin: 1.2rem 0 0.6rem; }
  .hero-profile { min-height: 0; background: #fff; } .hero-photo { display: none; } .hero-text h1, .hero-text .role { color: #000; }
}

/* ---- WordPress additions ---- */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.site-head nav li.current-menu-item > a, .site-head nav li.current_page_item > a, .site-head nav li.current-menu-ancestor > a { border-bottom-color: var(--red); }
.ak-content img { max-width: 100%; height: auto; }
.ak-page > p, .ak-page > h2, .ak-page > h3, .ak-page > ul, .ak-page > ol { width: min(100% - 3rem, 46rem); margin-inline: auto; }
.ak-page > h2, .ak-page > h3 { margin-top: 2rem; }
.soon { background: #000; color: #fff; min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 1.5rem; }
.soon .mark { justify-content: center; font-size: clamp(1.6rem, 5vw, 3rem); }
.soon p { margin: 1.4rem 0 0; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.wp-block-embed, .ak-video .wp-block-embed { margin: 0; }
.wp-block-embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
