/*
Theme Name: Tony Vainosky Personal
Theme URI: https://tonyvainosky.com
Author: Tony Vainosky / 22 Frames Media LLC
Author URI: https://22framesmedia.com
Description: A refined, privacy-conscious personal portfolio with a built-in theme editor and Selected Work content manager.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tony-vainosky
*/

:root {
  --tv-bg: #f1eee7;
  --tv-surface: #fbfaf7;
  --tv-ink: #171c1d;
  --tv-muted: #626967;
  --tv-accent: #a9593b;
  --tv-secondary: #87938a;
  --tv-footer: #111616;
  --tv-line: color-mix(in srgb, var(--tv-ink) 18%, transparent);
  --tv-serif: Georgia, 'Times New Roman', serif;
  --tv-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --tv-container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--tv-bg);
  color: var(--tv-ink);
  font-family: var(--tv-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--tv-accent); color: #fff; }
.site-container { width: min(var(--tv-container), calc(100% - 64px)); margin-inline: auto; }
.section-space { padding-block: clamp(88px, 10vw, 150px); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10000; top: -80px; left: 18px; padding: 11px 15px; background: var(--tv-ink); color: #fff; }
.skip-link:focus { top: 18px; }

.site-header { position: sticky; z-index: 100; top: 0; background: color-mix(in srgb, var(--tv-bg) 92%, transparent); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); transition: border-color .2s ease, box-shadow .2s ease; }
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-bottom-color: var(--tv-line); box-shadow: 0 8px 22px rgba(20,27,27,.04); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 38px; }
.site-brand { display: inline-flex; align-items: center; gap: 13px; flex: none; }
.site-brand img { display: block; width: auto; max-width: 190px; max-height: 54px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--tv-ink); border-radius: 50%; font-family: var(--tv-serif); font-size: 15px; font-weight: 700; letter-spacing: -.04em; }
.brand-words { display: grid; line-height: 1.1; }
.brand-words strong { font-size: 14px; letter-spacing: .01em; }
.brand-words small { margin-top: 5px; color: var(--tv-muted); font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav .menu, .footer-nav .menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { position: relative; display: inline-block; padding-block: 10px; font-size: 13px; font-weight: 650; }
.site-nav .menu a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 5px; height: 1px; background: var(--tv-accent); transition: right .2s ease; }
.site-nav .menu a:hover::after, .site-nav .menu a:focus-visible::after, .site-nav .current-menu-item > a::after { right: 0; }
.header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--tv-ink); font-size: 12px; font-weight: 750; transition: background .2s ease, color .2s ease; }
.header-action:hover, .header-action:focus-visible { background: var(--tv-ink); color: #fff; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--tv-ink); background: transparent; cursor: pointer; }
.menu-toggle > span:not(.screen-reader-text) { display: block; width: 20px; height: 1px; margin: 6px auto; background: var(--tv-ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] > span:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.section-label { margin: 0 0 20px; color: var(--tv-accent); font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.home-hero { min-height: calc(100vh - 86px); display: flex; align-items: stretch; border-bottom: 1px solid var(--tv-line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); gap: clamp(58px, 8vw, 120px); align-items: center; padding-block: clamp(70px, 9vw, 130px); }
.hero-copy h1 { max-width: 850px; margin: 0; font-family: var(--tv-serif); font-size: clamp(58px, 7.3vw, 108px); font-weight: 400; letter-spacing: -.058em; line-height: .92; }
.hero-intro { max-width: 720px; margin: 34px 0; color: var(--tv-muted); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.65; }
.button-primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 53px; padding: 13px 19px; border: 1px solid var(--tv-accent); background: var(--tv-accent); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; transition: background .2s ease, border-color .2s ease, transform .2s ease; cursor: pointer; }
.button-primary:hover, .button-primary:focus-visible { border-color: var(--tv-ink); background: var(--tv-ink); transform: translateY(-2px); }
.button-primary span { font-size: 16px; font-weight: 400; }
.hero-visual { position: relative; min-height: 550px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--tv-secondary); color: #fff; }
.hero-visual::before, .hero-visual::after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; }
.hero-visual::before { width: 430px; height: 430px; left: -160px; top: -130px; }
.hero-visual::after { width: 300px; height: 300px; right: -120px; bottom: -100px; }
.hero-visual.has-image { background: linear-gradient(rgba(17,22,22,var(--hero-overlay)), rgba(17,22,22,var(--hero-overlay))), var(--hero-image) center/cover no-repeat; }
.hero-visual.has-image::before, .hero-visual.has-image::after { display: none; }
.hero-monogram { position: relative; z-index: 1; font-family: var(--tv-serif); font-size: clamp(105px, 15vw, 190px); letter-spacing: -.1em; line-height: 1; }
.hero-visual > p { position: relative; z-index: 1; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.5); font-size: 9px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.section-intro { display: grid; grid-template-columns: 1.08fr .72fr; gap: clamp(50px, 9vw, 130px); align-items: end; margin-bottom: 64px; }
.section-intro h2, .home-about h2, .closing-cta h2 { margin: 0; font-family: var(--tv-serif); font-size: clamp(46px, 5.4vw, 76px); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.section-intro > p, .section-intro > div:last-child > p { margin: 0; color: var(--tv-muted); font-size: 17px; line-height: 1.75; }
.focus-section { background: var(--tv-surface); }
.focus-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--tv-line); border-bottom: 1px solid var(--tv-line); }
.focus-list article { min-height: 280px; padding: 42px 36px 42px 0; border-right: 1px solid var(--tv-line); }
.focus-list article + article { padding-left: 36px; }
.focus-list article:last-child { padding-right: 0; border-right: 0; }
.focus-list h3 { max-width: 300px; margin: 0 0 92px; font-family: var(--tv-serif); font-size: 31px; font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
.focus-list p { margin: 0; color: var(--tv-muted); font-size: 14px; line-height: 1.7; }

.work-section { background: var(--tv-bg); }
.work-section .section-intro > div:last-child .text-arrow { margin-top: 19px; }
.text-arrow { display: inline-flex; align-items: center; gap: 12px; padding-bottom: 4px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 800; }
.text-arrow span { transition: transform .2s ease; }
.text-arrow:hover span, .text-arrow:focus-visible span { transform: translateX(4px); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.work-card { min-width: 0; }
.work-image { position: relative; height: clamp(260px, 31vw, 410px); display: flex; align-items: flex-end; overflow: hidden; background: var(--tv-secondary); color: #fff; }
.work-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,16,16,.25), transparent 45%); pointer-events: none; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.65,.25,1); }
.work-card:hover .work-image img { transform: scale(1.035); }
.work-image > span { position: relative; z-index: 1; padding: 24px; font-family: var(--tv-serif); font-size: 30px; }
.work-card:nth-child(3n+2) .work-image { background: var(--tv-accent); }
.work-card:nth-child(3n+3) .work-image { background: var(--tv-ink); }
.work-card-copy { padding: 24px 0 0; }
.work-label { margin: 0 0 9px !important; color: var(--tv-accent) !important; font-size: 9px !important; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.work-card h3 { margin: 0 0 12px; font-family: var(--tv-serif); font-size: 29px; font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.work-card-copy > p { margin: 0; color: var(--tv-muted); font-size: 14px; line-height: 1.65; }

.home-about { border-top: 1px solid var(--tv-line); background: var(--tv-surface); }
.home-about-grid { display: grid; grid-template-columns: .35fr .85fr .65fr; gap: clamp(36px, 7vw, 95px); align-items: start; }
.home-about-grid > .section-label { margin-top: 11px; }
.home-about-grid > div:last-child p { margin: 6px 0 24px; color: var(--tv-muted); font-size: 17px; line-height: 1.75; }

.closing-cta { padding-block: clamp(70px, 8vw, 110px); background: var(--tv-accent); color: #fff; }
.closing-cta .section-label { color: rgba(255,255,255,.68); }
.closing-grid { display: grid; grid-template-columns: 1fr .55fr; gap: clamp(50px, 9vw, 130px); align-items: end; }
.closing-grid > div:last-child p { margin: 0 0 25px; color: rgba(255,255,255,.82); font-size: 17px; }
.text-arrow-light { color: #fff; }

.site-footer { background: var(--tv-footer); color: #fff; }
.footer-main { display: grid; grid-template-columns: 1.1fr .65fr .65fr; gap: 60px; padding-block: 72px 55px; }
.footer-brand > a { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark-light { border-color: rgba(255,255,255,.65); }
.footer-brand strong { font-size: 15px; }
.footer-brand > p { max-width: 300px; margin: 20px 0 0; color: rgba(255,255,255,.55); font-size: 12px; }
.footer-nav .menu { display: grid; gap: 8px; }
.footer-nav a, .footer-social a { color: rgba(255,255,255,.76); font-size: 13px; }
.footer-nav a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: grid; justify-items: end; gap: 7px; text-align: right; }
.footer-social p { margin: 16px 0 0; color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-block: 21px; border-top: 1px solid rgba(255,255,255,.13); }
.footer-bottom p { margin: 0; color: rgba(255,255,255,.38); font-size: 10px; letter-spacing: .06em; }

.page-hero { padding-block: clamp(100px, 12vw, 175px); border-bottom: 1px solid var(--tv-line); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .55fr; gap: clamp(55px, 10vw, 150px); align-items: end; }
.page-hero h1 { max-width: 920px; margin: 0; font-family: var(--tv-serif); font-size: clamp(58px, 7vw, 100px); font-weight: 400; letter-spacing: -.055em; line-height: .94; }
.page-hero-grid > p { margin: 0; color: var(--tv-muted); font-size: 18px; line-height: 1.75; }
.page-hero-about { background: var(--tv-surface); }
.page-hero-work { background: var(--tv-secondary); color: #fff; }
.page-hero-work .section-label { color: rgba(255,255,255,.72); }
.page-hero-work .page-hero-grid > p { color: rgba(255,255,255,.77); }
.simple-page-hero .site-container, .work-single-hero .site-container { max-width: 1050px; }
.single-intro { max-width: 720px; margin: 30px 0 0; color: var(--tv-muted); font-size: 19px; }

.about-body-grid { display: grid; grid-template-columns: .7fr 1.1fr; gap: clamp(65px, 11vw, 160px); align-items: center; }
.about-portrait { min-height: 590px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--tv-secondary); background-position: center; background-size: cover; color: #fff; }
.about-portrait > span { font-family: var(--tv-serif); font-size: 120px; letter-spacing: -.09em; }
.about-portrait > p { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.45); font-family: var(--tv-serif); font-style: italic; text-align: center; }
.about-copy { max-width: 700px; }
.about-copy > p { margin: 0 0 28px; color: var(--tv-muted); font-family: var(--tv-serif); font-size: clamp(24px, 2.7vw, 35px); line-height: 1.5; }
.about-copy > p:first-child::first-letter { float: left; margin: 10px 11px 0 0; color: var(--tv-accent); font-size: 88px; line-height: .7; }
.about-copy .location-line { margin-top: 45px; padding-top: 22px; border-top: 1px solid var(--tv-line); font-family: var(--tv-sans); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.location-line span { color: var(--tv-accent); font-size: 17px; }

.work-grid-archive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px 30px; }
.work-grid-archive .work-image { height: clamp(330px, 42vw, 550px); }
.empty-work { grid-column: 1 / -1; max-width: 760px; padding: 70px; border: 1px solid var(--tv-line); background: var(--tv-surface); }
.empty-work h2 { margin: 0 0 20px; font-family: var(--tv-serif); font-size: 48px; font-weight: 400; line-height: 1; }
.empty-work p { margin: 0 0 28px; color: var(--tv-muted); }
.single-work-image { margin-top: -60px; position: relative; }
.single-work-image img { width: 100%; max-height: 780px; object-fit: cover; }

.contact-page { min-height: calc(100vh - 86px); padding-block: clamp(82px, 10vw, 145px); }
.contact-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(65px, 11vw, 155px); align-items: start; }
.contact-intro { position: sticky; top: 150px; }
.contact-intro h1 { margin: 0; font-family: var(--tv-serif); font-size: clamp(58px, 6.5vw, 92px); font-weight: 400; letter-spacing: -.055em; line-height: .94; }
.contact-intro > p:not(.section-label) { max-width: 580px; margin: 30px 0 0; color: var(--tv-muted); font-size: 18px; }
.contact-social { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 38px; }
.contact-social a { padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 12px; font-weight: 750; }
.contact-form-wrap { padding: clamp(30px, 5vw, 58px); background: var(--tv-surface); border: 1px solid var(--tv-line); }
.contact-form { display: grid; gap: 24px; }
.form-row label { display: flex; justify-content: space-between; margin: 0 0 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form-row label span { color: var(--tv-muted); font-size: 9px; }
.form-row input, .form-row textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--tv-ink); border-radius: 0; outline: 0; background: transparent; color: var(--tv-ink); }
.form-row input:focus, .form-row textarea:focus { border-bottom-color: var(--tv-accent); box-shadow: 0 2px 0 var(--tv-accent); }
.form-row textarea { resize: vertical; }
.contact-form .button-primary { justify-self: start; margin-top: 8px; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-message { margin: 0 0 28px; padding: 14px 17px; border-left: 3px solid var(--tv-secondary); background: var(--tv-bg); font-size: 13px; }
.form-success { border-left-color: #4f8364; }
.form-error { border-left-color: #b54d43; }

.editor-content { background: var(--tv-surface); }
.prose { max-width: 850px; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .post-row h2 { font-family: var(--tv-serif); font-weight: 400; letter-spacing: -.03em; line-height: 1.1; }
.prose h2 { margin: 1.8em 0 .6em; font-size: 48px; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 33px; }
.prose p, .prose li { color: var(--tv-muted); font-size: 18px; line-height: 1.8; }
.prose a { color: var(--tv-accent); text-decoration: underline; }
.post-list { max-width: 950px; }
.post-row { padding: 36px 0; border-bottom: 1px solid var(--tv-line); }
.post-row time { color: var(--tv-accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.post-row h2 { margin: 9px 0; font-size: 38px; }
.post-row p { color: var(--tv-muted); }
.error-page { min-height: 70vh; display: flex; align-items: center; padding-block: 90px; }
.error-page h1 { max-width: 800px; margin: 0; font-family: var(--tv-serif); font-size: clamp(70px, 10vw, 140px); font-weight: 400; letter-spacing: -.06em; line-height: .9; }
.error-page > .site-container > p:not(.section-label) { margin: 30px 0; color: var(--tv-muted); font-size: 18px; }

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr .75fr; gap: 50px; }
  .hero-copy h1 { font-size: clamp(55px, 8vw, 84px); }
  .hero-visual { min-height: 480px; }
  .site-nav .menu { gap: 20px; }
  .about-body-grid { grid-template-columns: .75fr 1fr; gap: 65px; }
}

@media (max-width: 860px) {
  .admin-bar .site-header { top: 46px; }
  .site-container { width: min(var(--tv-container), calc(100% - 40px)); }
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 86px 0 auto; height: calc(100vh - 86px); display: none; align-items: flex-start; flex-direction: column; gap: 24px; overflow-y: auto; padding: 36px 20px; background: var(--tv-bg); border-top: 1px solid var(--tv-line); }
  .admin-bar .site-nav { top: 132px; height: calc(100vh - 132px); }
  .site-nav.is-open { display: flex; }
  .site-nav .menu { width: 100%; display: grid; gap: 0; }
  .site-nav .menu li { border-bottom: 1px solid var(--tv-line); }
  .site-nav .menu a { display: block; padding: 16px 0; font-family: var(--tv-serif); font-size: 30px; font-weight: 400; }
  .site-nav .menu a::after { display: none; }
  .header-action { width: 100%; min-height: 50px; }
  .home-hero { min-height: auto; }
  .hero-grid, .page-hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 55px; }
  .hero-visual { min-height: 600px; }
  .section-intro { grid-template-columns: 1fr; gap: 25px; }
  .focus-list { grid-template-columns: 1fr; }
  .focus-list article, .focus-list article + article { min-height: 0; padding: 34px 0; border-right: 0; border-bottom: 1px solid var(--tv-line); }
  .focus-list article:last-child { border-bottom: 0; }
  .focus-list h3 { margin-bottom: 28px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid .work-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .home-about-grid { grid-template-columns: 1fr; gap: 25px; }
  .closing-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-social { justify-items: start; text-align: left; }
  .about-body-grid { grid-template-columns: 1fr; }
  .about-portrait { min-height: 650px; }
  .contact-intro { position: static; }
}

@media (max-width: 620px) {
  .site-container { width: min(var(--tv-container), calc(100% - 28px)); }
  .header-inner { min-height: 76px; }
  .brand-words small { display: none; }
  .site-nav { top: 76px; height: calc(100vh - 76px); }
  .admin-bar .site-nav { top: 122px; height: calc(100vh - 122px); }
  .section-space { padding-block: 78px; }
  .hero-grid { padding-block: 64px 28px; }
  .hero-copy h1 { font-size: clamp(50px, 15vw, 72px); }
  .hero-intro { margin-block: 25px; font-size: 17px; }
  .hero-visual { min-height: 440px; margin-inline: -14px; }
  .section-intro { margin-bottom: 42px; }
  .section-intro h2, .home-about h2, .closing-cta h2 { font-size: 46px; }
  .work-grid, .work-grid-archive { grid-template-columns: 1fr; gap: 45px; }
  .work-grid .work-card:last-child:nth-child(odd) { grid-column: auto; }
  .work-image, .work-grid-archive .work-image { height: 390px; }
  .footer-main { grid-template-columns: 1fr; gap: 38px; padding-block: 55px 42px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 7px; }
  .page-hero { padding-block: 80px; }
  .page-hero h1 { font-size: 57px; }
  .page-hero-grid { gap: 30px; }
  .about-portrait { min-height: 480px; }
  .about-copy > p { font-size: 25px; }
  .contact-page { padding-block: 70px; }
  .contact-intro h1 { font-size: 58px; }
  .contact-form-wrap { padding: 25px 19px; }
  .empty-work { padding: 38px 25px; }
  .single-work-image { margin-top: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

