/* Studio — portfolio. Dark ground, big grotesk display, one acid accent. */
:root {
  color-scheme: dark;
  --bg: #0f1013;
  --panel: #17181d;
  --ink: #f3f2ee;
  --muted: #9b9ea7;
  --line: #2a2c33;
  --accent: #ccaacc;
  --accent-fill: #ccaacc;
  --on-accent: #15161a;
  --error: #ff8a7a;
  --ph-ink: rgb(255 255 255 / 0.14);
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, 5vw, 4rem);
}

/* Light mode: follows the system unless the visitor picked one with the toggle. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f5f0;
    --panel: #ebe9e2;
    --ink: #15161a;
    --muted: #5b5e66;
    --line: #d9d6cc;
    --accent: #7a4f7a;
    --error: #b42318;
    --ph-ink: rgb(0 0 0 / 0.12);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f0;
  --panel: #ebe9e2;
  --ink: #15161a;
  --muted: #5b5e66;
  --line: #d9d6cc;
  --accent: #7a4f7a;
  --error: #b42318;
  --ph-ink: rgb(0 0 0 / 0.12);
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
main {
  padding: 0 var(--gutter);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem var(--gutter);
}
.topbar .nav {
  margin-left: auto;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle[hidden] {
  display: none;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.theme-toggle:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}
/* Dark shows the sun (go light), light shows the moon (go dark). */
.icon-moon {
  display: none;
}
:root[data-theme="light"] .icon-sun {
  display: none;
}
:root[data-theme="light"] .icon-moon {
  display: block;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun {
    display: none;
  }
  :root:not([data-theme="dark"]) .icon-moon {
    display: block;
  }
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover,
.more:hover,
.work-title a:hover {
  color: var(--accent);
}

.hero {
  max-width: 60rem;
  padding: clamp(3rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}
.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6rem);
}
.hero-text {
  max-width: 36rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.button {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font-weight: 500;
}
.button:hover {
  background: var(--ink);
  color: var(--bg);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  margin: 4rem 0 2rem;
  border-top: 1px solid var(--line);
}
.section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
}
.more {
  font-size: 0.9rem;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 3rem 2rem;
}
.work-img,
.ph {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--panel), var(--line));
  margin-bottom: 1.25rem;
}
.meta {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.work-title {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}
.work-excerpt {
  margin: 0;
  color: var(--muted);
}
.empty {
  color: var(--muted);
}

.services {
  margin: 5rem 0 0;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 8px;
  background: var(--panel);
}
.services-heading {
  margin: 0 0 2.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}
.service-list {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: service;
}
@media (min-width: 48rem) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.service {
  counter-increment: service;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.service::before {
  content: "0" counter(service);
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}
.service p {
  margin: 0;
  color: var(--muted);
}

.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 2rem;
}
.print-tile {
  display: grid;
  gap: 0.25rem;
}
.print-img {
  aspect-ratio: 3 / 4;
  margin-bottom: 0.75rem;
}
.print-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
}
.print-price {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.contact {
  margin: 5rem 0 0;
  padding: clamp(3rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-heading {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 7vw, 5rem);
}
.contact-text {
  max-width: 34rem;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--muted);
}
.contact-email {
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}
.contact-row {
  display: grid;
  gap: 1rem;
}
.contact-field {
  display: grid;
  gap: 0.4rem;
}
.contact-field label {
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.contact-field textarea {
  resize: vertical;
  min-height: 8rem;
}
.contact-field input:focus-visible,
.contact-field textarea:focus-visible,
.contact-send:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.contact-send {
  justify-self: start;
  padding: 0.85rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent-fill);
  color: var(--on-accent);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.contact-send:hover {
  background: var(--ink);
  color: var(--bg);
}
.contact-thanks {
  max-width: 34rem;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--accent);
}
.contact-error {
  margin: 0;
  color: var(--error);
}
.contact-alt {
  margin: 2.5rem 0 0;
}
@media (min-width: 48rem) {
  .contact-row {
    grid-template-columns: 1fr 1fr;
  }
}

.index {
  padding: clamp(2rem, 6vw, 4rem) 0 4rem;
}
.index-title {
  margin: 0 0 2rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
}
.index .lede {
  max-width: 40rem;
  margin: -1rem 0 3rem;
}

.case {
  max-width: 64rem;
  padding: clamp(2rem, 6vw, 4rem) 0 4rem;
}
.case-head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}
.case-head h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}
.lede {
  margin: 0;
  font-size: 1.25rem;
  color: var(--muted);
}
.case-cover {
  aspect-ratio: 16 / 9;
  margin-bottom: 3rem;
}
.prose {
  max-width: 42rem;
  font-size: 1.1rem;
}
.prose p {
  margin: 0 0 1.25em;
}
.prose h2 {
  margin: 2em 0 0.6em;
  font-size: 1.7rem;
}
.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.25rem;
}
.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.back {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.print {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4rem) 0 4rem;
}
@media (min-width: 50rem) {
  .print {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
  }
}
.print-media {
  display: grid;
  gap: 1rem;
}
.print-ph {
  margin: 0;
}
.print-info h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}
.print-price-lg {
  margin: 0 0 1.5rem;
  font-size: 1.4rem;
  color: var(--ink);
}

.footer {
  margin-top: 4rem;
  padding: 2.5rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.footer p {
  margin: 0 0 0.4rem;
}
.footer-tagline {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--ink);
}

@media (max-width: 40rem) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
  .theme-toggle {
    margin-left: auto;
  }
  .topbar .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* An image slot with nothing in it yet shows the item's initial, not a bare box. */
.ph-label {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  color: var(--ph-ink);
  user-select: none;
}
@media (max-width: 40rem) {
  .ph-label {
    max-height: 14rem;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.pagination-status {
  color: var(--muted);
}
.pagination-link {
  color: var(--ink);
  text-decoration: none;
}
.pagination-link:hover {
  text-decoration: underline;
}

/* The language switcher; only there on a site with several languages. */
.lang-switch {
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.lang-switch a {
  color: inherit;
  text-decoration: none;
  opacity: 0.55;
}
.lang-switch a:hover,
.lang-switch a[aria-current] {
  opacity: 1;
}
