:root {
  --brand: #94082C;
  --paper: #ffffff;
  --max: 1240px;
  --wide: 1320px;
  --grid-gap: clamp(10px, 1vw, 14px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--brand);
  font-family: "Open Sans", Arial, sans-serif;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  z-index: 50;
}
.skip-link:focus { left: 12px; top: 12px; }

.site-header { width: 100%; background: #fff; }
.top-banner,
.section-banner {
  width: 100%;
  overflow: hidden;
  background: #fff;
  line-height: 0;
  height: calc(100vw * 181 / 1440);
}
.top-banner img,
.section-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.main-nav {
  width: min(100%, 1240px);
  min-height: 104px;
  margin: 0 auto;
  padding: 32px 24px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(30px, 5.1vw, 72px);
  position: relative;
}
.nav-link,
.dropdown-panel a {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  cursor: pointer;
  color: var(--brand);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(18.6px, 2.2vw, 29px);
  line-height: 1.08;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.nav-link.is-active,
.nav-link:hover,
.dropdown-panel a:hover { font-weight: 700; }
.nav-dropdown { position: relative; text-align: center; }
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 28px;
  height: 28px;
}
.dropdown-toggle { display: inline-block; }
.dropdown-panel {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: grid;
  gap: 8px;
  min-width: 250px;
  padding: 10px 18px 18px;
  background: rgba(255,255,255,.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, visibility .16s ease;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel,
.nav-dropdown.is-open .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown-panel a { font-size: clamp(16px, 1.85vw, 24.5px); }

.search-button {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.search-button::before,
.search-button span { content: ""; position: absolute; display: block; }
.search-button::before {
  width: 30px;
  height: 30px;
  border: 4px solid var(--brand);
  border-radius: 50%;
  top: 6px;
  left: 6px;
}
.search-button span {
  width: 24px;
  height: 4px;
  background: var(--brand);
  border-radius: 999px;
  transform: rotate(45deg);
  left: 32px;
  top: 36px;
}

.section { width: 100%; background: #fff; padding: clamp(52px, 6.4vw, 92px) 24px; }
.content-wrap { width: min(100%, var(--max)); margin: 0 auto; }
.wide-wrap { width: min(100%, var(--wide)); }
.center { text-align: center; }

.hero-section {
  min-height: 430px;
  display: grid;
  place-items: start center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.hero-content { width: min(94vw, 760px); margin: 0 auto; text-align: center; }
.hero-logo-image { width: clamp(330px, 38vw, 500px); margin: 0 auto -20px; }
.hero-section h1 {
  margin: 0;
  color: var(--brand);
  font-family: "Gaegu", "Open Sans", cursive;
  font-size: clamp(30px, 4.1vw, 51px);
  line-height: .98;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}

h2, .page-title {
  margin: 0 0 clamp(42px, 5.4vw, 70px);
  color: var(--brand);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: clamp(25px, 2.75vw, 36px);
  line-height: 1.14;
  font-weight: 400;
  text-align: center;
}
.standalone-gallery .page-title {
  font-size: clamp(22px, 2.35vw, 32px);
  margin-bottom: clamp(32px, 4.8vw, 58px);
}

.about-section { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(64px, 7vw, 104px); }
.about-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 930px);
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 5vw, 72px);
}
.about-portrait { width: 380px; max-width: none; margin: 0 auto; }
.about-copy {
  width: min(100%, 930px);
  margin: 0 auto;
  color: var(--brand);
  font-family: "Gaegu", "Open Sans", cursive;
  font-size: clamp(20px, 1.82vw, 27px);
  line-height: 1.42;
  letter-spacing: .055em;
  text-align: center;
}

.gallery-section { padding-top: clamp(54px, 6vw, 82px); }
.standalone-gallery { padding-top: clamp(34px, 4vw, 56px); }
.pattern-grid,
.illustrations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.pattern-grid figure,
.illustrations-grid figure { margin: 0; }
.pattern-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.full-pattern-grid,
.pattern-preview-grid { gap: clamp(10px, 1vw, 14px); }
.illustrations-wrap { width: min(100%, 1180px); }
.illustrations-grid { gap: clamp(18px, 2vw, 30px); }
.illustrations-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 4px;
}

.collections-wrap { width: min(100%, 1160px); }
.collection-list { display: grid; gap: clamp(56px, 6vw, 84px); }
.collection-row { text-align: center; }
.collection-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 54px);
  row-gap: clamp(28px, 4vw, 54px);
  align-items: start;
}
.collection-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1582 / 2048;
  background: #fff;
  overflow: hidden;
}
.collection-image-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.collection-button,
.view-more {
  color: var(--brand);
  font-family: "Open Sans", Arial, sans-serif;
  text-align: center;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.collection-button {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: clamp(18px, 2.4vw, 30px) auto 0;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.18;
}
.view-more {
  display: block;
  width: max-content;
  margin: clamp(34px, 4.5vw, 58px) auto 0;
  font-size: clamp(21px, 2.45vw, 32px);
  line-height: 1;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.contact-section {
  min-height: 74vh;
  display: grid;
  place-items: center;
  padding-top: clamp(68px, 7.5vw, 104px);
  padding-bottom: clamp(70px, 8vw, 110px);
}
.contact-section p {
  margin: 10px 0;
  color: var(--brand);
  font-family: "Gaegu", "Open Sans", cursive;
  font-size: clamp(22px, 2.65vw, 38px);
  line-height: 1.28;
  letter-spacing: .055em;
}
.contact-note { margin-bottom: clamp(44px, 5vw, 74px) !important; }
.contact-email { font-weight: 400; margin-bottom: clamp(36px, 4.4vw, 64px) !important; }
.contact-email a { text-decoration: none; }
.contact-thanks { font-weight: 700; font-size: clamp(26px, 3.05vw, 44px) !important; margin-bottom: clamp(34px, 4vw, 56px) !important; }
.social-links {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: clamp(40px, 7vw, 84px);
  margin-top: clamp(34px, 4vw, 54px);
}
.social-item {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--brand);
  text-decoration: none;
}
.social-icon {
  display: block;
  width: 78px;
  height: 78px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 709px 1064px;
}
.pinterest-icon { background-image: url("assets/social/pinterest.png"); }
.linkedin-icon { background-image: url("assets/social/linkedin.png"); background-size: 520px 780px; background-position: calc(50% + 11px) center; }
.instagram-icon { background-image: url("assets/social/instagram.png"); }
.social-item span:last-child {
  color: var(--brand);
  font-family: "Gaegu", "Open Sans", cursive;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: .035em;
}

@media (max-width: 980px) {
  .main-nav {
    min-height: auto;
    padding-top: 26px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 30px;
  }
  .nav-link { font-size: 20px; }
  .dropdown-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    padding: 8px 0 0;
    min-width: 0;
    background: transparent;
  }
  .nav-dropdown:hover .dropdown-panel,
  .nav-dropdown:focus-within .dropdown-panel,
  .nav-dropdown.is-open .dropdown-panel { display: grid; }
  .dropdown-panel a { font-size: 17px; }
  .about-layout { grid-template-columns: 1fr; gap: 22px; }
  .about-portrait { width: clamp(220px, 42vw, 340px); }
  .pattern-grid,
  .illustrations-grid,
  .collection-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-section { min-height: auto; }
}

@media (max-width: 560px) {
  .section { padding-left: 16px; padding-right: 16px; }
  .main-nav { justify-content: flex-start; gap: 14px 22px; }
  .nav-link { font-size: 18px; }
  .search-button { width: 44px; height: 44px; flex-basis: 44px; transform: scale(.82); transform-origin: left center; }
  .hero-section h1 { white-space: normal; }
  .pattern-grid,
  .illustrations-grid,
  .collection-images { grid-template-columns: 1fr; }
  .social-links { gap: 30px; }
  .social-icon { width: 70px; height: 70px; background-size: 636px 954px; }
  .linkedin-icon { background-size: 500px 750px; background-position: calc(50% + 10px) center; }
}
