@font-face {
  font-family: "Chonburi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/chonburi-400-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: "Chonburi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/chonburi-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Trirong";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/trirong-300-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: "Trirong";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/trirong-400-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: "Trirong";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/trirong-600-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: "Trirong";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/trirong-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #253451;
  --navy-deep: #1b2740;
  --bone: #dfe0da;
  --ink: #000;
  --paper: #fff;
  --display: "Chonburi", "Bookman Old Style", Georgia, serif;
  --text: "Trirong", Georgia, "Times New Roman", serif;
  --wrap: 78.125%;
  --wrap-max: 1400px;
  --gap-tight: 6px;
  --gap-row: clamp(28px, 4.7vw, 60px);
  --gap-stack: clamp(32px, 6.9vw, 88px);
  --pad-top: clamp(76px, 10.9vw, 140px);
  --pad-bottom: clamp(56px, 6.9vw, 88px);
  --head-gap: clamp(48px, 8.6vw, 110px);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

picture {
  display: block;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--bone);
  font-size: 15px;
}

.skip:focus {
  left: 16px;
  top: 16px;
}

.wrap {
  width: var(--wrap);
  max-width: var(--wrap-max);
  margin-inline: auto;
}

.wordmark {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.005em;
  color: var(--navy);
}

.hero {
  background: var(--bone);
  padding-bottom: clamp(52px, 6.4vw, 82px);
}

.hero__bar {
  padding: 28px 4.0625% 0;
}

.hero__title {
  margin: clamp(38px, 4.6vw, 60px) auto 0;
  text-align: center;
  font-size: clamp(42px, 3.75vw, 58px);
  line-height: 1.04;
  color: var(--navy);
}

.hobbies {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-tight);
  width: var(--wrap);
  max-width: var(--wrap-max);
  margin: clamp(26px, 2.7vw, 35px) auto 0;
}

.hobby {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hobby__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(150px, 12.3vw, 200px);
  margin-bottom: 5px;
}

.hobby__art picture,
.hobby__art img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease);
}

.hobby__art--stack {
  gap: 0;
  align-items: flex-start;
}

.hobby__art--stack .stack {
  height: 82%;
  flex: 0 0 auto;
}

.hobby__art--stack .stack--a {
  margin-right: 4px;
}

.hobby__art--stack .stack--b {
  height: 85%;
  align-self: flex-end;
}

.hobby__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(46px, 3.8vw, 58px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--bone);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.25;
  text-align: center;
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.hobby:hover .hobby__label,
.hobby:focus-visible .hobby__label {
  background: var(--navy-deep);
}

.hobby:hover .hobby__art img {
  transform: translateY(-6px);
}

.section {
  padding-top: var(--pad-top);
  padding-bottom: var(--pad-bottom);
  scroll-margin-top: 0;
}

.section--paper {
  background: var(--paper);
  color: var(--ink);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.s-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: var(--head-gap);
}

.s-head__title {
  font-size: clamp(44px, 4vw, 60px);
  line-height: 1.0;
}

.s-head__title--solo {
  margin-bottom: clamp(24px, 2vw, 26px);
}

.s-head__text {
  font-weight: 300;
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.68;
}

.gallery {
  display: grid;
  gap: var(--gap-row) var(--gap-tight);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ece9e3;
}

.gallery__item picture,
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__item img,
.sew__item img {
  transition: transform 0.7s var(--ease);
}

.gallery__item:hover img,
.sew__item:hover img {
  transform: scale(1.035);
}

.gallery--cookies {
  grid-template-columns: repeat(3, 1fr);
}

.gallery--cookies .gallery__item {
  aspect-ratio: 330 / 400;
}

.gallery--cookies .gallery__item--wide {
  grid-column: span 2;
  aspect-ratio: 666 / 400;
}

.gallery--floral {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-tight);
}

.gallery--floral .gallery__item {
  aspect-ratio: 497 / 534;
}

.sew {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 6.9vw, 89px);
  align-items: start;
}

.sew__col--a {
  margin-top: clamp(0px, 4.2vw, 54px);
}

.sew__item {
  overflow: hidden;
  border-radius: var(--radius);
  background: #141414;
}

