/*
Theme Name: The Dusty Studio
Description: The Dusty Studio's one-page catalogue, creature archive and studio contact.
Author: The Dusty Studio
Version: 0.5.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: the-dusty-studio
*/
:root {
  color-scheme: dark;
  --night: #070707;
  --shadow: #050505;
  --panel: #100e0c;
  --ivory: #f3ecdd;
  --muted: #c0b6a7;
  --gold: #e5cda4;
  --teal: #9bc6ba;
  --line: #322b24;
  --gutter: clamp(21px, 5.55vw, 88px);
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
}

img { display: block; width: 100%; height: auto; }

h1, h2, h3, p, figure, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.6rem, 5.1vw, 4.6rem);
  letter-spacing: -.055em;
}

p { text-wrap: pretty; }

section[id] { scroll-margin-top: 24px; }

.frame {
  width: 100%;
  max-width: 1510px;
  padding-inline: var(--gutter);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 10px 18px;
  color: var(--night);
  background: var(--ivory);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  background: #080707;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 77px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-height: 44px;
  white-space: nowrap;
}

.wordmark span {
  color: var(--ivory);
  font: 400 1.23rem/1 var(--serif);
  letter-spacing: -.025em;
}

.studio-logo { flex: none; width: 53px; height: 53px; border-radius: 50%; }

.site-header nav { display: flex; align-items: center; gap: clamp(22px, 3.2vw, 46px); }

.site-header nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  position: relative;
  font-size: .88rem;
  color: var(--muted);
}

.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ivory); }

.site-header nav a:hover::after {
  content: "";
  position: absolute;
  bottom: 6px;
  inset-inline: 0;
  height: 1px;
  background: var(--gold);
}

.review-label {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #364640;
  color: var(--teal);
  white-space: nowrap;
  font: .66rem/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.review-label span, .studio-strip i {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--teal);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--shadow);
}

.hero-scene {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 max(0px, calc((100% - 1570px) / 2));
}

.hero-scene picture {
  position: absolute;
  inset: 0 0 0 28%;
  display: block;
  overflow: hidden;
}

