/* Contents: fonts, tokens, base, header, shared pieces, hero, experience, services,
   work, lightbox, packages, contact, footer, plain pages, responsive. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bodoni-moda-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bodoni-moda-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bodoni-moda-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/bodoni-moda-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --black: #000;
  --white: #fff;
  --red: #e0281f;
  --red-dark: #b5170e;
  --red-light: #ff4a3f; /* red text on black */
  --grey: #707070;
  --line: #e6e6e6;
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font: 300 17px/1.6 var(--sans);
}

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

a {
  color: inherit;
}

h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  line-height: 1.05;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- Header and navigation ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 30;
  padding: 12px 20px;
  background: var(--black);
  color: var(--white);
}

.skip-link:focus {
  top: 8px;
  left: 8px;
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 9;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: block;
  flex-shrink: 0;
}

.logo img {
  width: auto;
  max-width: none;
  height: 40px;
  filter: invert(1); /* the logo file is white */
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--red);
}

/* Mobile menu: a visually hidden checkbox, shown to visitors as the burger. */
.nav-toggle {
  display: none;
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle:checked ~ .nav-burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-burger span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .nav-burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-toggle:focus-visible ~ .nav-burger {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

/* ---------- Shared pieces ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px));
}

.section {
  padding: 100px 0;
}

.section--flush {
  padding-top: 0;
}

.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

/* The second value only applies on very narrow screens, so long words fit. */
.section-title {
  font-size: min(clamp(46px, 8vw, 110px), calc((100vw - 48px) / 6.1));
}

.section-title--spaced {
  margin-bottom: 56px;
}

.text-link,
.case-details summary {
  padding-bottom: 3px;
  border-bottom: 2px solid var(--red);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link {
  text-decoration: none;
}

.text-link:hover {
  color: var(--red);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font: 600 16px var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 90px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 90px 100%;
}

.hero-inner {
  padding-top: 40px;
  padding-bottom: 72px;
}

.hero-title {
  font-size: clamp(38px, 8.4vw, 116px);
  font-style: italic;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 540px);
  justify-content: center;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  margin-top: 36px;
}

.portrait {
  position: relative;
  width: 270px;
  aspect-ratio: 3 / 4;
  margin: 14px auto;
  transform: rotate(5deg);
}

.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translate(-18px, 18px);
}

.portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.hero-text {
  max-width: 540px;
}

.hero-tagline {
  margin: 0 0 22px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.15;
}

.hero-skills {
  margin: 0 0 34px;
  padding: 0;
  font-size: 15px;
  list-style: none;
}

.hero-bio {
  max-width: 52ch;
  margin: 0 0 30px;
  font-size: 16.5px;
  line-height: 1.65;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--white);
}

.social-links a:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* ---------- Experience ---------- */
.experience {
  max-width: 760px;
  margin-top: 40px;
}

.experience-list {
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.experience-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.experience-list span {
  color: var(--grey);
  font-style: italic;
  white-space: nowrap;
}

.tools {
  margin: 0;
  color: var(--grey);
  font-size: 15px;
}

/* ---------- Services ---------- */
.services {
  margin-top: 56px;
  border-top: 1px solid var(--black);
}

.service {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: baseline;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--black);
}

.service h3 {
  font-size: clamp(34px, 4.4vw, 56px);
}

.service p {
  max-width: 46ch;
  margin: 0;
}

/* ---------- Selected work ---------- */
.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 28px;
}

.case h3 {
  margin-top: 6px;
  font-size: 34px;
}

.case p {
  margin: 0 0 12px;
  font-size: 15.5px;
}

.case-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 0;
  list-style: none;
}

.pill {
  padding: 3px 13px;
  border: 1px solid var(--black);
  border-radius: 999px;
  font-size: 12.5px;
}

.pill--accent {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.case-details summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
}

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

.case-details[open] summary {
  color: var(--red);
}

.case-gallery {
  column-count: 2;
  column-gap: 10px;
  margin-top: 18px;
}

.gallery-title {
  margin: 80px 0 16px;
  font-size: 34px;
}

