@import url("./tokens.css");

* { box-sizing: border-box; }

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  background: #F5F3EF;
  color: var(--fredtle-black);
  font-family: var(--font-primary);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.announcement {
  padding: 10px 20px;
  background: var(--fredtle-black);
  color: var(--fredtle-bone);
  font-size: 11px;
  letter-spacing: var(--tracking-tagline);
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 3vw, 28px) clamp(20px, 6vw, 96px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(245, 243, 239, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition:
    padding 360ms var(--ease-luxury),
    background 360ms var(--ease-luxury),
    box-shadow 360ms var(--ease-luxury);
}

.site-header.is-scrolled {
  padding-top: clamp(12px, 2vw, 18px);
  padding-bottom: clamp(12px, 2vw, 18px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.035);
}

.wordmark {
  flex: 0 0 auto;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 400;
  letter-spacing: var(--tracking-wordmark);
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 32px);
  font-size: 12px;
  letter-spacing: var(--tracking-nav);
  line-height: 1.4;
  text-transform: uppercase;
}

.nav a,
.text-link {
  position: relative;
  text-decoration: none;
}

.nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.55;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 520ms var(--ease-luxury);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.75fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: 100%;
  max-width: 1600px;
  min-height: min(820px, calc(100svh - 82px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 108px) clamp(20px, 6vw, 96px);
}

.hero-copy,
.hero-card,
.product-card,
.editorial article,
.story-band {
  animation: riseIn 900ms var(--ease-luxury) both;
}

.hero-card {
  animation-delay: 140ms;
}

.product-card:nth-child(2),
.editorial article:nth-child(2) {
  animation-delay: 90ms;
}

.product-card:nth-child(3),
.editorial article:nth-child(3) {
  animation-delay: 180ms;
}

.hero-copy {
  max-width: 540px;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--fredtle-ink-soft);
  font-size: 11px;
  letter-spacing: var(--tracking-tagline);
  line-height: 1.6;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 28px;
  font-size: clamp(44px, 6.5vw, 90px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.06;
}

.hero p {
  max-width: 32ch;
  color: var(--fredtle-ink-soft);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
}

.button-row {
  display: block;
  margin-top: 38px;
}

.btn {
  display: inline-block;
  min-height: 0;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.22);
  border-radius: 0;
  padding: 0 0 5px;
  color: rgba(17, 17, 17, 0.76);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-decoration: none;
  transition:
    border-color 420ms var(--ease-luxury),
    transform 420ms var(--ease-luxury);
}

.btn:hover {
  border-color: var(--fredtle-black);
  transform: translateX(2px);
}

.btn.fill {
  background: var(--fredtle-black);
  color: var(--fredtle-bone);
}

