@font-face {
  font-family: "Aine Sans";
  src: url("../fonts/nimbus-sans-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aine Sans";
  src: url("../fonts/nimbus-sans-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aine Serif";
  src: url("../fonts/nimbus-roman-regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aine Serif";
  src: url("../fonts/nimbus-roman-italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f4f0e7;
  --ink: #171411;
  --red: #bd3e27;
  --pink: #ecaec5;
  --blue: #aebfc8;
  --line: rgba(23, 20, 17, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #d9d3c9;
  color: var(--ink);
  font-family: "Aine Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 11px 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-150%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 68px;
  border-bottom: 1px solid rgba(23, 20, 17, 0.18);
  background: var(--paper);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1440px, 100%);
  min-height: 68px;
  margin: 0 auto;
  padding: 12px clamp(22px, 3.2vw, 54px);
}

.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-note {
  margin-left: 42px;
  font-size: 15px;
}

.main-nav {
  display: flex;
  grid-column: 3;
  gap: clamp(28px, 3.2vw, 54px);
  align-items: center;
}

.main-nav a {
  position: relative;
  padding: 8px 0 6px;
  font-size: 17px;
  text-decoration: none;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.menu-toggle i {
  position: relative;
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ink);
}

.menu-toggle i::after {
  position: absolute;
  top: 6px;
  right: 0;
  width: 13px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.poster {
  position: relative;
  width: min(1440px, 100%);
  aspect-ratio: 864 / 1800;
  margin: 0 auto;
  overflow: hidden;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 20, 17, 0.055) 0.55px, transparent 0.65px);
  background-size: 5px 5px;
  container-type: inline-size;
  isolation: isolate;
}

.letter {
  position: absolute;
  z-index: 1;
  color: var(--red);
  font-family: "Aine Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.12em;
  line-height: 0.72;
  pointer-events: none;
  user-select: none;
}

.letter--a {
  top: 1.2%;
  left: -3.5%;
  z-index: 3;
  font-size: 70cqw;
}

.letter--i {
  top: 22%;
  left: 38.5%;
  color: var(--pink);
  font-size: 96cqw;
}

.letter--n {
  top: 57.5%;
  left: -4%;
  z-index: 3;
  font-size: 78cqw;
}

.letter--e {
  right: -2%;
  bottom: 5.8%;
  color: var(--pink);
  font-size: 72cqw;
}

.register {
  position: absolute;
  z-index: 8;
  width: 28px;
  height: 28px;
  color: var(--ink);
  opacity: 0.66;
}

.register::before,
.register::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.register::before {
  top: 13px;
  left: 0;
  width: 28px;
  height: 1px;
}

.register::after {
  top: 0;
  left: 13px;
  width: 1px;
  height: 28px;
}

.register--top {
  top: 1.2%;
  left: 49%;
}

.register--left {
  top: 22%;
  left: 1.2%;
}

.register--right {
  top: 29.5%;
  right: 1.2%;
}

.register--bottom {
  right: 1.6%;
  bottom: 1.2%;
}

.intro {
  position: absolute;
  top: 5.7%;
  right: 4.8%;
  z-index: 7;
  width: 19%;
  font-size: clamp(16px, 1.3cqw, 19px);
  line-height: 1.48;
}

.intro p + p {
  margin-top: 20px;
}

.proof {
  position: absolute;
  z-index: 2;
  overflow: visible;
}

.proof img {
  filter: saturate(0.9) contrast(1.02);
}

.proof--citrus {
  top: 3.8%;
  left: 26%;
  width: 48%;
  height: 20.5%;
}

.proof--citrus img {
  object-position: center;
}

.tape {
  position: absolute;
  top: -4%;
  left: 21%;
  width: 42%;
  height: 9%;
  background: rgba(221, 207, 178, 0.76);
  box-shadow: inset 0 0 12px rgba(91, 76, 54, 0.1);
  transform: rotate(-1.5deg);
}

.tape--small {
  top: -3%;
  left: 35%;
  width: 54%;
  height: 7%;
}

.proof--portrait-small {
  top: 13.2%;
  right: 6.2%;
  width: 15.5%;
  height: 10.2%;
  padding: 1.2%;
}

.proof--portrait-small img,
.proof--noma-a img {
  position: relative;
  z-index: 2;
  filter: grayscale(1) contrast(1.12);
  object-position: center 16%;
}

.portrait-paper {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--pink);
  transform: rotate(-3deg);
}

.proof--portrait-small::after,
.proof--noma-a::after {
  position: absolute;
  inset: 8%;
  z-index: 3;
  background-image: radial-gradient(rgba(0, 0, 0, 0.16) 0.6px, transparent 0.7px);
  background-size: 3px 3px;
  mix-blend-mode: multiply;
  content: "";
  pointer-events: none;
}

.margin-note {
  position: absolute;
  z-index: 8;
  font-family: "Aine Serif", Georgia, serif;
  font-size: clamp(19px, 2.2cqw, 32px);
  font-style: italic;
  line-height: 1.08;
}

.margin-note--top {
  top: 25.7%;
  left: 61.5%;
  transform: rotate(-4deg);
}

.margin-note--middle {
  top: 58.5%;
  right: 4.5%;
  transform: rotate(4deg);
}

.projects {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.project {
  position: absolute;
  pointer-events: auto;
}

.project-title h3 {
  color: var(--red);
  font-family: "Aine Serif", Georgia, serif;
  font-size: clamp(44px, 7.4cqw, 106px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.77;
}

.project-title p {
  margin-top: 8px;
  font-size: clamp(16px, 1.25cqw, 18px);
}

.project-copy {
  position: absolute;
  width: min(290px, 24cqw);
  font-size: clamp(16px, 1.2cqw, 18px);
  line-height: 1.45;
}

.project--mari {
  top: 30.2%;
  left: 7.5%;
  width: 35%;
  height: 29%;
}

.project--mari .project-title {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}

.proof--mari-main {
  top: 14%;
  left: 0;
  width: 84%;
  height: 65%;
}

.proof--mari-main img {
  object-position: 40% center;
}

.project--mari .project-copy {
  bottom: 0;
  left: 0;
}

.project--rada {
  top: 31.4%;
  right: 2.5%;
  width: 41%;
  height: 32%;
}

.project--rada .project-title {
  position: absolute;
  top: 0;
  left: 22%;
  z-index: 5;
}

.feed-grid {
  position: absolute;
  top: 14%;
  right: 0;
  display: grid;
  width: 93%;
  grid-template-columns: repeat(3, 1fr);
  border: 8px solid var(--paper);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(23, 20, 17, 0.38);
}

.feed-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-right: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
}

.feed-item:nth-child(3n) {
  border-right: 0;
}

.feed-item:nth-child(n + 7) {
  border-bottom: 0;
}

.feed-item--type {
  display: flex;
  padding: 9%;
  flex-direction: column;
  justify-content: space-between;
  background: var(--pink);
  color: var(--paper);
}

.feed-item--type strong {
  font-family: "Aine Serif", Georgia, serif;
  font-size: clamp(21px, 3cqw, 44px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

.feed-item--type span {
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
}

.feed-item--type-blue {
  background: var(--blue);
  color: var(--ink);
}

.feed-item--type-cream {
  background: var(--paper);
  color: var(--red);
}

.project--rada .project-copy {
  right: 2%;
  bottom: 0;
}

.project--noma {
  top: 60.5%;
  left: 6.7%;
  width: 41%;
  height: 35%;
}

.project--noma .project-title {
  position: absolute;
  bottom: 4%;
  left: 0;
  z-index: 7;
}

.proof--noma-a {
  top: 4%;
  left: 47%;
  width: 39%;
  height: 45%;
  padding: 2%;
}

.proof--noma-b {
  top: 42%;
  left: 43%;
  width: 37%;
  height: 42%;
  filter: grayscale(1) contrast(1.08);
}

.proof--noma-b img {
  object-position: center 30%;
}

.project--noma .project-copy {
  bottom: 0;
  left: 0;
  transform: translateY(120%);
}

.service-word {
  position: absolute;
  z-index: 7;
  font-size: clamp(16px, 1.7cqw, 24px);
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.service-word--photo {
  top: 39.2%;
  left: 40.5%;
}

.service-word--design {
  top: 66.2%;
  left: 8.8%;
}

.service-word--monthly {
  top: 66%;
  left: 43.3%;
}

.proof--contact-citrus {
  right: 5%;
  bottom: 10.5%;
  width: 30%;
  height: 18%;
  z-index: 2;
}

.proof--contact-citrus img {
  object-position: 24% 72%;
}

.contact {
  position: absolute;
  right: 4.8%;
  bottom: 2.3%;
  z-index: 8;
  width: 43%;
}

.contact h2 {
  color: var(--red);
  font-family: "Aine Serif", Georgia, serif;
  font-size: clamp(58px, 8.3cqw, 120px);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

.email {
  display: block;
  margin-top: 24px;
  padding: 6px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  font-size: clamp(18px, 2.3cqw, 34px);
  cursor: pointer;
}

.email:hover,
.email:focus-visible {
  border-bottom-color: var(--ink);
}

.copy-status {
  min-height: 22px;
  margin-top: 8px;
  font-size: 15px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr auto;
  gap: 30px;
  align-items: center;
  width: min(1440px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 20px clamp(22px, 3.2vw, 54px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer a,
.site-footer p,
.site-footer span {
  font-size: 15px;
}

.site-footer a {
  width: max-content;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer span {
  color: rgba(23, 20, 17, 0.62);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-width: 44px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--paper);
}

.error-page .site-header,
.error-page .site-footer {
  width: 100%;
}

.error-main {
  position: relative;
  display: grid;
  flex: 1;
  min-height: 680px;
  place-items: center;
  overflow: hidden;
  padding: 80px 22px;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 20, 17, 0.055) 0.55px, transparent 0.65px);
  background-size: 5px 5px;
}

.error-code {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-family: "Aine Serif", Georgia, serif;
  font-size: clamp(250px, 48vw, 720px);
  letter-spacing: -0.15em;
  line-height: 0.7;
  transform: translateX(-0.05em);
}

.error-code em {
  color: var(--pink);
  font-style: normal;
}

.error-copy {
  position: relative;
  z-index: 3;
  width: min(480px, 100%);
  padding: 44px;
  background: var(--paper);
  border: 1px solid var(--ink);
}

.error-copy h1 {
  margin-bottom: 18px;
  color: var(--red);
  font-family: "Aine Serif", Georgia, serif;
  font-size: clamp(52px, 7vw, 86px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.85;
}

.error-copy p {
  margin-bottom: 26px;
  font-size: 16px;
}

.text-link {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 68px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand-note {
    margin-left: 24px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 28px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 17px 0;
    border-bottom: 1px solid var(--ink);
    font-family: "Aine Serif", Georgia, serif;
    font-size: clamp(38px, 8vw, 60px);
  }

  .poster {
    display: flex;
    min-height: 0;
    aspect-ratio: auto;
    padding: 42px 22px 90px;
    flex-direction: column;
    overflow: hidden;
  }

  .register {
    display: none;
  }

  .letter {
    z-index: 0;
  }

  .letter--a {
    top: 42px;
    left: -9%;
    font-size: 118vw;
  }

  .letter--i {
    top: 860px;
    left: 55%;
    font-size: 142vw;
  }

  .letter--n {
    top: 2350px;
    left: -15%;
    font-size: 132vw;
  }

  .letter--e {
    right: -18%;
    bottom: 170px;
    font-size: 128vw;
  }

  .intro,
  .proof,
  .projects,
  .project,
  .service-word,
  .margin-note,
  .contact {
    position: relative;
    inset: auto;
  }

  .intro {
    z-index: 5;
    width: min(310px, 70%);
    margin: 20px 0 72px auto;
    order: 1;
    font-size: 16px;
  }

  .proof--citrus {
    z-index: 2;
    width: 86%;
    height: auto;
    aspect-ratio: 1.18;
    margin: 0 auto 0 0;
    order: 2;
  }

  .proof--portrait-small {
    z-index: 4;
    width: 32%;
    height: auto;
    aspect-ratio: 0.76;
    margin: -22% 3% 80px auto;
    order: 3;
  }

  .margin-note--top {
    z-index: 5;
    margin: -130px 0 100px 47%;
    order: 4;
    font-size: 23px;
  }

  .service-word {
    z-index: 5;
    width: max-content;
    margin: 0 0 15px;
    font-family: "Aine Serif", Georgia, serif;
    font-size: clamp(32px, 7vw, 50px);
    font-style: italic;
    writing-mode: initial;
    transform: none;
  }

  .service-word--photo {
    order: 5;
  }

  .service-word--design {
    align-self: flex-end;
    order: 6;
  }

  .service-word--monthly {
    margin-bottom: 100px;
    order: 7;
  }

  .projects {
    z-index: 3;
    display: flex;
    flex-direction: column;
    order: 8;
    pointer-events: auto;
  }

  .project {
    width: 100%;
    height: auto;
    margin-bottom: 120px;
  }

  .project-title,
  .project--mari .project-title,
  .project--rada .project-title,
  .project--noma .project-title {
    position: relative;
    inset: auto;
    z-index: 5;
    margin-bottom: 24px;
  }

  .project-title h3 {
    font-size: clamp(74px, 18vw, 128px);
  }

  .project-title p {
    font-size: 16px;
  }

  .proof--mari-main {
    width: 76%;
    height: auto;
    aspect-ratio: 0.82;
    margin-left: 4%;
  }

  .feed-grid {
    position: relative;
    inset: auto;
    width: 86%;
    margin-left: auto;
  }

  .proof--noma-a {
    width: 45%;
    height: auto;
    aspect-ratio: 0.76;
    margin: 0 8% 0 auto;
  }

  .proof--noma-b {
    width: 48%;
    height: auto;
    aspect-ratio: 0.72;
    margin: -24% 0 0 11%;
  }

  .project-copy,
  .project--mari .project-copy,
  .project--rada .project-copy,
  .project--noma .project-copy {
    position: relative;
    inset: auto;
    width: min(420px, 82%);
    margin: 28px 0 0 auto;
    font-size: 16px;
    transform: none;
  }

  .margin-note--middle {
    z-index: 5;
    margin: -90px 7% 100px auto;
    order: 9;
    font-size: 24px;
  }

  .proof--contact-citrus {
    z-index: 2;
    width: 68%;
    height: auto;
    aspect-ratio: 1;
    margin: 0 0 0 auto;
    order: 10;
  }

  .contact {
    z-index: 6;
    width: 100%;
    margin-top: -20%;
    order: 11;
  }

  .contact h2 {
    width: 84%;
    font-size: clamp(64px, 18vw, 125px);
  }

  .email {
    font-size: clamp(21px, 5vw, 33px);
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer span {
    grid-column: 2;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand-note {
    display: none;
  }

  .poster {
    padding-right: 18px;
    padding-left: 18px;
  }

  .intro {
    width: 68%;
    margin-bottom: 54px;
  }

  .proof--citrus {
    width: 92%;
  }

  .proof--portrait-small {
    width: 38%;
  }

  .margin-note--top {
    margin-top: -105px;
    margin-bottom: 90px;
  }

  .service-word--monthly {
    margin-bottom: 82px;
  }

  .project {
    margin-bottom: 96px;
  }

  .proof--mari-main {
    width: 84%;
  }

  .feed-grid {
    width: 100%;
    border-width: 5px;
  }

  .feed-item--type strong {
    font-size: 25px;
  }

  .proof--noma-a {
    width: 54%;
  }

  .proof--noma-b {
    width: 55%;
  }

  .project-copy,
  .project--mari .project-copy,
  .project--rada .project-copy,
  .project--noma .project-copy {
    width: 88%;
  }

  .proof--contact-citrus {
    width: 79%;
  }

  .contact {
    margin-top: -16%;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .site-footer span {
    grid-column: auto;
  }

  .error-main {
    min-height: 590px;
  }

  .error-copy {
    padding: 34px 26px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