.sew__item picture,
.sew__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sew__item--tall {
  aspect-ratio: 455 / 535;
}

.sew__item--wide {
  aspect-ratio: 455 / 237;
}

.sew__item + .sew__item {
  margin-top: var(--gap-stack);
}

.sew__item--wide + .sew__item--wide {
  margin-top: var(--gap-tight);
}

.section--books {
  padding-bottom: clamp(72px, 8vw, 104px);
}

.books {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 44px);
}

.books__item {
  flex: 0 1 auto;
  min-width: 0;
}

.books__item picture,
.books__item img {
  height: clamp(150px, 18.5vw, 300px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 3px;
  transition: transform 0.5s var(--ease);
}

.books__item:nth-child(even) {
  margin-top: clamp(28px, 6.4vw, 104px);
}

.books__item:hover img {
  transform: translateY(-8px) rotate(-1deg);
}

.footer {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: clamp(72px, 10.2vw, 130px);
}

.wordmark--lg {
  display: inline-block;
  font-size: clamp(28px, 2.8vw, 42px);
  color: var(--paper);
  line-height: 1.1;
  transition: opacity 0.3s var(--ease);
}

.wordmark--lg:hover {
  opacity: 0.72;
}

.zoomable {
  cursor: zoom-in;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 8, 10, 0.96);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--text);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}

.lightbox__btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox__btn--close {
  top: clamp(12px, 2.4vw, 28px);
  right: clamp(12px, 2.4vw, 28px);
  font-size: 26px;
}

.lightbox__btn--prev {
  left: clamp(10px, 2.4vw, 28px);
  top: 50%;
  margin-top: -26px;
}

.lightbox__btn--next {
  right: clamp(10px, 2.4vw, 28px);
  top: 50%;
  margin-top: -26px;
}

body.is-locked {
  overflow: hidden;
}

@media (max-width: 1023px) {
  :root {
    --wrap: 86%;
  }

  .hobbies {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hobby__art {
    height: clamp(150px, 21vw, 210px);
  }
}

@media (max-width: 719px) {
  :root {
    --wrap: 88%;
    --gap-tight: 5px;
  }

  body {
    font-size: 17px;
  }

  .hero__bar {
    padding: 22px 6% 0;
  }

  .hero__title {
    max-width: 9ch;
  }

  .hobbies {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hobby__art {
    height: auto;
    aspect-ratio: 4 / 3;
    margin-bottom: 10px;
  }

  .hobby__art picture,
  .hobby__art img {
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
  }

  .hobby__art--stack {
    background: none;
    gap: 12px;
    align-items: center;
    justify-content: center;
  }

  .hobby__art--stack .stack {
    height: 78%;
    width: auto;
  }

  .hobby__art--stack .stack img {
    width: auto;
    height: 100%;
    object-fit: contain;
  }

  .hobby__art--stack .stack--a {
    margin-right: 0;
  }

  .hobby__art--stack .stack--b {
    height: 78%;
    align-self: center;
  }

  .hobby__label {
    font-size: 16px;
    min-height: 54px;
  }

  .s-head {
    grid-template-columns: 1fr;
    gap: clamp(20px, 5vw, 30px);
  }

  .s-head__title {
    max-width: 11ch;
  }

  .s-head__text {
    max-width: 46ch;
  }

  .gallery--cookies {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: dense;
    gap: 18px var(--gap-tight);
  }

  .gallery--cookies .gallery__item:last-child {
    grid-column: span 2;
    aspect-ratio: 665 / 400;
  }

  .sew {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sew__col--a {
    margin-top: 0;
  }

  .sew__col--b .sew__item:first-child {
    margin-top: var(--gap-stack);
  }

  .books {
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -6vw;
    padding: 0 6vw 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }

  .books__item {
    scroll-snap-align: center;
    flex: 0 0 auto;
  }

  .books__item picture,
  .books__item img {
    height: 220px;
  }

  .books__item:nth-child(even) {
    margin-top: 0;
  }

  .lightbox__btn--prev,
  .lightbox__btn--next {
    top: auto;
    bottom: 16px;
    margin-top: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

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