.gallery {
  column-gap: 12px;
}

.gallery--books,
.gallery--posters {
  column-count: 3;
}

.gallery--packaging {
  column-count: 2;
}

.case-gallery img,
.gallery img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 4px;
  break-inside: avoid;
}

.gallery img {
  margin-bottom: 12px;
}

.case-cover,
.case-gallery img,
.gallery img {
  cursor: zoom-in;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- Packages ---------- */
.section--accent {
  background: var(--red-dark);
  color: var(--white);
}

.packages-intro {
  max-width: 56ch;
  margin: 22px 0 0;
}

.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 52px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  border-radius: 22px;
  background: var(--white);
  color: var(--black);
}

.plan h3 {
  font-size: 34px;
}

.plan-price {
  margin: 18px 0 4px;
  font: 400 54px/1 var(--serif);
}

.plan-meta {
  margin: 0;
  color: var(--grey);
  font-size: 14px;
}

.plan-features {
  flex: 1;
  margin: 22px 0 30px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.plan-features li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  width: 9px;
  height: 2px;
  background: var(--red);
}

.plan--featured {
  background: var(--black);
  color: var(--white);
}

.plan--featured .plan-meta {
  color: #999;
}

.plan--featured .plan-features li {
  border-color: #333;
}

/* ---------- Contact ---------- */
.section--contact {
  padding-bottom: 40px;
}

.contact-panel {
  margin: 0 16px;
  padding: 72px 56px;
  border-radius: 40px;
  background: var(--black);
  color: var(--white);
}

.contact-intro {
  max-width: 56ch;
  margin: 22px 0 0;
}

.contact-intro a {
  color: var(--red-light);
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin-top: 36px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  cursor: pointer;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #767676;
  border-radius: 14px;
  background: #111;
  color: var(--white);
  font: 300 17px var(--sans);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field [aria-invalid="true"] {
  border-color: var(--red-light);
  outline: 1px solid var(--red-light);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  max-width: 56ch;
  margin: 12px 0 0;
  color: #aaa;
  font-size: 14px;
}

.form-note a {
  color: inherit;
}

.cf-turnstile {
  margin-bottom: 16px;
}

.form-status {
  max-width: 56ch;
  margin: 12px 0 0;
  color: #aaa;
  font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px 0;
  color: var(--grey);
  font-size: 15px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ---------- Plain pages (privacy, 404) ---------- */
.legal {
  padding: 72px 0;
}

.legal-inner {
  max-width: 68ch;
}

.legal h1 {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 9vw, 80px);
  line-height: 1.05;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.legal a {
  color: var(--red-dark);
}

.page-404 {
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 24px;
  text-align: center;
}

.page-404 h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 9vw, 80px);
  line-height: 1.05;
}

/* ---------- Responsive ---------- */
@media (max-width: 1061px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section {
    padding: 72px 0;
  }

  .section--flush {
    padding-top: 0;
  }

  .section--contact {
    padding-bottom: 40px;
  }

  .hero-inner {
    padding-top: 36px;
  }

  .hero-title {
    font-size: min(clamp(44px, 13vw, 96px), calc((100vw - 48px) / 5.9));
    white-space: normal;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 36px;
    text-align: center;
  }

  .portrait {
    width: min(260px, 70%);
  }

  .hero-text {
    max-width: none;
  }

  .hero-bio {
    margin-right: auto;
    margin-left: auto;
  }

  .social-links {
    justify-content: center;
  }

  .service,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .gallery--books,
  .gallery--posters {
    column-count: 2;
  }

  .gallery--packaging {
    column-count: 1;
  }

  .contact-panel {
    margin: 0 12px;
    padding: 48px 24px;
    border-radius: 28px;
  }
}

@media (max-width: 640px) {
  .cases {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-burger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    right: 0;
    left: 0;
    z-index: 8;
    flex-direction: column;
    gap: 0;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    padding: 8px 24px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    font-size: 18px;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 545px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .experience-list li {
    flex-direction: column;
    gap: 2px;
  }
}

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