/*
Theme Name: Tina Studio
Author: RobyTech
Description: Tina McFarland’s editorial photography and drawing portfolio, integrated with the Tina Artist Portal.
Version: 2.1.8
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tina-studio
*/

:root {
    color-scheme: light;
    --paper: #f5f2e9;
    --ink: #203b30;
    --muted: #596258;
    --pink: #eed7e5;
    --acid: #e3ee98;
    --line: #c6cdc3;
    --gallery-columns: 3;
    --gallery-gap: 40px;
    --page-width: 1320px;
    --serif: Georgia, "Times New Roman", serif;
    --sans: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: 5px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, video, svg { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid #ad4c1a; outline-offset: 5px; }

.wrap { width: min(90%, var(--page-width)); margin-inline: auto; }
.skip { position: absolute; z-index: 100; top: -100px; left: 15px; padding: 10px; background: #fff; }
.skip:focus { top: 15px; }
.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; }

.site-header { position: sticky; z-index: 20; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { color: var(--ink); text-decoration: none; font: 26px/1.15 var(--serif); letter-spacing: -1px; }
.brand span { display: block; margin-top: 4px; font: 9px/1.4 var(--sans); letter-spacing: 2.6px; text-transform: uppercase; }
.brand--portal { cursor: default; }
.brand--logo { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-width: 180px; max-height: 60px; }
.nav ul { display: flex; gap: 30px; align-items: center; padding: 0; margin: 0; list-style: none; }
.nav a { font-size: 12px; text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; }
.nav a:hover, .footer-links a:hover { text-decoration: underline; }
.menu-toggle { display: none; padding: 6px 12px; border: 1px solid var(--ink); background: transparent; }

.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 10px; line-height: 1.4; letter-spacing: 2.5px; text-transform: uppercase; }
.hero { padding: 75px 0 85px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8%; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 11ch; margin: 0 0 30px; font: clamp(54px, 6.4vw, 92px)/1.04 var(--serif); font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
.bio { max-width: 440px; color: var(--muted); font-size: 15px; }
.bio p { margin: 0 0 1rem; }
.bio .hero-intro { color: var(--ink); }
.hero-portrait { min-width: 0; margin: 0; }
.hero-portrait img { width: 100%; height: auto !important; max-height: 78vh; aspect-ratio: auto !important; object-fit: contain; object-position: center; contain: none !important; }
.hero-portrait figcaption { margin-top: 12px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.text-link { display: inline-block; margin-top: 25px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; text-decoration-thickness: 1px; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, 3px); }

.transition { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.playground { overflow: hidden; padding: 70px 0 90px; background: var(--pink); }
.gallery-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.gallery-heading > div { min-width: 0; }
.gallery-heading h2 { max-width: 12ch; margin: 0; font: clamp(48px, 7vw, 92px)/1 var(--serif); font-weight: 400; letter-spacing: -.055em; text-wrap: balance; }
.gallery-heading .eyebrow { margin-bottom: 14px; }
.gallery-note { max-width: 240px; margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.star { display: inline-block; color: #7d351c; font: 95px/1 var(--serif); transform: rotate(-12deg); }

.featured-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .8fr); gap: 9%; align-items: center; margin: 50px 0 60px; }
.featured-work__link { min-width: 0; text-decoration: none; }
.featured-work .image-wrap { padding: 8px; background: var(--paper); }
.featured-work img { width: 100%; height: auto !important; max-height: 78vh; aspect-ratio: auto !important; object-fit: contain; contain: none !important; }
.featured-work figcaption { margin-top: 14px; font-size: 13px; }
.featured-note { position: relative; max-width: 390px; }
.featured-note h3 { margin: 15px 0; font: clamp(35px, 4vw, 58px)/1.1 var(--serif); font-weight: 400; letter-spacing: -1.5px; }
.featured-note p:not(.eyebrow) { max-width: 320px; margin: 0; color: var(--muted); font-size: 14px; }
.featured-note .star { margin-top: 18px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 30px; }
.filters button { min-height: 44px; padding: 9px 23px; border: 1px solid var(--ink); border-radius: 40px; background: transparent; color: var(--ink); font-size: 12px; }
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); color: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr)); gap: var(--gallery-gap) clamp(18px, 2.5vw, 30px); align-items: start; }
.work { position: relative; min-width: 0; margin: 0; }
.work a { display: block; text-decoration: none; }
.work .image-wrap { overflow: visible; padding: 8px; background: var(--paper); transition: transform .25s ease; }
.work:nth-child(2n) .image-wrap { transform: rotate(1.5deg); }
.work:nth-child(3n) .image-wrap { transform: rotate(-1.5deg); }
.work a:hover .image-wrap { transform: rotate(0) translateY(-4px); }
.work img { width: 100%; max-width: 100%; height: auto !important; min-height: 0; max-height: none !important; aspect-ratio: auto !important; object-fit: contain; contain: none !important; }
.work figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; }
.work small { font-size: 9px; letter-spacing: 1px; text-transform: uppercase; }
.work[hidden], .artwork-card[hidden] { display: none !important; }
.gallery-empty { padding: 25px 0; color: var(--muted); }
.gallery-footer { display: flex; justify-content: space-between; gap: 25px; margin-top: 50px; font-size: 12px; }
.gallery-footer a { text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.gallery-footer a:hover { text-decoration: underline; }
.tina-public-galleries { margin-top: 46px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); }
.tina-public-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.tina-public-gallery-card { display: flex; justify-content: space-between; gap: 20px; padding: 15px 17px; border: 1px solid color-mix(in srgb, var(--ink) 45%, transparent); text-decoration: none; font: 20px/1.25 var(--serif); }
.tina-public-gallery-card:hover { background: color-mix(in srgb, var(--paper) 55%, transparent); }

