/*
Theme Name: Randy Dillon Portfolio
Theme URI: https://randydillon.com/
Author: Randy Dillon
Description: A modern, artwork-first portfolio theme for portraits, landscapes, and the complete studio archive.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: randydillon-portfolio
*/

:root {
  --rd-paper: #f5f1e8;
  --rd-paper-deep: #e9e1d3;
  --rd-ink: #1b1d1d;
  --rd-muted: #686760;
  --rd-line: rgba(27, 29, 29, 0.16);
  --rd-rust: #c55235;
  --rd-teal: #0d6670;
  --rd-white: #fffdf8;
  --rd-display: Georgia, "Times New Roman", serif;
  --rd-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rd-width: 1380px;
  --rd-reading: 760px;
  --rd-radius: 18px;
  --rd-shadow: 0 18px 50px rgba(35, 31, 25, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rd-ink);
  background: var(--rd-paper);
  font-family: var(--rd-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image: radial-gradient(rgba(27, 29, 29, 0.12) 0.55px, transparent 0.55px);
  background-size: 6px 6px;
}
a { color: inherit; text-decoration-color: var(--rd-rust); text-underline-offset: 0.18em; }
a:hover, a:focus { color: var(--rd-rust); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
::selection { color: var(--rd-white); background: var(--rd-teal); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000; top: 8px; left: 8px; width: auto; height: auto;
  padding: 12px 16px; clip: auto; color: var(--rd-white); background: var(--rd-ink);
}
.rd-shell { width: min(calc(100% - 40px), var(--rd-width)); margin-inline: auto; }
.rd-reading { width: min(calc(100% - 40px), var(--rd-reading)); margin-inline: auto; }

.site-header {
  position: sticky; z-index: 50; top: 0;
  border-bottom: 1px solid var(--rd-line);
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(16px);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.site-brand:hover { color: var(--rd-ink); }
.brand-mark {
  display: grid; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--rd-ink); border-radius: 50%;
  font-family: var(--rd-display); font-size: 17px; font-style: italic;
}
.brand-copy { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--rd-display); font-size: clamp(20px, 2vw, 27px); font-weight: 500; }
.brand-tagline { margin-top: 5px; color: var(--rd-muted); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.primary-nav a { font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav a:focus, .primary-nav .current-menu-item > a { color: var(--rd-rust); }

.rd-hero { padding: clamp(52px, 8vw, 112px) 0 clamp(72px, 9vw, 128px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr); gap: clamp(38px, 7vw, 100px); align-items: center; }
.rd-kicker { margin: 0 0 18px; color: var(--rd-rust); font-size: 12px; font-weight: 750; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-title, .page-title, .archive-title, .entry-title {
  margin: 0; font-family: var(--rd-display); font-weight: 400; letter-spacing: -0.035em; line-height: 0.98;
}
.hero-title { max-width: 760px; font-size: clamp(52px, 7.2vw, 108px); }
.hero-title em { color: var(--rd-teal); font-weight: 400; }
.hero-copy { max-width: 590px; margin: 28px 0 0; color: var(--rd-muted); font-size: clamp(18px, 2vw, 22px); }
.rd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.rd-button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 11px 19px; border: 1px solid var(--rd-ink); border-radius: 999px;
  font-size: 13px; font-weight: 720; letter-spacing: 0.045em; text-decoration: none; text-transform: uppercase;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}
.rd-button:hover, .rd-button:focus { color: var(--rd-white); background: var(--rd-ink); transform: translateY(-2px); }
.rd-button.is-accent { color: var(--rd-white); border-color: var(--rd-rust); background: var(--rd-rust); }
.rd-button.is-accent:hover, .rd-button.is-accent:focus { border-color: var(--rd-teal); background: var(--rd-teal); }

.hero-mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 230px 230px; gap: 14px; transform: rotate(1deg); }
.hero-art { position: relative; overflow: hidden; border-radius: var(--rd-radius); background: var(--rd-paper-deep); box-shadow: var(--rd-shadow); }
.hero-art:first-child { grid-column: 1 / 8; grid-row: 1 / 3; }
.hero-art:nth-child(2) { grid-column: 8 / 13; grid-row: 1; }
.hero-art:nth-child(3) { grid-column: 8 / 13; grid-row: 2; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; transition: transform 500ms ease; }
.hero-art:hover img { transform: scale(1.025); }
.hero-art-label {
  position: absolute; right: 10px; bottom: 10px; left: 10px;
  padding: 9px 12px; border-radius: 10px; color: #fff;
  background: linear-gradient(90deg, rgba(15,17,17,.88), rgba(15,17,17,.35));
  font-family: var(--rd-display); font-size: 15px;
}

.rd-section { padding: clamp(66px, 8vw, 110px) 0; border-top: 1px solid var(--rd-line); }
.rd-section.is-dark { color: var(--rd-white); background: var(--rd-ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-family: var(--rd-display); font-size: clamp(40px, 5vw, 68px); font-weight: 400; letter-spacing: -0.035em; line-height: 1; }
.section-heading p { max-width: 530px; margin: 0; color: var(--rd-muted); }
.is-dark .section-heading p { color: #bcb9b2; }
.section-link { flex: none; font-size: 12px; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 38px); }
.art-card { min-width: 0; }
.art-card-media {
  position: relative; display: grid; min-height: 250px; aspect-ratio: 4 / 3; place-items: center;
  overflow: hidden; border-radius: 14px; background: #ded8cc; text-decoration: none;
}
.is-dark .art-card-media { background: #2d2e2d; }
.art-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform 350ms ease, filter 350ms ease; }
.art-card:hover .art-card-media img { transform: scale(1.025); filter: saturate(1.06); }
.art-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(27,29,29,.48); background: linear-gradient(135deg, #ddd4c5, #eee8df); }
.art-placeholder span { font-family: var(--rd-display); font-size: clamp(30px, 5vw, 64px); font-style: italic; }
.art-card-meta { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 7px; color: var(--rd-muted); font-size: 11px; font-weight: 720; letter-spacing: 0.12em; text-transform: uppercase; }
.is-dark .art-card-meta { color: #aba9a3; }
.art-card-title { margin: 0; font-family: var(--rd-display); font-size: clamp(23px, 2.3vw, 32px); font-weight: 400; line-height: 1.13; }
.art-card-title a { text-decoration: none; }
.art-card-title a:hover, .art-card-title a:focus { color: var(--rd-rust); }
.art-card-excerpt { margin: 10px 0 0; color: var(--rd-muted); font-size: 14px; line-height: 1.55; }
.is-dark .art-card-excerpt { color: #c8c5be; }

.rd-archive-header { padding: clamp(58px, 8vw, 105px) 0 45px; }
.archive-title, .page-title { font-size: clamp(52px, 7vw, 92px); }
.archive-description { max-width: 680px; margin: 22px 0 0; color: var(--rd-muted); font-size: 19px; }
.archive-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.archive-tools a { padding: 8px 14px; border: 1px solid var(--rd-line); border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.archive-tools a:hover { color: var(--rd-white); border-color: var(--rd-teal); background: var(--rd-teal); }
.rd-archive-grid { padding-bottom: 90px; }
.navigation.pagination { margin: 50px 0 0; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: grid; min-width: 42px; height: 42px; padding: 0 12px; place-items: center; border: 1px solid var(--rd-line); border-radius: 999px; text-decoration: none; }
.page-numbers.current, .page-numbers:hover { color: var(--rd-white); border-color: var(--rd-rust); background: var(--rd-rust); }

.rd-entry-header { padding: clamp(58px, 8vw, 105px) 0 36px; }
.entry-title { max-width: 980px; font-size: clamp(45px, 6vw, 82px); }
.entry-taxonomy { margin-top: 22px; color: var(--rd-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.entry-taxonomy a { text-decoration: none; }
.entry-content { padding-bottom: 90px; font-family: var(--rd-display); font-size: 20px; }
.entry-content > * { max-width: var(--rd-reading); margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: 1120px; }
.entry-content > .alignfull { max-width: none; }
.entry-content img, .entry-content .wp-caption { max-width: min(100%, 1120px) !important; }
.entry-content figure { margin-top: 36px; margin-bottom: 36px; }
.entry-content figcaption, .wp-caption-text { margin-top: 8px; color: var(--rd-muted); font-family: var(--rd-sans); font-size: 13px; text-align: center; }
.entry-content blockquote { padding-left: 22px; border-left: 3px solid var(--rd-rust); font-size: 1.15em; }
.entry-content .instagram-media { margin-right: auto !important; margin-left: auto !important; }
.page-content { padding-top: 10px; }
.entry-content > .rd-press-kit { max-width: 1120px; }
.entry-content > .rd-private-buyers-page { max-width: 980px; }
.rd-page-lede { max-width: 820px; margin: 0; color: var(--rd-muted); font-family: var(--rd-sans); font-size: clamp(20px, 2.5vw, 27px); line-height: 1.5; }
.rd-page-actions { margin: 28px 0 0; }
.rd-content-section { margin-top: clamp(58px, 8vw, 92px); padding-top: clamp(34px, 5vw, 54px); border-top: 1px solid var(--rd-line); }
.rd-content-section h2 { max-width: 850px; margin: 0 0 24px; font-family: var(--rd-display); font-size: clamp(38px, 5vw, 62px); font-weight: 400; letter-spacing: -.035em; line-height: 1.03; }
.rd-content-section > p:not(.rd-kicker), .rd-press-use > p { max-width: 800px; }
.rd-section-intro { display: flex; align-items: end; justify-content: space-between; gap: 38px; margin-bottom: 30px; }
.rd-section-intro h2 { margin-bottom: 0; }
.rd-section-intro > p { max-width: 430px; margin: 0; color: var(--rd-muted); font-family: var(--rd-sans); font-size: 15px; }
.rd-press-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.rd-press-grid figure { min-width: 0; margin: 0; }
.rd-press-grid a { display: grid; aspect-ratio: 4 / 3; place-items: center; overflow: hidden; border-radius: 14px; background: var(--rd-paper-deep); }
.rd-press-grid img { width: 100%; height: 100%; object-fit: contain; transition: transform 350ms ease; }
.rd-press-grid a:hover img { transform: scale(1.025); }
.rd-press-grid figcaption { display: grid; margin-top: 10px; line-height: 1.35; text-align: left; }
.rd-press-grid figcaption strong { color: var(--rd-ink); font-family: var(--rd-display); font-size: 21px; font-weight: 400; }
.rd-press-grid figcaption span { margin-top: 3px; color: var(--rd-muted); font-family: var(--rd-sans); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.rd-fact-grid, .rd-buyer-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--rd-line); border-radius: 14px; background: var(--rd-line); }
.rd-fact-grid > div, .rd-buyer-points > div { display: grid; align-content: start; gap: 8px; padding: 22px; background: var(--rd-white); }
.rd-fact-grid strong, .rd-buyer-points strong { color: var(--rd-rust); font-family: var(--rd-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.rd-fact-grid span, .rd-buyer-points span { font-size: 17px; line-height: 1.45; }
.rd-buyer-intro > p:not(.rd-kicker) { max-width: 780px; }
.rd-buyer-points { margin-top: 30px; }
.comments-area { padding: 40px 0 90px; border-top: 1px solid var(--rd-line); }
.post-navigation { width: min(calc(100% - 40px), var(--rd-width)); margin: 0 auto 70px; padding-top: 28px; border-top: 1px solid var(--rd-line); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
.post-navigation a { display: grid; padding: 18px; border: 1px solid var(--rd-line); border-radius: 12px; text-decoration: none; }
.post-navigation .nav-next { text-align: right; }

.rd-cta { text-align: center; }
.rd-cta h2 { max-width: 900px; margin: 0 auto; font-family: var(--rd-display); font-size: clamp(44px, 6vw, 84px); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; }
.rd-cta p { max-width: 650px; margin: 24px auto 0; color: #c8c5be; }
.rd-cta .rd-actions { justify-content: center; }

.site-footer { padding: 55px 0 28px; color: var(--rd-white); background: #111313; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 45px; }
.footer-title { margin: 0 0 12px; font-family: var(--rd-display); font-size: 30px; font-weight: 400; }
.site-footer p { color: #aaa9a4; }
.footer-heading { margin: 5px 0 14px; color: #aaa9a4; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 7px; }
.footer-links a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); color: #84847f; font-size: 12px; }

.search-form { display: flex; gap: 8px; }
.search-field, textarea, input[type="text"], input[type="email"], input[type="url"] { width: 100%; padding: 11px 14px; border: 1px solid var(--rd-line); border-radius: 10px; background: var(--rd-white); }
.search-submit, input[type="submit"], button { padding: 10px 16px; border: 0; border-radius: 999px; color: var(--rd-white); background: var(--rd-rust); cursor: pointer; }
.rd-empty { padding: 40px 0 90px; }

@media (max-width: 980px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 15px; padding: 18px 0; }
  .primary-nav { width: 100%; overflow-x: auto; padding-bottom: 3px; }
  .primary-nav ul { width: max-content; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-mosaic { max-width: 760px; width: 100%; }
  .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-press-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-fact-grid, .rd-buyer-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
  .rd-shell, .rd-reading { width: min(calc(100% - 28px), var(--rd-width)); }
  .brand-tagline { display: none; }
  .primary-nav { overflow: visible; padding-bottom: 0; }
  .primary-nav ul { width: auto; flex-wrap: wrap; gap: 8px 18px; }
  .primary-nav a { font-size: 12px; }
  .hero-mosaic { grid-template-rows: 210px 150px; gap: 9px; }
  .hero-art:first-child { grid-column: 1 / 13; grid-row: 1; }
  .hero-art:nth-child(2) { grid-column: 1 / 7; grid-row: 2; }
  .hero-art:nth-child(3) { grid-column: 7 / 13; grid-row: 2; }
  .art-grid { grid-template-columns: 1fr; }
  .rd-section-intro { align-items: flex-start; flex-direction: column; }
  .rd-press-grid, .rd-fact-grid, .rd-buyer-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