.hero-card {
  position: relative;
  display: grid;
  min-height: clamp(420px, 58vw, 660px);
  place-items: center;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-mark-wrap {
  position: relative;
  z-index: 1;
  width: min(42%, 300px);
  opacity: 0.92;
  filter: drop-shadow(0 28px 38px rgba(17, 17, 17, 0.08));
  transform: translate3d(0, -2%, 0);
  transition: transform 900ms var(--ease-luxury);
  will-change: transform;
}

.hero-card:hover .hero-mark-wrap {
  transform: translate3d(0, -2%, 0);
}

.section,
.editorial {
  padding: clamp(72px, 10vw, 118px) clamp(20px, 6vw, 96px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(30px, 5vw, 48px);
}

.section-heading h2,
.editorial h2,
.story-band h2 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.section-heading h2 {
  color: #262626;
  margin-bottom: 0;
}

.essentials-section {
  border-top: 1px solid rgba(17, 17, 17, 0.08);
  background: #fff;
  padding-top: clamp(72px, 9.5vw, 116px);
  padding-bottom: clamp(72px, 9.5vw, 116px);
}

.essentials-section .section-heading {
  margin-bottom: clamp(34px, 5vw, 54px);
}

.text-link {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: var(--tracking-nav);
  line-height: 1.5;
  text-transform: uppercase;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.featured-product {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(270px, 0.48fr);
  gap: clamp(30px, 4.6vw, 66px);
  align-items: start;
}

.product-gallery {
  position: relative;
  display: block;
  margin: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.product-slide {
  display: none;
  height: clamp(306px, 36vw, 459px);
  place-items: center;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.082);
  border-radius: 4px;
  background: #fff;
  animation: fadeIn 420ms var(--ease-luxury) both;
}

.product-slide.is-active {
  display: grid;
}

.product-slide img {
  width: min(96%, 566px);
  height: clamp(286px, 34vw, 432px);
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(17, 17, 17, 0.07));
}

.product-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.gallery-arrow {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 50%;
  background: #fff;
  color: rgba(17, 17, 17, 0.68);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition:
    background 320ms var(--ease-luxury),
    color 320ms var(--ease-luxury),
    transform 320ms var(--ease-luxury);
}

.gallery-arrow:hover {
  background: var(--fredtle-black);
  color: #fff;
  transform: translateY(-1px);
}

.gallery-arrow:disabled {
  border-color: rgba(17, 17, 17, 0.08);
  color: rgba(17, 17, 17, 0.22);
  cursor: default;
  transform: none;
}

.gallery-arrow:disabled:hover {
  background: #fff;
  color: rgba(17, 17, 17, 0.22);
}

.gallery-count {
  min-width: 38px;
  color: rgba(17, 17, 17, 0.48);
  font-size: 9px;
  letter-spacing: var(--tracking-nav);
  line-height: 1;
  text-align: center;
}

.featured-product-info {
  border-top: 1px solid var(--fredtle-border);
  align-self: start;
  margin-top: clamp(8px, 2vw, 22px);
  padding-top: 42px;
}

.featured-product-info .product-meta {
  align-items: flex-start;
  margin-bottom: 22px;
}

.product-title-group {
  display: grid;
  gap: 14px;
}

.product-price {
  color: #AAA39D;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.product-availability {
  color: #9A938C;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.featured-product-info p {
  max-width: 360px;
  margin-bottom: 24px;
  color: var(--fredtle-ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.product-quick-list,
.accordion-content ul {
  padding: 0;
  list-style: none;
}

.product-quick-list {
  display: grid;
  gap: 9px;
  margin: 0 0 34px;
  color: var(--fredtle-ink-soft);
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.product-accordions {
  border-top: 1px solid rgba(17, 17, 17, 0.1);
}

.product-accordions details {
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

.product-accordions summary {
  position: relative;
  display: block;
  padding: 16px 24px 16px 0;
  color: rgba(17, 17, 17, 0.68);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  list-style: none;
  text-transform: uppercase;
}

.product-accordions summary::-webkit-details-marker {
  display: none;
}

.product-accordions summary::after {
  position: absolute;
  top: 50%;
  right: 1px;
  color: rgba(17, 17, 17, 0.42);
  content: "+";
  font-size: 13px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 320ms var(--ease-luxury);
}

.product-accordions details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 720ms var(--ease-luxury),
    opacity 520ms var(--ease-luxury);
}

.product-accordions details[open] .accordion-content {
  opacity: 1;
}

.accordion-content ul {
  display: grid;
  gap: 8px;
  margin: -2px 0 18px;
  color: rgba(17, 17, 17, 0.58);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.product-card {
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 8px;
  padding: clamp(14px, 2vw, 24px);
  background: rgba(255, 254, 250, 0.78);
  transition:
    box-shadow 520ms var(--ease-luxury),
    transform 520ms var(--ease-luxury);
}

.product-card:hover {
  box-shadow: 0 18px 60px rgba(17, 17, 17, 0.09);
  transform: translateY(-5px);
}

.product-image {
  display: grid;
  min-height: clamp(280px, 33vw, 430px);
  place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 8px;
  transition: background 520ms var(--ease-luxury);
}

.product-image img {
  width: clamp(58px, 7vw, 96px);
  opacity: 0.92;
  transition: transform 620ms var(--ease-luxury);
}

.product-card:hover .product-image img {
  transform: scale(1.08) rotate(-2deg);
}

.tone-cream {
  background: #fffdf8;
}

.tone-olive {
  background: color-mix(in srgb, var(--fredtle-olive) 18%, #fffdf8);
}

.tone-black {
  background: #211f1b;
}

.tone-black img {
  filter: invert(1);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.product-card p,
.editorial p,
.story-band p {
  color: var(--fredtle-ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
  border-top: 1px solid var(--fredtle-border);
}

.editorial-copy {
  position: sticky;
  top: 118px;
}

.editorial h2 {
  max-width: 9ch;
}

.editorial-grid {
  display: grid;
  gap: 14px;
}

.editorial article {
  border-top: 1px solid var(--fredtle-border);
  padding: 28px 0 18px;
}

.editorial span {
  display: block;
  margin-bottom: 18px;
  color: var(--fredtle-clay);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.editorial h3 {
  margin-bottom: 10px;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
}

.story-band {
  position: relative;
  overflow: hidden;
  padding: clamp(112px, 15vw, 176px) clamp(20px, 6vw, 96px);
  background: var(--fredtle-black);
  color: var(--fredtle-bone);
  text-align: center;
}

.story-band img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64vw, 620px);
  opacity: 0.055;
  transform: translate(-50%, -50%);
}

.story-band h2,
.story-band p {
  position: relative;
}

.story-band h2 {
  max-width: 840px;
  margin-right: auto;
  margin-bottom: 34px;
  margin-left: auto;
}

.story-band p {
  max-width: 575px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: rgba(250, 247, 241, 0.7);
}

.story-hero {
  --story-heading-y: 0px;
  --story-turtle-y: 0px;
  position: relative;
  display: grid;
  min-height: clamp(330px, 48vw, 535px);
  place-items: center;
  overflow: hidden;
  padding: clamp(58px, 7.4vw, 98px) clamp(20px, 6vw, 96px);
  text-align: center;
}

.story-hero::after {
  position: absolute;
  right: clamp(20px, 6vw, 96px);
  bottom: 0;
  left: clamp(20px, 6vw, 96px);
  height: 1px;
  background: var(--fredtle-border);
  content: "";
}

.story-hero img {
  position: absolute;
  top: 58%;
  left: 50%;
  width: min(56vw, 500px);
  opacity: 0.032;
  transform: translate3d(-50%, calc(-50% + var(--story-turtle-y)), 0);
  will-change: transform;
}

.story-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  justify-items: center;
  transform: translate3d(0, var(--story-heading-y), 0);
  animation: fadeIn 900ms var(--ease-luxury) both;
  will-change: transform;
}

.story-hero h1 {
  position: relative;
  max-width: 8.35ch;
  margin-bottom: 0;
  font-size: clamp(42px, 6.2vw, 86px);
  line-height: 1;
}

.story-kicker {
  position: relative;
  align-self: end;
  color: var(--fredtle-ink-soft);
  font-size: 11px;
  letter-spacing: var(--tracking-tagline);
  line-height: 1.6;
  text-transform: uppercase;
}

.story-page {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.82fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 96px);
}

.story-page-aside {
  position: sticky;
  top: 118px;
  display: grid;
  gap: 28px;
  color: rgba(179, 116, 79, 0.72);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.6;
  text-transform: uppercase;
}

.story-content {
  animation: riseIn 900ms var(--ease-luxury) both;
}

.story-content h2 {
  margin-bottom: clamp(40px, 5vw, 64px);
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 250;
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.story-content p {
  max-width: 640px;
  margin-bottom: 24px;
  color: rgba(17, 17, 17, 0.72);
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.98;
}

.story-artifact {
  width: clamp(220px, 27vw, 320px);
  margin: 58px 0 38px -112px;
}

.story-artifact img {
  width: 100%;
  opacity: 0.48;
  mix-blend-mode: multiply;
}

.story-content p:first-of-type,
.story-signoff {
  color: var(--fredtle-black);
}

.story-signoff {
  margin-top: clamp(36px, 5vw, 58px);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.story-closing {
  display: grid;
  min-height: clamp(260px, 34vw, 400px);
  place-items: center;
  padding: clamp(82px, 10vw, 132px) clamp(20px, 6vw, 96px);
  background: #161616;
  color: var(--fredtle-bone);
  text-align: center;
}

.story-closing h2 {
  max-width: 710px;
  margin-bottom: 34px;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 250;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.story-closing p {
  max-width: 485px;
  margin-bottom: 0;
  color: rgba(250, 247, 241, 0.56);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 2;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--fredtle-border);
  padding: clamp(34px, 5vw, 58px) clamp(20px, 6vw, 96px);
  font-size: 11px;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-mark {
  font-size: 14px;
  letter-spacing: var(--tracking-wordmark);
}

.footer-line {
  justify-self: center;
  color: var(--fredtle-black);
  font-weight: 300;
  letter-spacing: 0.3em;
  opacity: 0.86;
}

.copyright {
  justify-self: end;
  color: var(--fredtle-ink-soft);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero,
  .editorial,
  .story-page,
  .featured-product {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  h1 {
    max-width: 12ch;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }

  .editorial-copy {
    position: static;
  }

  .story-page-aside {
    position: static;
    display: grid;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .announcement {
    font-size: 10px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-header.is-scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav {
    justify-content: flex-end;
    width: auto;
    margin-left: auto;
    gap: 18px;
  }

  .footer {
    grid-template-columns: minmax(0, 1fr) auto;
    justify-content: space-between;
    gap: 12px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .footer-mark {
    display: none;
  }

  .footer-line {
    justify-self: start;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .copyright {
    justify-self: end;
    white-space: nowrap;
  }

  .hero-card {
    min-height: 360px;
  }

  .hero-mark-wrap {
    width: min(44%, 190px);
  }

  .story-hero {
    min-height: 340px;
    padding-top: 88px;
  }

  .story-hero img {
    top: 58%;
    width: min(70vw, 320px);
    transform: translate3d(-50%, calc(-50% + clamp(-34px, var(--story-turtle-y), 34px)), 0);
  }

  .button-row {
    width: 100%;
  }

  .essentials-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .featured-product {
    gap: 14px;
  }

  .product-gallery-controls {
    margin-top: 10px;
  }

  .featured-product-info {
    padding-top: 28px;
  }

  .story-band p {
    color: rgba(250, 247, 241, 0.6);
    font-weight: 300;
  }

  .story-artifact {
    width: min(72vw, 280px);
    margin: 48px 0 34px;
  }

  .story-content p {
    font-size: 15px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-slide {
    height: clamp(300px, 86vw, 420px);
  }

  .product-slide img {
    width: min(96%, 430px);
    height: 90%;
  }

  .product-image {
    min-height: 300px;
  }
}

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