:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #afafaf;
  --muted-strong: #8d8d8d;
  --active: #2f1cad;
  --hover: #fcbf3a;
  --panel: #f4f3f2;
  --shadow: rgba(0, 0, 0, 0.33);
  --page-max: 1140px;
  --narrow: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo Black", Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  opacity: 1;
  transition: opacity 1s ease-out;
}

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

a:hover,
a:focus-visible {
  color: var(--hover);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  width: 100%;
  padding: 45px 18px 42px;
  text-align: center;
}

.site-title {
  display: inline-block;
  color: var(--text);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 8px;
  font-weight: 900;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.site-nav a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 2px;
  font-weight: 900;
  transition: color 180ms ease;
}

.site-nav a.active {
  color: var(--active);
}

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

.menu-toggle {
  display: none;
  width: 34px;
  height: 28px;
  margin: 18px auto 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.site-content {
  flex: 1;
  width: 100%;
  padding: 16px 15px 0;
  outline: 0;
}

.narrow-page {
  max-width: var(--narrow);
  margin: 0 auto;
}

.about-wrap {
  max-width: 730px;
  margin: 0 auto;
}

.about-image {
  width: 65%;
  min-width: 260px;
  margin: 0 auto;
  filter: grayscale(1);
  transition: filter 1200ms ease-out;
}

body.images-color-ready .about-image,
body.images-color-ready .portfolio-card img {
  filter: grayscale(0);
}

.about-notice {
  margin: 36px 0 0;
  color: var(--active);
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

.about-copy {
  width: 100%;
  margin: 52px auto 0;
  color: #777777;
  font-family: "Archivo Black", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 100;
  line-height: 27px;
  text-align: left;
}

.about-copy p {
  margin: 0;
}

.portfolio-page {
  max-width: var(--page-max);
  margin: 0 auto;
}

.portfolio-notice {
  display: grid;
  gap: 14px;
  margin: 0 auto 18px;
  color: #777777;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
}

.portfolio-notice strong,
.portfolio-notice span {
  display: block;
}

.protected-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.protected-actions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.protected-actions button:hover,
.protected-actions button:focus-visible {
  color: var(--hover);
}

.kids-gate {
  width: min(100%, 380px);
  margin: 48px auto 0;
  text-align: center;
}

.kids-gate h1 {
  margin: 0 0 22px;
  font-size: 20px;
  line-height: 1.3;
}

.kids-gate form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.kids-gate input,
.kids-gate button {
  min-height: 42px;
  border: 1px solid #d7d7d7;
  border-radius: 0;
  background: #ffffff;
}

.kids-gate input {
  min-width: 0;
  padding: 9px 11px;
}

.kids-gate button {
  padding: 9px 16px;
  cursor: pointer;
}

.kids-gate button:hover,
.kids-gate button:focus-visible {
  color: var(--hover);
}

.kids-gate-message {
  margin: 16px 0 0;
  color: #b00020;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.visually-hidden-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 0;
  margin: 0 -7px;
}

.portfolio-card {
  padding: 0 7px 14px;
}

.portfolio-card figure {
  margin: 0;
}

.portfolio-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.portfolio-image-button:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 3px;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 1.54 / 1;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  box-shadow: 0 1px 3px 0 var(--shadow);
  filter: grayscale(1);
  transition: filter 1200ms ease-out;
}

.portfolio-card figcaption {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 12px;
  padding: 56px 24px 34px;
  background: rgba(255, 255, 255, 0.96);
}

.lightbox-figure {
  margin: 0 auto;
  max-width: min(100%, 1220px);
  max-height: 100%;
  text-align: center;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 176px);
  margin: 0 auto;
  object-fit: contain;
  box-shadow: 0 1px 3px 0 var(--shadow);
}

.lightbox-figure figcaption {
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lightbox-figure figcaption span {
  color: var(--muted);
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color 180ms ease;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  color: var(--hover);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  font-size: 34px;
}

.lightbox-nav {
  width: 44px;
  height: 64px;
  font-size: 58px;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.portfolio-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
}

.portfolio-pagination button {
  min-width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.portfolio-pagination button:hover,
.portfolio-pagination button:focus-visible,
.portfolio-pagination button[aria-current="page"] {
  color: var(--hover);
}

.portfolio-pagination button:disabled {
  color: #d0d0d0;
  cursor: default;
}

.contact-page {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 14px;
}

.contact-form {
  max-width: 520px;
  margin: 0 auto;
}

.field {
  display: block;
  margin: 0 0 19px;
  color: #141414;
  line-height: 1.8;
}

.field span {
  display: block;
}

.field input,
.field textarea {
  width: min(100%, 420px);
  margin-top: 3px;
  border: 1px solid #d7d7d7;
  border-radius: 0;
  padding: 9px 10px;
  text-align: center;
  color: var(--text);
  background: #ffffff;
}

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

.submit-button {
  display: inline-block;
  border: 1px solid #d7d7d7;
  border-radius: 0;
  padding: 8px 18px;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
}

.submit-button:disabled {
  color: var(--muted);
  cursor: wait;
}

.submit-button:hover,
.submit-button:focus-visible {
  color: var(--hover);
}

.form-note {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--muted-strong);
  font-size: 12px;
  line-height: 1.7;
}

.form-note-active {
  color: var(--active);
}

.form-note-error {
  color: #b00020;
}

.site-footer {
  padding: 44px 16px 24px;
  text-align: center;
  color: var(--active);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--active);
}

.empty-state {
  max-width: 520px;
  margin: 30px auto;
  color: var(--muted-strong);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 36px;
  }

  .site-title {
    letter-spacing: 6px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    gap: 0;
    flex-direction: column;
    width: min(100%, 360px);
    margin: 16px auto 0;
    background: var(--panel);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 10px;
  }

  .portfolio-notice {
    gap: 10px;
    padding: 0 8px;
    font-size: 11px;
  }

  .kids-gate {
    margin-top: 24px;
  }

  .about-image {
    width: 78%;
    min-width: 0;
  }

  .about-notice {
    margin-top: 24px;
    padding: 0 8px;
    font-size: 11px;
    line-height: 1.5;
  }

  .about-copy {
    margin-top: 32px;
    font-size: 13px;
    line-height: 24px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lightbox {
    padding: 54px 10px 24px;
  }

  .lightbox-figure img {
    max-height: calc(100vh - 168px);
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-nav {
    width: 38px;
    height: 52px;
    font-size: 44px;
  }
}
