@font-face {
  font-family: 'Goudy Bookletter 1911';
  src: url('../assets/fonts/GoudyBookletter1911-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sorts Mill Goudy';
  src: url('../assets/fonts/SortsMillGoudy-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sorts Mill Goudy';
  src: url('../assets/fonts/SortsMillGoudy-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Xanh Mono';
  src: url('../assets/fonts/XanhMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Xanh Mono';
  src: url('../assets/fonts/XanhMono-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

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

:root {
  color-scheme: only light;
}

:root {
  --logo-offset: clamp(3rem, 8vh, 5rem);
  --logo-padding-block: clamp(0.34rem, 1.02vw, 0.72rem);
  --logo-padding-inline: clamp(0.51rem, 1.53vw, 0.94rem);
  --logo-font-size: clamp(1.19rem, 2.98vw, 1.87rem);
  --phone-font-size: clamp(0.95rem, 2vw, 1.35rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  /* Enhanced smooth scrolling with momentum on touch devices */
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}

/* Additional smoothness for all scrollable elements */
* {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #d14a7b 0%, #e97ea7 100%);
  color: #ffffff;
  font-family: 'Goudy Bookletter 1911', serif;
}

body,
body * {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  border: clamp(8px, 2vw, 18px) solid #ffffff;
  pointer-events: none;
  z-index: 10;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
  mix-blend-mode: soft-light;
  opacity: 0.3;
}

/* Product Page Styles - Clean slate with white background */
body.product-page {
  background: #ffffff;
  color: #1f1f1f;
}

body.product-page::before,
body.product-page::after {
  display: none;
}

/* Our Story Page Styles */
body.our-story-page {
  background: none;
  color: #1f1f1f;
}

body.our-story-page::before,
body.our-story-page::after {
  display: none;
}


.contact-phone {
  position: absolute;
  top: calc(
    var(--logo-offset) + var(--logo-padding-block) + 3px + 0.5 * var(--logo-font-size) -
      0.5 * var(--phone-font-size)
  );
  left: clamp(3.25rem, 8vw, 6rem);
  font-family: 'Xanh Mono', monospace;
  font-weight: 400;
  font-size: var(--phone-font-size);
  letter-spacing: 0.08em;
  z-index: 20;
}

.our-story {
  position: absolute;
  top: calc(
    var(--logo-offset) + var(--logo-padding-block) + 3px + 0.5 * var(--logo-font-size) -
      0.5 * var(--phone-font-size)
  );
  right: clamp(3.25rem, 8vw, 6rem);
  font-family: 'Xanh Mono', monospace;
  font-weight: 400;
  font-size: var(--phone-font-size);
  letter-spacing: 0.05em;
  z-index: 20;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: font-style 0.2s ease, opacity 0.2s ease;
}

.our-story:hover {
  font-style: italic;
  opacity: 0.9;
}

.our-story:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.home-link {
  position: absolute;
  top: calc(
    var(--logo-offset) + var(--logo-padding-block) + 3px + 0.5 * var(--logo-font-size) -
      0.5 * var(--phone-font-size)
  );
  left: clamp(3.25rem, 8vw, 6rem);
  font-family: 'Xanh Mono', monospace;
  font-weight: 400;
  font-size: var(--phone-font-size);
  letter-spacing: 0.05em;
  z-index: 20;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: font-style 0.2s ease, opacity 0.2s ease;
}

.home-link:hover {
  font-style: italic;
  opacity: 0.9;
}

.home-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.site-logo {
  text-align: center;
  display: inline-block;
  padding: var(--logo-padding-block) var(--logo-padding-inline);
  border: 3px solid #ffffff;
  margin-top: var(--logo-offset);
  margin-inline: auto;
}

.site-content {
  flex: 1;
  width: min(90%, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.blurb {
  margin: 0;
  font-family: 'Sorts Mill Goudy', serif;
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.logo-text {
  font-size: var(--logo-font-size);
  letter-spacing: 1.4px;
}

.hero {
  width: 100%;
  min-height: 100vh;
  padding-block: clamp(2rem, 7vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .scroll-hint {
  margin-top: auto;
}

.scroll-hint {
  width: min(6vw, 40px);
  margin-bottom: clamp(2.5rem, 7vh, 4rem);
  color: #ffffff;
  opacity: 0.8;
  animation: scroll-pulse 3.2s ease-in-out infinite;
}

.scroll-hint__icon {
  width: 100%;
  display: block;
}

.blurb__line {
  display: block;
  width: 100%;
  min-height: 1.2em;
  opacity: 0;
  transform: translate3d(-14px, 18px, 0);
  animation: blurb-fade-in 1.35s cubic-bezier(0.3, 0, 0.3, 1) forwards;
}

.blurb__line + .blurb__line {
  margin-top: 0.35em;
}

.blurb__line--primary {
  animation-delay: 0s;
}

.blurb__line--secondary {
  animation-delay: 1s;
}

@keyframes blurb-fade-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.profile-banner {
  align-self: stretch;
  width: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 3rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  min-height: clamp(320px, 60vh, 440px);
  background-color: #ffffff;
  color: #1f1f1f;
}

.profile-banner__media {
  flex: 0 0 clamp(220px, 28vw, 320px);
  max-width: clamp(220px, 28vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-banner__photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  background-color: #f7f7f7;
  border: clamp(0.6rem, 1.4vw, 1rem) solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.profile-banner__content {
  flex: 1 1 auto;
  max-width: min(640px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.4rem);
  font-family: 'Sorts Mill Goudy', serif;
}

.profile-banner__heading {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  font-family: 'Goudy Bookletter 1911', serif;
  font-style: normal;
  color: rgba(31, 31, 31, 0.75);
}

.profile-banner__bio {
  margin: 0;
  font-family: 'Sorts Mill Goudy', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(0.95rem, 1.9vw, 1.15rem);
  line-height: 1.6;
  color: rgba(31, 31, 31, 0.86);
}

@media (max-width: 768px) {
  .profile-banner {
    flex-direction: column;
    text-align: center;
    padding: clamp(2.25rem, 8vw, 3.75rem) clamp(1.5rem, 6vw, 3rem);
    min-height: unset;
  }

  .profile-banner__content {
    max-width: min(620px, 90vw);
    align-items: center;
    flex: 1 1 auto;
  }

  .profile-banner__media,
  .profile-banner__content {
    max-width: 100%;
  }

  .profile-banner__media {
    flex: 0 0 auto;
    min-height: unset;
    max-width: min(320px, 80vw);
    overflow: visible;
    margin-inline: auto;
  }
}

.inventory {
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 4vw, 2rem);
  padding: clamp(2rem, 6vw, 3rem);
  background-color: #ffffff;
  border-top: 2px solid rgba(31, 31, 31, 0.15);
  color: #1f1f1f;
  font-family: 'Sorts Mill Goudy', serif;
}

.inventory__heading {
  margin: 0;
  font-family: 'Goudy Bookletter 1911', serif;
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  font-weight: 400;
  font-style: normal;
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  color: rgba(31, 31, 31, 0.75);
}

.inventory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}

.inventory__wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: clamp(0.75rem, 2vw, 1.25rem);
  margin: calc(-1 * clamp(0.75rem, 2vw, 1.25rem));
  position: relative;
}

.inventory__wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(31, 31, 31, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.inventory__wrapper:hover::before {
  opacity: 1;
  transition: opacity 0s;
}

.inventory__wrapper:focus-visible {
  outline: 2px solid rgba(31, 31, 31, 0.6);
  outline-offset: 4px;
  border-radius: 4px;
}

.inventory__item {
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(31, 31, 31, 0.2);
  background-color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  position: relative;
}

.inventory__image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.inventory__image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1s ease;
}

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

.inventory__image--default {
  opacity: 1;
}

.inventory__image--hover {
  opacity: 0;
}

.inventory__item:hover .inventory__image--default {
  opacity: 0;
}

.inventory__item:hover .inventory__image--hover {
  opacity: 1;
}

.inventory__details {
  display: flex;
  flex-direction: column;
  gap: clamp(0.15rem, 0.4vw, 0.3rem);
  padding-inline: clamp(1rem, 2vw, 1.5rem);
}

.inventory__text {
  font-family: 'Xanh Mono', monospace;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  letter-spacing: 0.08em;
  color: #1f1f1f;
  text-align: left;
}

.inventory__text--brand {
  font-size: clamp(0.85rem, 1.6vw, 1rem)
}

.inventory__text--model {
  color: rgba(31, 31, 31, 0.60);
  letter-spacing: normal;
  font-family: 'Sorts Mill Goudy', serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.inventory__text--price {
  font-weight: 400;
}

@media (max-width: 768px) {
  .inventory__grid {
    grid-template-columns: 1fr;
  }
}

@keyframes scroll-pulse {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(12px);
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blurb__line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

