@font-face {
  font-family: "Onest";
  src: url("../assets/fonts/onest.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --white: #fff;
  --purple: #421454;
  --plum: #802c62;
  --coral: #ff5b42;
  --gold: #ffd749;
  --ink: #271c2c;
  --muted: #685c6d;
  --line: #eae1ed;
  --wash: #f9f4fa;
  --lavender: #e5d4f3;
  --body: "Onest", system-ui, sans-serif;
  --display: var(--body);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

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

button { font: inherit; }

.arrow-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: .9em;
  height: .9em;
  vertical-align: middle;
}

.arrow-icon::before, .arrow-icon::after {
  content: "";
  position: absolute;
}

.arrow-icon::before {
  top: calc(50% - .75px);
  left: 13%;
  right: 15%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.arrow-icon::after {
  top: 50%;
  right: 14%;
  width: .32em;
  height: .32em;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.arrow-up-right { transform: rotate(-45deg); }
.arrow-down-right { transform: rotate(45deg); }
.arrow-left { transform: rotate(180deg); }
.arrow-up { transform: rotate(-90deg); }

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

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

h1, h2, h3 {
  color: var(--purple);
  font-family: var(--display);
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1;
}

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 4px;
}

::selection {
  background: var(--gold);
  color: var(--purple);
}

.wrap {
  width: min(calc(100% - 88px), 1192px);
  margin-inline: auto;
}

.section { margin-block-start: clamp(4.25rem, 7vw, 6.75rem); }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 18px;
  transform: translateY(-170%);
  background: var(--purple);
  color: var(--white);
  border-radius: 9px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: .67rem;
  color: var(--purple);
  font-family: var(--display);
  font-size: 1.13rem;
  font-weight: 750;
  letter-spacing: -.025em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 37px;
  height: 37px;
  place-content: center;
  position: relative;
  background: var(--purple);
  color: var(--white);
  border-radius: 11px;
  font-size: 1.1rem;
  letter-spacing: -.09em;
  line-height: 1;
  padding-right: 3px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  right: 7px;
  bottom: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.desktop-nav {
  display: flex;
  gap: clamp(1.25rem, 3.15vw, 2.7rem);
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
}

.desktop-nav a {
  padding-block: .6rem;
  text-underline-offset: .42em;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--coral);
}

.desktop-nav a:hover, .desktop-nav a:focus-visible {
  color: var(--purple);
  text-decoration-line: underline;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  justify-self: end;
  padding: .52rem 1rem .54rem 1.14rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple);
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms, border-color 160ms;
}

.header-contact:hover {
  background: var(--wash);
  border-color: var(--plum);
}

.header-contact span { font-size: 1.15rem; line-height: 1; }

.mobile-menu { display: none; }

.detail-art figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  padding: .75rem .12rem 0;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 600;
}

.sample-caption {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.sample-caption::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.card-image-lavender { background: var(--lavender); }
.card-image-peach { background: #e8aa90; }
.card-image-sand { background: #dacbb6; }

.project-category {
  color: var(--plum);
  font-weight: 700;
  font-size: .78rem;
  line-height: 1.4;
}

.card-arrow {
  flex: 0 0 auto;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--purple);
  font-size: 1.12rem;
  line-height: 1;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-block: 1.35rem;
  font-size: .88rem;
}

.footer-inner a {
  color: var(--purple);
  font-weight: 700;
}

.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.footer-inner a span { margin-left: .23em; }

.project-main { padding-block: clamp(2.2rem, 5vw, 4.6rem) 4.25rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--plum);
  font-weight: 700;
  font-size: .93rem;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.project-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .68fr);
  align-items: end;
  gap: .65rem 3rem;
  margin: 1.45rem 0 1.65rem;
}

.project-header h1 {
  margin-top: .28rem;
  color: var(--purple);
  font-size: clamp(3.2rem, 7.7vw, 6.1rem);
  font-weight: 800;
  letter-spacing: -.073em;
  line-height: .97;
}

.project-header .project-category { font-size: .9rem; }

.project-summary {
  max-width: 33ch;
  margin-bottom: .15rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.23rem);
  line-height: 1.5;
}

.detail-art {
  width: min(100%, 960px);
  margin-inline: auto;
}

.detail-image {
  overflow: hidden;
  border-radius: 1.4rem;
}

.detail-image img {
  width: 100%;
  height: auto;
}

.project-notes {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(1.3rem, 6vw, 5rem);
  margin-top: clamp(2.8rem, 6vw, 5.3rem);
}

.project-notes h2 { font-size: clamp(2.25rem, 4.8vw, 3.6rem); }

.project-notes p {
  max-width: 43ch;
  margin-top: .8rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.project-details {
  display: grid;
  gap: 0;
  padding: .28rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.05rem;
  background: var(--wash);
}

.project-details > div { padding-block: .88rem; }

.project-details > div + div { border-top: 1px solid var(--line); }

.project-details dt {
  color: var(--purple);
  font-weight: 700;
}

.project-details dd { color: var(--muted); font-size: .93rem; }

.project-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
  margin-top: 2.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.next-link {
  display: flex;
  align-items: center;
  gap: .72rem;
  color: var(--purple);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.next-link small {
  display: block;
  margin-bottom: .2rem;
  color: var(--muted);
  font-size: .74rem;
  font-weight: 600;
}

.next-link:hover .card-arrow, .next-link:focus-visible .card-arrow {
  color: var(--white);
  background: var(--purple);
}

@media (max-width: 940px) {
  .wrap { width: calc(100% - 60px); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 86px; }
  .wrap { width: calc(100% - 40px); }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 64px;
  }

  .desktop-nav, .header-contact { display: none; }

  .mobile-menu {
    display: block;
    position: relative;
    color: var(--purple);
  }

  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .48rem .7rem .48rem .85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 700;
    list-style: none;
  }

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

  .menu-icon {
    display: inline-block;
    width: 12px;
    height: 7px;
    border-block: 1.5px solid currentColor;
  }

  .mobile-menu nav {
    display: grid;
    min-width: 166px;
    position: absolute;
    top: calc(100% + .7rem);
    right: 0;
    padding: .38rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: .8rem;
    box-shadow: 0 8px 24px #42145418;
  }

  .mobile-menu nav a {
    padding: .57rem .64rem;
    font-size: .92rem;
    font-weight: 600;
    border-radius: .42rem;
  }

  .mobile-menu nav a:hover { background: var(--wash); }

  .detail-image { border-radius: 1.15rem; }

  .project-header, .project-notes {
    grid-template-columns: minmax(0, 1fr);
  }
  .project-main { padding-bottom: 3rem; }
}

@media (max-width: 460px) {
  .wrap { width: calc(100% - 36px); }
  .project-pagination .back-link, .next-link { font-size: .87rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