.painted-section { padding: 75px 0; border-bottom: 1px solid var(--line); }
.painted-section h2 { max-width: 18ch; margin: 0 0 20px; font: clamp(38px, 5vw, 62px)/1.1 var(--serif); font-weight: 400; letter-spacing: -.035em; }
.fairy-section { padding-block: 42px; }
.fairy-section .eyebrow { margin-bottom: 14px; }
.fairy-section h2 { margin-bottom: 10px; }
.bottom-collection { border-top: 1px solid var(--line); }
.bottom-collection__description { max-width: 700px; color: var(--muted); }
.painted-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; margin-top: 35px; }
.painted-grid .work { margin-top: 0; }
.painted-grid .work .image-wrap { padding: 10px; background: #faf8f2; }
.painted-grid .work figcaption { margin-top: 12px; font-size: 13px; }
.fairy-section .painted-grid { margin-top: 18px; }

.about-section { padding: 85px 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12%; }
.about-section h2 { max-width: 14ch; margin: 0; font: clamp(38px, 5vw, 54px)/1.15 var(--serif); font-weight: 400; }
.about-section p:not(.eyebrow) { max-width: 500px; margin: 0; color: var(--muted); }
.contact { padding: 75px 0; background: var(--acid); }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.contact h2 { max-width: 12ch; margin: 0; font: clamp(45px, 6vw, 80px)/1.1 var(--serif); font-weight: 400; letter-spacing: -2px; }
.pill-link { display: inline-block; padding: 15px 30px; border: 1px solid var(--ink); border-radius: 50px; text-decoration: none; white-space: nowrap; }
.pill-link { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pill-link small { font-size: 10px; letter-spacing: .5px; }
.pill-link:hover { background: var(--ink); color: var(--paper); }

.site-footer { padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 11px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a, .footer-menu a { text-decoration: none; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 20px; padding: 0; list-style: none; }
.site-footer--portal .footer-inner { justify-content: flex-start; }

.archive-page { padding-block: 65px 85px; }
.archive-heading { max-width: 850px; margin-bottom: 40px; }
.archive-heading h1 { margin: 0; font: clamp(48px, 7vw, 84px)/1.05 var(--serif); font-weight: 400; letter-spacing: -.05em; }
.archive-description { max-width: 600px; color: var(--muted); }
.archive-page .work-grid { margin-bottom: 30px; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.post-list { display: grid; gap: 25px; }
.post-list article { padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.post-list h2 { margin: 0 0 8px; font: 32px/1.2 var(--serif); font-weight: 400; }
.entry { max-width: 900px; padding: 65px 0; margin-inline: auto; }
.entry h1 { font: clamp(42px, 6vw, 70px)/1.15 var(--serif); }
.entry img { max-width: 100%; height: auto; margin: 25px 0; }
.entry-content > * { max-width: 100%; }
.entry-content .alignwide { width: 100%; }
.entry-content .wp-block-gallery { gap: 20px; }
.not-found { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; padding-block: 60px; }
.not-found h1 { max-width: 14ch; font: clamp(45px, 6vw, 80px)/1.05 var(--serif); font-weight: 400; }

.lightbox { max-width: 90vw; max-height: 92vh; padding: 20px; border: 0; background: var(--paper); color: var(--ink); }
.lightbox::backdrop { background: #15241ee8; }
.lightbox img { max-width: 80vw; max-height: 72vh; height: auto; margin: auto; object-fit: contain; }
.lightbox button { display: block; padding: 8px 16px; margin: 0 0 15px auto; border: 0; background: var(--ink); color: white; }
.lightbox p { margin: 12px 0 0; font-size: 13px; }
.tina-portal-preview-banner { position: relative; z-index: 40; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 9px 16px; background: var(--ink); color: #fff; text-align: center; font-size: 13px; }
.tina-portal-preview-banner a { color: #fff; font-weight: 700; }
.tina-portal-preview-work.work { margin: 0; }
.tina-portal-preview-work:nth-child(3n+2).work { margin-top: 55px; }
.tina-portal-preview-work:nth-child(3n).work { margin-top: 22px; }
.tina-portal-preview-work .image-wrap { padding: 8px; background: var(--paper); }
.tina-portal-preview-work:nth-child(2n) .image-wrap { transform: rotate(1.5deg); }
.tina-portal-preview-work:nth-child(3n) .image-wrap { transform: rotate(-1.5deg); }
.tina-portal-preview-work img { width: 100%; height: auto !important; min-height: 0; max-height: none !important; aspect-ratio: auto !important; object-fit: contain; contain: none !important; }
.tina-portal-preview-work figcaption[hidden] { display: none !important; }
.tina-portal-preview-work figcaption small { display: none !important; }

@media (max-width: 960px) {
    .hero-grid { gap: 5%; }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-heading h2 { font-size: clamp(48px, 8vw, 70px); }
    .about-grid { gap: 7%; }
}

@media (max-width: 800px) {
    .header-inner { min-height: 78px; }
    .nav ul { gap: 15px; }
    .hero { padding: 55px 0 65px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 35px; }
    .hero h1 { font-size: clamp(46px, 8vw, 60px); }
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gallery-heading { align-items: flex-start; }
    .gallery-heading .star { font-size: 70px; }
    .gallery-note { max-width: 220px; }
}

@media (max-width: 600px) {
    .wrap { width: 90%; }
    .admin-bar .site-header { top: 46px; }
    .header-inner { min-height: 75px; }
    .menu-toggle { display: block; }
    .nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; padding: 20px 5%; border-bottom: 1px solid var(--line); background: var(--paper); }
    .nav.is-open { display: block; }
    .nav ul { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
    .hero { padding: 45px 0; }
    .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 35px; }
    .hero h1 { max-width: 10ch; font-size: clamp(50px, 13vw, 64px); }
    .hero-portrait { width: 90%; margin-left: auto; }
    .transition { gap: 10px; font-size: 9px; letter-spacing: 1px; }
    .playground { padding: 45px 0 55px; }
    .gallery-heading { flex-direction: column; gap: 12px; }
    .gallery-heading h2 { font-size: clamp(50px, 14vw, 68px); }
    .gallery-heading .star { display: none; }
    .gallery-note { max-width: 320px; }
    .featured-work { grid-template-columns: 1fr; gap: 18px; margin: 35px 0; }
    .featured-note .star { display: none; }
    .featured-note h3 { margin: 12px 0; font-size: 38px; }
    .work-grid { grid-template-columns: minmax(0, 1fr); gap: 30px 18px; }
    .work .image-wrap { padding: 7px; }
    .work figcaption { flex-direction: column; gap: 2px; }
    .gallery-footer { flex-direction: column; gap: 12px; }
    .painted-section, .about-section { padding: 48px 0; }
    .painted-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact { padding: 50px 0; }
    .contact-inner { align-items: flex-start; flex-direction: column; }
    .pill-link { max-width: 100%; white-space: normal; }
    .footer-inner { flex-direction: column; }
    .footer-links { gap: 12px 18px; }
    .tina-portal-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tina-portal-preview-work:nth-child(n).work { margin-top: 0; }
    .tina-portal-preview-work:nth-child(even).work { margin-top: 30px; }
}

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