.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 57%; }

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--shadow) 13%, #050505f5 29%, #05050580 42%, #05050500 60%),
    linear-gradient(270deg, #050505c9 0%, #05050500 24%),
    radial-gradient(ellipse 63% 64% at 62% 57%, #05050500 34%, #05050539 67%, #050505d9 100%),
    linear-gradient(180deg, #050505c4 0%, #05050500 23%, #05050500 69%, var(--shadow) 100%);
}

.hero-caption, .featured-image figcaption {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  color: #e8decb;
  background: #0b0a09eb;
  padding: 8px 12px;
  font: .66rem/1.4 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.hero-caption { right: var(--gutter); bottom: 24px; border: 1px solid #aeb8a450; }
.caption-index { color: var(--teal); }

.hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(540px, 44vw, 700px);
  padding-block: 72px;
}

.hero-copy { width: min(58%, 705px); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  font: 600 .72rem/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.kicker > span {
  padding-right: 12px;
  border-right: 1px solid currentColor;
  opacity: .8;
}

.hero-kicker::before {
  content: "";
  width: 29px;
  height: 1px;
  background: var(--teal);
}

.hero h1 {
  margin-top: 25px;
  font-size: clamp(4rem, 7.1vw, 7.25rem);
  line-height: .94;
  letter-spacing: -.07em;
  text-wrap: wrap;
}

.hero h1 em { color: var(--gold); font-weight: 400; }

.hero-intro {
  max-width: 24rem;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(.96rem, 1.35vw, 1.09rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 15px 25px; align-items: center; margin-top: 32px; }

.button, .text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  font-size: .88rem;
  font-weight: 650;
}

.button { padding: 12px 16px; border: 1px solid transparent; }
.arrow { flex: none; }
.button-primary { color: #181811; background: var(--gold); }
.button-primary:hover { background: #f3e1be; }
.text-link { color: var(--ivory); }

.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.studio-strip {
  border-block: 1px solid var(--line);
  color: var(--muted);
  background: #0a0908;
}

.strip-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 53px;
  font: .67rem/1.3 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.strip-inner > :first-child { display: flex; align-items: center; gap: 9px; }
.strip-inner > a { justify-self: end; display: flex; gap: 9px; align-items: center; min-height: 44px; }
.strip-inner > a:hover { color: var(--ivory); }
.strip-inner > a span { color: var(--teal); }

.section { padding-block: clamp(58px, 7.2vw, 106px); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr);
  align-items: end;
  gap: 20px;
  margin-bottom: 34px;
}

.section h2, .contact h2 { margin-top: 15px; }

.section-intro {
  justify-self: end;
  max-width: 24rem;
  color: var(--muted);
  padding-bottom: 2px;
}

.featured {
  display: grid;
  grid-template-columns: 1.27fr 1fr;
  min-height: 350px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.featured-image { position: relative; min-width: 0; min-height: 100%; overflow: hidden; }
.featured-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 60% 53%; }

.featured-copy {
  align-self: center;
  padding: clamp(24px, 4.2vw, 59px);
}

.featured-copy h3 {
  margin-block: 12px 13px;
  font-size: clamp(2.5rem, 4.5vw, 4.4rem);
  letter-spacing: -.055em;
}

.featured-copy > p:not(.kicker), .about-copy > p:not(.kicker) { color: var(--muted); max-width: 33rem; }

.featured-enquiry { margin-top: 18px; }

.entry-details { border-top: 1px solid var(--line); margin-top: 22px; }

summary {
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker { display: none; }

.entry-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  color: var(--gold);
  font-weight: 600;
  font-size: .88rem;
}

.toggle-mark {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  opacity: .85;
}

.toggle-mark::before, .toggle-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: currentColor;
}

.toggle-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .toggle-mark::after { display: none; }

.listing-facts { font-size: .84rem; }
.listing-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding-block: 8px;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.listing-facts dd { color: var(--muted); }

.archive {
  background: radial-gradient(ellipse at 76% 16%, #1c130c 0%, #0b0908 36%, #080706 73%);
  border-block: 1px solid var(--line);
}

.archive-intro {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(24px, 7vw, 100px);
}

.archive .kicker { color: var(--gold); }

.archive-copy p:not(.kicker) {
  max-width: 25rem;
  margin-block: 17px 12px;
  color: var(--muted);
}

.creature-file {
  position: relative;
  padding: clamp(17px, 3vw, 32px);
  border: 1px solid #947247;
  color: #2a1c13;
  background:
    repeating-linear-gradient(0deg, #65452708 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 46% 34%, #ead2a5 0%, #d7b889 62%, #af8759 100%);
  box-shadow: 3px 4px 0 #674a2f, 0 18px 40px #0007;
}

.creature-file::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid #65432a40;
  pointer-events: none;
}

.creature-file-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 13px;
  border-bottom: 1px solid #79543875;
}

.file-label {
  color: #604028;
  font: 650 .64rem/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.creature-file h3 {
  margin-top: 4px;
  font-size: clamp(2.05rem, 4.1vw, 3.65rem);
  letter-spacing: -.05em;
  text-wrap: wrap;
}

.file-stamp {
  flex: none;
  transform: rotate(6deg);
  padding: 5px 8px;
  border: 3px double #7d3425;
  color: #7d3425;
  font: 650 .64rem/1.24 var(--mono);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.creature-file-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr);
  gap: clamp(12px, 3vw, 29px);
  align-items: center;
  margin-top: 16px;
}

.creature-file-portrait {
  min-width: 0;
  padding: 5px 5px 0;
  transform: rotate(-1.7deg);
  background: #382a20;
  box-shadow: 0 3px 9px #3a220d5c;
}

.creature-file-portrait img { aspect-ratio: 1.36; object-fit: cover; object-position: 40% 43%; }

.creature-file-portrait figcaption {
  padding: 7px 3px 8px;
  color: #f1dfbc;
  font: .6rem/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.creature-file-note {
  min-width: 0;
  color: #552e21;
}

.file-hand {
  margin-top: 7px;
  font: italic 400 clamp(1.12rem, 2.55vw, 1.85rem)/1.04 var(--serif);
  letter-spacing: -.045em;
}

.file-hand span { text-decoration: underline #874330; text-underline-offset: 3px; }

.file-doodle { display: block; width: min(100%, 100px); height: auto; margin-block: 6px 4px; color: #86422d; }

.file-caution {
  color: #793828;
  font: 600 .64rem/1.35 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.completed-archive {
  margin-top: clamp(30px, 5vw, 62px);
  padding-top: clamp(21px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.completed-archive h3 {
  margin-top: 9px;
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  letter-spacing: -.04em;
}

.completed-intro { margin-top: 11px; color: var(--muted); }

.about { padding-block: clamp(46px, 5.5vw, 79px); }
.about-copy > p:not(.kicker) { max-width: 39rem; margin-top: 17px; }

.contact {
  background: radial-gradient(ellipse at 90% 100%, #13231e 0%, #0c100e 57%, #0a0908 100%);
  border-block: 1px solid #364640;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 4vw, 54px);
  align-items: center;
  padding-block: clamp(40px, 5vw, 74px);
}

.contact-inner p:not(.kicker) { margin-top: 13px; color: var(--muted); }

.social-profiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 70px;
  height: 100%;
  padding: 9px 12px;
  border: 1px solid #496059;
  background: #0f1b17;
  font-size: .88rem;
}

.social-profile small { display: block; color: var(--teal); overflow-wrap: anywhere; }
a.social-profile:hover { background: #1d3029; }
.social-pending { border-color: var(--line); background: #0c0c0b; }
.social-pending small { color: var(--muted); }

.site-footer { background: #080707; }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  padding-block: 22px;
}

.footer-inner p, .back-to-top { color: var(--muted); font-size: .78rem; }
.back-to-top { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.back-to-top:hover { color: var(--ivory); }

@media (min-width: 1650px) {
  .hero-scene { right: calc((100% - 1650px) / 2); }
}

@media (max-width: 900px) {
  .hero-copy { width: 65%; }
  .header-inner { gap: 14px; }
  .site-header nav { gap: 19px; }
}

@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    padding-top: 8px;
    gap: 2px 12px;
  }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 10px; }
  .wordmark { gap: 8px; }
  .studio-logo { width: 44px; height: 44px; }
  .wordmark span { font-size: 1.08rem; }
  .review-label { padding: 5px 7px; font-size: .6rem; }
  .hero-scene picture { inset: 0 0 auto; height: 355px; }
  .hero-scene img { object-position: 52% 56%; }
  .hero-scene::after {
    background:
      linear-gradient(180deg, #05050524 0, #05050514 128px, #050505c7 255px, var(--shadow) 352px),
      radial-gradient(ellipse 70% 68% at 47% 23%, #05050500 28%, #0505058c 100%);
  }
  .hero-caption { bottom: auto; top: 13px; right: var(--gutter); font-size: .6rem; }
  .hero-inner { min-height: 0; padding-block: 228px 38px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(3.25rem, 11vw, 5.5rem); margin-top: 15px; }
  .hero-intro { margin-top: 18px; }
  .hero-actions { margin-top: 20px; gap: 8px 18px; }
  .strip-inner { grid-template-columns: 1fr auto; font-size: .61rem; letter-spacing: .07em; }
  .strip-center { display: none; }
  .section-heading, .featured, .archive-intro, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .section-heading { gap: 12px; margin-bottom: 23px; }
  .section-intro { justify-self: start; }
  .featured-image { min-height: 0; aspect-ratio: 1.6; }
  .contact-inner { gap: 19px; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-inner p { grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 1; }
}

@media (max-width: 450px) {
  .social-profiles { grid-template-columns: minmax(0, 1fr); }
  .social-profile { min-height: 54px; }
  .creature-file-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .creature-file-portrait img { aspect-ratio: 1.6; }
  .file-doodle { display: none; }
  .file-caution { margin-top: 5px; }
  .hero-actions .text-link { font-size: .83rem; gap: 6px; }
  .hero-actions .button { padding-inline: 11px; gap: 8px; font-size: .83rem; }
}

@media (max-width: 360px) {
  :root { --gutter: 18px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; }
  .wordmark { gap: 6px; }
  .studio-logo { width: 35px; height: 35px; }
  .wordmark span { font-size: 1.02rem; }
  .review-label { gap: 5px; font-size: .57rem; letter-spacing: .05em; }
  .header-inner nav { gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* WordPress content and confirmed contact links. */
.wp-content-area article + article { margin-top: 3rem; }
.wp-content-area .entry-content { max-width: 50rem; margin-top: 1.5rem; }
.wp-content-area .entry-content > * + * { margin-top: 1rem; }
.wp-content-area .entry-content a { text-decoration: underline; text-underline-offset: .15em; }
.wp-content-area .entry-content img { max-width: 100%; width: auto; }
.social-profiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
