/*
Theme Name: Miya Archive Sketch
Description: Miya Bailey artist archive sketch with original graphic placeholders.
Version: 0.5.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: miya-archive
*/

:root {
  --paper: #fff;
  --ink: #050505;
  --rail: 270px;
  --line: #d4d4d4;
  --focus: #2869cf;
  --tattoo-ink: #101215;
  --tattoo-texture-primary: url('assets/texture-04-portrait-scroll.svg');
  --tattoo-texture-menu: url('assets/texture-04-portrait-scroll.svg');
}

*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100svh; margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, .film-player__button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -10000px; top: 8px; z-index: 100; padding: 8px 12px; background: white; color: black; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.site-shell { display: flex; flex: 1; flex-direction: column; min-height: 0; margin-left: var(--rail); padding: 30px 65px 72px 35px; }
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--rail);
  height: 100svh;
  overflow-y: auto;
  padding: 25px 10px 22px;
  background-color: var(--tattoo-ink);
  background-image: linear-gradient(rgba(16, 19, 21, .91), rgba(16, 19, 21, .91)), var(--tattoo-texture-primary);
  background-size: auto, 270px 400px;
  color: #fff;
  text-align: center;
}
.site-logo { width: 225px; max-width: 100%; height: 90px; margin: 0 auto; }
.site-logo .custom-logo-link, .logo-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.site-logo .custom-logo-link img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-placeholder {
  overflow: hidden;
  background: transparent;
  text-decoration: none;
}
.logo-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.desktop-nav { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.desktop-nav a {
  display: block;
  width: 100%;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .085em;
  line-height: 40px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.desktop-nav a:hover, .desktop-nav a:focus-visible, .desktop-nav .is-current { color: #bdbdbd; }
.mobile-menu { display: none; }
.site-main { width: 100%; min-width: 0; }
.site-footer { position: relative; z-index: 21; width: 100%; }
.site-footer__credit {
  margin: 0;
  padding: 12px 65px;
  border-top: 1px solid var(--line);
  background: #f8f7f4;
  color: #52504b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  line-height: 1.5;
  text-align: right;
  text-transform: uppercase;
}
.site-footer__credit a { color: var(--ink); text-decoration: underline; text-decoration-color: #ed5b00; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer__credit a:hover { text-decoration-thickness: 2px; }

.landing__title {
  margin: 0 0 18px;
  font-size: clamp(50px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .8;
  text-align: center;
  text-transform: uppercase;
}
.landing__title span { display: inline; }
.landing__image { display: block; width: min(600px, 100%); margin: 0 auto; text-decoration: none; }
.landing__artwork { display: block; width: 100%; max-height: 680px; height: auto; object-fit: contain; }
.placeholder-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  border: 1px solid #d8d7d2;
  background: #f8f7f4;
  color: #686862;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}
.placeholder-art--hero { aspect-ratio: 1; font-size: 15px; }

.archive-title { margin: 0 0 22px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; text-transform: uppercase; }
.page-heading::before, .archive-title::before, .single-work h1::before {
  content: "";
  display: block;
  width: 52px;
  height: 8px;
  margin: 0 0 14px;
  background: repeating-linear-gradient(135deg, #101315 0 1px, transparent 1px 5px);
}
.art-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 0; }
.art-tile { min-width: 0; margin: 0; }
.art-tile[id] { scroll-margin-top: 100px; }
.art-tile__link { display: grid; place-items: center; width: 100%; aspect-ratio: .865; overflow: hidden; background: #fff; text-decoration: none; }
.art-tile__link img { width: 100%; height: 100%; object-fit: contain; }
.art-tile__link:hover { opacity: .82; }
.film-tile__title { margin: 9px 0 16px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.film-tile__title a { text-decoration: none; }
.film-tile__title a:hover, .film-tile__title a:focus-visible { text-decoration: underline; }
.placeholder-art--tile { font-size: 11px; }
.placeholder-art--illustration { background: #faf8f2; }
.placeholder-art--tattoo { background: #f4f4f2; }
.placeholder-art--painting { background: #f7f5f0; }
.placeholder-art--film { height: 49%; border-color: #d8d7d2; background: #eeedea; color: #686862; }
.empty-state { margin-top: 32px; font-size: 18px; }
.navigation.pagination { margin-top: 30px; }
.navigation.pagination a, .navigation.pagination span { display: inline-block; margin-right: 12px; }
.preview-only-links { margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: #666; font-size: 12px; }

.editorial-page, .detail-page { max-width: 760px; margin: 29px auto 0; }
.page-heading { margin: 0 0 28px; font-size: clamp(34px, 4vw, 48px); font-weight: 900; letter-spacing: -.045em; line-height: 1; text-transform: uppercase; }
.inside-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 36px; align-items: start; }
.placeholder-art--portrait { min-height: 440px; }
.placeholder-art--community { min-height: 290px; margin-bottom: 24px; }
.inside-feature h2, .contact-layout h2 { margin: 0 0 18px; font-size: clamp(26px, 3vw, 38px); font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.inside-feature p, .contact-layout p { font-size: 17px; }
.contact-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.contact-layout__method { padding: 24px; border: 1px solid var(--line); }
.journal-card { margin-bottom: 70px; }
.journal-card__image { display: block; margin-bottom: 18px; }
.journal-card__image img { width: 100%; height: auto; }
.journal-date, .work-meta { color: #666; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.journal-card h2 { margin: 5px 0; font-size: clamp(25px, 3vw, 36px); line-height: 1.1; }
.journal-card h2 a { text-decoration: none; }
.journal-card p, .entry-content { max-width: 68ch; font-size: 17px; }
.journal-card p { margin: 10px 0; }
.site-map-list { padding-left: 1.5rem; margin: 24px 0; }
.site-map-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.site-map-list a { font-weight: 700; }
.site-map-list small { display: block; color: #666; }
.text-link { display: inline-block; margin-top: 4px; border-bottom: 1px solid currentColor; font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link:hover { border-bottom-width: 2px; }
.tattoo-categories { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 29px; }
.tattoo-categories .text-link { margin-top: 0; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 14px; }
.single-work__image { margin-bottom: 20px; }
.single-work__image img { width: 100%; height: auto; }
.film-player { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 20px; overflow: hidden; background: var(--tattoo-ink); }
.film-player img, .film-player iframe, .film-player__button { display: block; width: 100%; height: 100%; }
.film-player img { object-fit: contain; }
.film-player iframe { border: 0; }
.film-player__button { padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; font: inherit; }
.film-player__label { position: absolute; bottom: 12px; left: 12px; padding: 6px 8px; background: var(--tattoo-ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.film-player--external { color: #fff; text-decoration: none; }
.film-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.placeholder-art--detail { min-height: 480px; }
.single-work h1, .detail-page h1 { margin: 6px 0 14px; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.045em; line-height: 1; }
.single-work__body { margin: 15px 0 55px; }
.entry-content p { margin: 0 0 1.3em; }
.entry-content a { text-underline-offset: .2em; }

.miya-cv { margin-top: 72px; scroll-margin-top: 110px; }
.miya-cv__intro { margin-bottom: 56px; }
.miya-cv__intro h2 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 38px); font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.miya-cv__intro p { margin: 0; }
.miya-cv__section { margin-top: 52px; }
.miya-cv__section h3 { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: clamp(22px, 2.5vw, 28px); font-weight: 900; line-height: 1.1; text-transform: uppercase; }
.miya-cv__entry { display: grid; grid-template-columns: 125px minmax(0, 1fr); gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.miya-cv__year { color: #666; font-size: 14px; font-weight: 700; }
.miya-cv__detail { min-width: 0; }

@media (min-width: 721px) and (max-width: 1100px) {
  .desktop-nav a { font-size: 17px; }
  .site-shell { padding-right: 35px; }
  .site-footer__credit { padding-right: 35px; }
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-shell { margin-left: 0; padding: 0 20px 48px; }
  .site-footer__credit { padding: 12px 20px; }
  .site-header {
    position: sticky;
    inset: auto;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% + 40px);
    height: 90px;
    margin: 0 -20px;
    padding: 0 20px;
    overflow: visible;
  }
  .site-logo { width: 160px; height: 60px; margin: 0; }
  .desktop-nav { display: none; }
  .mobile-menu { position: absolute; top: 23px; right: 16px; display: block; }
  .mobile-menu summary { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; list-style: none; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; background: #aaa; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { position: absolute; left: 0; content: ''; }
  .menu-icon::before { top: -6px; }
  .menu-icon::after { top: 6px; }
  .mobile-menu[open] .menu-icon { background: transparent; }
  .mobile-menu[open] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .mobile-menu[open] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .menu-close-label, .mobile-menu[open] .menu-open-label { display: none; }
  .mobile-menu[open] .menu-close-label { display: block; }
  .mobile-nav {
    position: absolute;
    top: 67px;
    right: -16px;
    display: flex;
    flex-direction: column;
    width: 100vw;
    max-height: calc(100svh - 90px);
    overflow-y: auto;
    padding: 0 10px 10px;
    border-top: 1px solid #242424;
    background-color: var(--tattoo-ink);
    background-image: linear-gradient(rgba(16, 19, 21, .93), rgba(16, 19, 21, .93)), var(--tattoo-texture-menu);
    background-size: auto, 270px 400px;
    text-align: left;
  }
  .mobile-nav a {
    display: block;
    padding: 0 10px;
    border-bottom: 1px solid #292929;
    color: white;
    font-size: 14px;
    font-weight: 800;
    line-height: 43px;
    text-decoration: none;
    text-transform: uppercase;
  }
  .mobile-nav a:hover, .mobile-nav a:focus-visible, .mobile-nav a[aria-current="page"] { color: #bdbdbd; }
  .landing__title {
    margin: 28px 0 24px;
    font-size: clamp(50px, 15.4vw, 62px);
    line-height: .82;
  }
  .landing__title span { display: block; }
  .landing__image { width: 100%; }
  .landing__artwork { max-height: none; }
  .art-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 0; }
  .site-main > .archive-title { margin-top: 30px; }
  .archive-title { margin-bottom: 18px; font-size: 28px; }
  .page-heading::before, .archive-title::before, .single-work h1::before { margin-bottom: 12px; }
  .editorial-page, .detail-page { margin-top: 38px; }
  .inside-feature, .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .placeholder-art--portrait { min-height: 320px; }
  .placeholder-art--detail { min-height: 300px; }
  .miya-cv { margin-top: 56px; }
  .miya-cv__intro { margin-bottom: 42px; }
  .miya-cv__section { margin-top: 42px; }
  .miya-cv__entry { grid-template-columns: 1fr; gap: 4px; padding: 15px 0; }
}
