/* ==========================================================================
   Superstudios — main stylesheet
   ========================================================================== */

:root {
  --ink: #111;
  --ink-soft: #444;
  --grey-dark: #7f7f7f;
  --grey-light: #b7b5ba;
  --grey-text: #6b6b6b; /* 5.3:1 on white — AA for small text */
  --rule: #dcdcdc;
  --paper: #fff;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'EB Garamond', Garamond, 'Times New Roman', serif;

  /* 8px spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --gutter: clamp(1rem, 3vw, 2rem);
  --header-height: 4.5rem;
  --content: 1050px;
  --measure: 42rem;
  --shadow-card: -18px 22px 40px -18px rgb(0 0 0 / 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


/* Base ------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

:where(ul[role='list']) {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-1);
  left: var(--space-1);
  z-index: 100;
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  background: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.main {
  flex: 1;
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}


/* Typography ------------------------------------------------------------- */

.label {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.label__sep {
  padding: 0 0.15em;
  font-weight: 400;
}

.section-title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.section-label {
  margin-bottom: var(--space-6);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prose {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: var(--space-2);
}


/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--gutter);
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.site-nav {
  display: none;
  gap: var(--space-4);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav--right {
  justify-content: flex-end;
}

.site-nav a,
.mobile-menu a,
.site-footer__nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after,
.site-footer__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a[aria-current='page']::after,
.site-footer__nav a:hover::after {
  transform: scaleX(1);
}

.site-header__logo {
  grid-column: 2;
  display: block;
  padding: var(--space-1) 0;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.site-header__logo img {
  width: auto;
  height: 0.875rem;
}

.site-header__logo--mouskos img {
  height: 0.9375rem;
}

@media (min-width: 48rem) {
  .site-header__logo img {
    height: 1.125rem;
  }

  .site-header__logo--mouskos img {
    height: 1.25rem;
  }
}

/* On the home page the logo lives in the hero until it scrolls away */
.js .site-header--home .site-header__logo {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.js .site-header--home.is-condensed .site-header__logo {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Burger: two bars that rotate into an X */
.menu-toggle {
  grid-column: 3;
  justify-self: end;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.625rem;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle__bar {
  position: absolute;
  left: 0.625rem;
  right: 0.625rem;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.5s var(--ease-out);
}

.menu-toggle__bar:first-child {
  top: calc(50% - 4px);
}

.menu-toggle__bar:nth-child(2) {
  top: calc(50% + 3px);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Full-screen overlay: wipes down, then links rise in one by one */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 49;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--header-height) var(--gutter) var(--space-4);
  background: var(--paper);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition:
    clip-path 0.7s var(--ease-out),
    visibility 0s linear 0.7s;
}

.mobile-menu.is-open {
  visibility: visible;
  clip-path: inset(0);
  transition:
    clip-path 0.7s var(--ease-out),
    visibility 0s;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mobile-menu__nav a,
.mobile-menu__cities {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.mobile-menu.is-open .mobile-menu__nav a,
.mobile-menu.is-open .mobile-menu__cities {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: calc(200ms + var(--i, 0) * 60ms);
}

.mobile-menu__nav a[aria-current='page'] {
  color: var(--grey-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Keep primary navigation available when JavaScript is disabled. */
html:not(.js) .menu-toggle {
  display: none;
}

@media (max-width: 47.999rem) {
  html:not(.js) .mobile-menu {
    position: static;
    padding: var(--space-3) var(--gutter);
    visibility: visible;
    clip-path: none;
  }

  html:not(.js) .mobile-menu__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1rem;
  }

  html:not(.js) .mobile-menu__nav a {
    opacity: 1;
    transform: none;
  }

  html:not(.js) .mobile-menu__cities {
    display: none;
  }
}

.mobile-menu__cities {
  position: absolute;
  bottom: var(--space-4);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  --i: 7;
}

.menu-open {
  overflow: hidden;
}

/* While the overlay is open, keep the home header logo visible */
.menu-open .site-header--home .site-header__logo {
  opacity: 1;
  transform: none;
}

@media (min-width: 48rem) {
  .site-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none;
  }
}


/* Footer ----------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-12) var(--gutter) var(--space-4);
}

.site-footer__nav {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-footer__rule {
  width: 100%;
  max-width: var(--content);
  height: 1px;
  margin-bottom: var(--space-3);
  background: var(--rule);
}

.site-footer__logo img {
  width: auto;
  height: 1.125rem;
}

.site-footer__legal {
  margin-top: var(--space-2);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--grey-text);
  text-transform: uppercase;
}


/* Buttons ---------------------------------------------------------------- */

.back {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.button {
  display: inline-block;
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 14px 22px -12px rgb(0 0 0 / 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 26px -12px rgb(0 0 0 / 0.4);
}


/* Scroll reveal ----------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Failsafe: if main.js never runs, reveal everything after a short delay */
.js:not(.reveal-ready) [data-reveal] {
  animation: reveal-failsafe 0.6s ease 2.5s forwards;
}

@keyframes reveal-failsafe {
  to {
    opacity: 1;
    transform: none;
  }
}


/* Home: hero -------------------------------------------------------------- */

.page--home .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color 0.4s;
}

.page--home .site-header.is-condensed {
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding: 0 var(--gutter) var(--space-8);
}

.hero__title {
  line-height: 0;
}

.hero__logo {
  display: block;
  width: min(80vw, 20rem);
  height: auto;
  overflow: visible;
}

.hero__cities {
  margin-top: var(--space-2);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__divider {
  display: inline-block;
  padding: 0 0.75em;
  color: var(--grey-text);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  width: 1px;
  height: var(--space-8);
  overflow: hidden;
  background: var(--rule);
}

.hero__scroll::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(-100%);
  animation: scroll-cue 2.4s var(--ease-out) 3.4s infinite;
}

.hero__letter {
  transform-box: fill-box;
}

.hero__sheen {
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  /* Letters slide in one after another, left to right */
  .js .hero__letter {
    opacity: 0;
    transform: translateX(-40%);
    animation: letter-in 0.8s var(--ease-out) forwards;
    animation-delay: calc(250ms + var(--i) * 90ms);
  }

  .js .hero__sheen {
    animation: sheen 1.6s ease-in-out 1.9s forwards;
  }

  .js .page--home .hero__cities {
    opacity: 0;
    animation: fade-in 1.2s ease 2s forwards;
  }

  .js .hero__scroll {
    opacity: 0;
    animation: fade-in 1s ease 2.8s forwards;
  }
}

@keyframes letter-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sheen {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 1;
    transform: translateX(125px);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes scroll-cue {
  0% {
    transform: translateY(-100%);
  }

  60%,
  100% {
    transform: translateY(100%);
  }
}


/* Home: studio collage ---------------------------------------------------- */

.studio {
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter) 0;
}

.studio__portrait {
  width: min(100%, 600px);
  margin: 0 auto var(--space-6);
}

.studio__portrait img {
  width: 100%;
}

.studio__intro {
  max-width: 48rem;
  margin: var(--space-2) auto var(--space-12);
  font-size: 1rem;
  text-align: center;
  color: var(--grey-text);
}

.collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
  align-items: center;
}

.collage__item a {
  display: block;
  transition: opacity 0.4s var(--ease-out);
}

.collage__item img {
  width: 100%;
  transition: transform 0.8s var(--ease-out);
}

.collage__item a:hover img {
  transform: scale(1.04);
}

.collage__item--title {
  grid-column: span 2;
  justify-self: center;
  width: 70%;
}

.collage__item--taofiawb,
.collage__item--feet {
  width: 45%;
}

.collage__item--taofiawb {
  width: 54%;
}

.collage__item--park,
.collage__item--door {
  grid-column: span 2;
}

@media (min-width: 48rem) {
  .collage {
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-6) clamp(1.5rem, 4vw, 3.5rem);
  }

  .collage__item--title {
    width: 100%;
  }

  .collage__item--taofiawb { grid-area: 1 / 1 / 3 / 2; width: 108%; }
  .collage__item--red { grid-area: 1 / 2; }
  .collage__item--arches { grid-area: 1 / 3; }
  .collage__item--face { grid-area: 1 / 4; }
  .collage__item--anthiom { grid-area: 2 / 3 / 3 / 5; }
  .collage__item--arcade { grid-area: 3 / 1; }
  .collage__item--woman { grid-area: 3 / 2; }
  .collage__item--ice { grid-area: 3 / 3; }
  .collage__item--escalator { grid-area: 3 / 4; }
  .collage__item--statue { grid-area: 3 / 5; }
  .collage__item--birds { grid-area: 4 / 1; }
  .collage__item--park { grid-area: 4 / 2 / 6 / 4; }
  .collage__item--unlined { grid-area: 4 / 4; }
  .collage__item--eyes { grid-area: 4 / 5; }
  .collage__item--girl { grid-area: 5 / 1; }
  .collage__item--beard { grid-area: 5 / 4; }
  .collage__item--graffiti { grid-area: 5 / 5; }
  .collage__item--polyphony { grid-area: 6 / 1 / 7 / 3; }
  .collage__item--subway { grid-area: 6 / 4; }
  .collage__item--eagle { grid-area: 7 / 1; }
  .collage__item--clothes { grid-area: 7 / 2; }
  .collage__item--man { grid-area: 7 / 4; }
  .collage__item--feet { grid-area: 7 / 5; width: 75%; }
  .collage__item--spikes { grid-area: 8 / 1; }
  .collage__item--trees { grid-area: 8 / 2; }
  .collage__item--door { grid-area: 8 / 3 / 9 / 5; }
  .collage__item--bridge { grid-area: 8 / 5; }
}


/* Index cards (films, plays, books) --------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 22rem);
  justify-content: center;
  gap: var(--space-8);
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter) 0;
}

.page--writings .card-grid {
  padding-top: 0;
}

@media (min-width: 48rem) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 6vw, 6rem);
    padding-top: var(--space-12);
  }

  .card-grid--single {
    grid-template-columns: minmax(0, 16rem);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-decoration: none;
}

.card__num {
  font-size: 0.6875rem;
  font-weight: 700;
}

.card__frame {
  display: block;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.card__frame img {
  width: 100%;
}

.card:hover .card__frame {
  transform: translateY(-6px);
  box-shadow: -24px 30px 50px -18px rgb(0 0 0 / 0.32);
}

.card__label {
  text-align: center;
}


/* Detail pages ------------------------------------------------------------ */

.detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) 0 0;
}

.detail > * {
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.detail__cover {
  display: flex;
  justify-content: center;
}

.detail__cover img {
  width: auto;
  max-width: min(100%, 30rem);
  max-height: 78vh;
  object-fit: contain;
  box-shadow: var(--shadow-card);
}

.detail__head {
  margin-top: var(--space-6);
  text-align: center;
}

.detail__status {
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail__laurels {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

.detail__laurels img {
  width: min(100%, 800px);
}

.detail .prose {
  margin-top: var(--space-6);
}

.detail__extra {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: var(--space-8);
}

.detail__extra img {
  width: min(100%, 36rem);
  box-shadow: var(--shadow-card);
}

.detail__cover--photo {
  flex-direction: column;
  align-items: center;
}

.detail__cover--photo img {
  width: min(100%, 600px);
  max-width: 100%;
  max-height: none;
}

.detail__cover--photo figcaption {
  max-width: var(--measure);
  margin: var(--space-3) auto 0;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--ink-soft);
}

.detail__extra--poster img {
  width: min(100%, 460px);
}

.detail__extra figcaption {
  max-width: var(--measure);
  margin-top: var(--space-3);
  font-size: 0.9375rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Full-bleed image strip; scrolls horizontally on small screens */
.strip {
  margin-top: var(--space-8);
  padding: 0 !important;
}

.strip__list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.strip__list::-webkit-scrollbar {
  display: none;
}

.strip__item {
  flex: 0 0 70%;
  scroll-snap-align: center;
}

.strip__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (min-width: 48rem) {
  .strip__item {
    flex: 1 1 0;
    min-width: 0;
  }

  .strip__item img {
    aspect-ratio: 4 / 3;
  }
}

/* Video facade */
.watch {
  max-width: 48rem;
  margin-top: var(--space-12);
  text-align: center;
}

.watch__title {
  margin-bottom: var(--space-3);
}

.watch__caption {
  margin-top: var(--space-3);
  text-align: center;
}

.watch__awards {
  margin-top: var(--space-2);
  font-size: 0.9375rem;
  font-style: italic;
  list-style: none;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.video__poster,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.video__play::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.5rem;
  height: 4.5rem;
  margin: -2.25rem 0 0 -2.25rem;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 50%;
  background: rgb(0 0 0 / 0.25);
  transition: transform 0.4s var(--ease-out), background-color 0.4s;
}

.video__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -0.625rem 0 0 -0.375rem;
  border-style: solid;
  border-width: 0.625rem 0 0.625rem 1rem;
  border-color: transparent transparent transparent #fff;
}

.video__play:hover::before {
  transform: scale(1.08);
  background: rgb(0 0 0 / 0.45);
}

.video__fallback {
  position: absolute;
  inset: auto 0 var(--space-2);
  color: #fff;
}

.credits {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: 0.9375rem;
  text-align: center;
}

.credits dt {
  font-weight: 700;
}


/* About ------------------------------------------------------------------- */

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-8) var(--gutter) 0;
}

/* Portrait spans the same column as the works list below */
.about__portrait {
  width: 100%;
  max-width: 40rem;
}

.about__portrait img {
  width: 100%;
}

.about__lead {
  max-width: var(--measure);
  margin-top: var(--space-4);
  text-align: center;
}

.works {
  display: grid;
  gap: var(--space-4);
  width: 100%;
  max-width: 40rem;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--rule);
  text-align: center;
}

@media (min-width: 40rem) {
  .works {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

.works__heading {
  margin-bottom: var(--space-1);
}

.works__heading a,
.works__list a {
  text-decoration: none;
}

.works__list {
  font-size: 0.9375rem;
  line-height: 1.9;
}

.works__list a:hover {
  text-decoration: underline;
}

.works__year {
  color: var(--grey-text);
}


/* Contact ----------------------------------------------------------------- */

.page--contact .main {
  display: flex;
}

.contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: calc(100svh - var(--header-height));
  padding: var(--space-4) var(--gutter);
}

.contact__mark {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact__logo {
  width: min(80vw, 20rem);
}

.contact__address {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  max-width: 60rem;
  font-size: 0.875rem;
  font-style: normal;
  text-align: center;
}

.contact__line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
}

.contact__address a {
  text-decoration: none;
}

.contact__address a:hover {
  text-decoration: underline;
}


/* Writings ----------------------------------------------------------------- */

.writings-section {
  max-width: var(--content);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter) 0;
}

.writings-section + .writings-section {
  padding-top: var(--space-16);
}

.card-grid--single .card__num {
  text-align: left;
}

/* Published poetry: scattered, masonry-like columns */
.scatter {
  columns: 1;
  column-gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 40rem) {
  .scatter {
    columns: 2;
  }
}

@media (min-width: 64rem) {
  .scatter {
    columns: 3;
  }
}

.scatter__item {
  display: block;
  break-inside: avoid;
  margin: 0 auto var(--space-8);
}

.pub {
  text-decoration: none;
}

.pub__frame {
  display: block;
  padding: 6%;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}

.pub__frame--half {
  width: 50%;
  margin-inline: auto;
}

.pub:hover .pub__frame {
  transform: translateY(-6px);
  box-shadow: -24px 30px 50px -18px rgb(0 0 0 / 0.32);
}

.pub__frame img {
  width: 100%;
}

.pub__label {
  margin-top: var(--space-2);
  font-size: 0.6875rem;
  text-align: center;
}

.pub--v1 { width: 80%; margin-left: 4%; }
.pub--v2 { width: 70%; margin-right: 6%; }
.pub--v3 { width: 76%; }
.pub--v4 { width: 66%; margin-left: 16%; margin-top: var(--space-4); }
.pub--v5 { width: 84%; }

.fragment {
  max-width: 24rem;
  padding: 0 var(--space-2);
  font-family: var(--font-serif);
  color: var(--ink-soft);
}

.fragment p + p {
  margin-top: 0.9em;
}

.fragment--s {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.fragment--m {
  font-size: 1.125rem;
  line-height: 1.45;
}

.fragment--l {
  font-size: 1.5rem;
  line-height: 1.35;
}

.undone {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: var(--space-3);
  width: 60%;
  padding: var(--space-2) 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: 0.35em;
}

.undone__cell--1 {
  grid-column: 1;
}

.undone__cell--2 {
  grid-column: 2;
}

.performances {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 48rem) {
  .performances {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-8) clamp(2rem, 8vw, 8rem);
  }

  .performances__item--vivid-poetry-allios-2012 {
    width: 70%;
  }

  .performances__item--logos-festival-2013 {
    grid-column: 1;
    width: 80%;
    margin-left: 18%;
  }
}


/* 404 ---------------------------------------------------------------------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-16) var(--gutter);
  text-align: center;
}


/* Reduced motion ------------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
