@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #151618;
  --paper: #fff;
  --forest: #17181b;
  --line: #dedfe1;
  --muted: #5b5d63;
  --white: #fff;
  --lime: #f2f3f4;
  --accent: #c8102e;
  --body-font: "Instrument Sans", Arial, sans-serif;
  --heading-font: var(--body-font);
  --statement-font: "Instrument Serif", Georgia, serif;
  --gutter: clamp(20px, 5.5vw, 88px);
}

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

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body-font);
}

body:has(.bag-dialog[open]) { overflow: hidden; }

[hidden] { display: none !important; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
button:enabled { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: .6rem;
  left: .6rem;
  z-index: 30;
  transform: translateY(-200%);
  padding: .7rem 1.25rem;
  color: var(--white);
  background: var(--forest);
}

.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { transform: none; }

.site-width,
.site-header-inner,
.site-footer-inner {
  width: min(100% - 2 * var(--gutter), 1440px);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.site-logo,
.site-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .4rem;
  white-space: nowrap;
  font: 700 2rem/.9 var(--heading-font);
  letter-spacing: .115em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-logo img,
.site-footer-logo img { width: clamp(128px, 12vw, 160px); height: auto; }

.site-nav,
.site-footer-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
}

.site-nav { gap: clamp(13px, 1.85vw, 35px); }
.site-footer-nav { flex-wrap: wrap; justify-content: flex-end; }
.site-nav-link,
.site-footer-nav a { white-space: nowrap; }

.site-nav-link,
.site-footer-nav a {
  padding-block: .5rem;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: .35em;
}

.site-nav-link:hover,
.site-nav-link[aria-current],
.site-footer-nav a:hover { text-decoration: underline; }

.site-nav-toggle,
.site-bag-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 44px;
  border: 0;
  padding: .25rem 0 .25rem .55rem;
  background: none;
  font-size: .875rem;
  font-weight: 650;
}

.site-nav-toggle { display: none; }
.site-bag-button { justify-self: end; }

.site-bag-count {
  display: grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: .3rem;
  background: var(--lime);
  border-radius: 100px;
  font-size: .75rem;
}

.button {
  min-height: 49px;
  min-width: 9.3rem;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 .9rem/1.2 var(--body-font);
  text-decoration: none;
  transition: background-color .18s, color .18s, border-color .18s;
}

.text-link {
  font-weight: 650;
  text-underline-offset: .35em;
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.text-link:hover { text-decoration-thickness: 2px; }

.brand-statement {
  padding-block: clamp(4rem, 8vw, 7rem);
  background: #f7f6f2;
  text-align: center;
}

.brand-statement__inner { max-width: 53rem; }

.brand-statement__logo {
  width: clamp(9rem, 14vw, 12.5rem);
  height: auto;
  margin: 0 auto clamp(1.4rem, 2.65vw, 2.4rem);
}

.brand-statement h2 {
  font: 600 clamp(2.2rem, 5.65vw, 5.1rem)/1.04 var(--heading-font);
  letter-spacing: -.048em;
  word-spacing: .035em;
  text-wrap: balance;
}

.brand-statement em {
  display: inline-block;
  margin-inline-start: .04em;
  font-family: var(--statement-font);
  font-size: 1.13em;
  font-weight: 400;
  letter-spacing: -.015em;
  color: #324337;
}

.brand-statement p {
  max-width: 52ch;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1d211e;
  color: var(--white);
}

.home-hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(450px, 44vw, 690px);
  padding-block: clamp(2.4rem, 5vw, 5.25rem);
}

.home-hero-copy { max-width: 34rem; }

.home-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #101714d4 0%, #1017149e 28%, #10171432 59%, transparent 82%);
}

.home-hero h1 {
  margin: .38rem 0 1.25rem;
  font: 620 clamp(3rem, 5.6vw, 6.1rem)/.97 var(--heading-font);
  letter-spacing: -.046em;
  word-spacing: .028em;
}

.home-hero-lead { color: #f4f5f2; font-size: clamp(1rem, 1.4vw, 1.18rem); }

.home-range { padding-block: clamp(2.65rem, 5.3vw, 5.7rem); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: clamp(1rem, 2.7vw, 2rem);
}

.section-heading h2 {
  font: 620 clamp(2.2rem, 4vw, 3.85rem)/1.04 var(--heading-font);
  letter-spacing: -.048em;
}

.section-heading .text-link {
  flex-shrink: 0;
  padding-block: .2rem;
  font-size: .9rem;
}

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

.home-set-link { display: block; text-decoration: none; }

.home-set-media {
  position: relative;
  background: #f3f5f6;
  aspect-ratio: 1.14;
  overflow: hidden;
}

.home-set-media img {
  width: auto;
  height: 100%;
  object-fit: contain;
  margin-inline: auto;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  transition: transform .32s ease;
}

.home-set-link:hover img { transform: scale(1.03); }

.home-set-media figcaption {
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  padding: .2rem .48rem;
  background: #ffffffed;
  color: var(--ink);
  font-size: .76rem;
}

.home-set-text {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding-top: 1rem;
}

.home-set-text h3 {
  font: 650 clamp(1.3rem, 2vw, 2.2rem)/1.08 var(--heading-font);
  letter-spacing: -.035em;
}

.home-set-text p {
  flex: none;
  color: var(--ink);
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.site-footer {
  padding-block: clamp(2rem, 4vw, 4.5rem);
  background: var(--lime);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .6rem 1.5rem;
}

.site-footer-logo { font-size: 2.15rem; }
.site-footer-copyright { color: var(--muted); font-size: .875rem; }

.bag-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 29rem);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.bag-dialog::backdrop { background: #101114a3; }

.bag-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.bag-header,
.bag-item {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.bag-header {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.bag-header h2 { font: 650 2.25rem/1 var(--heading-font); letter-spacing: -.04em; }
.bag-list { list-style: none; margin: 0; padding: 0; }
.bag-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.bag-item-image { flex: 0 0 5rem; width: 5rem; height: 5rem; object-fit: contain; background: var(--lime); }
.bag-item-content { flex: 1; }
.bag-item-name { font-weight: 700; }
.bag-item-color { color: var(--muted); font-size: .875rem; }
.bag-item-price { font-weight: 650; }
.bag-quantity { display: flex; align-items: center; gap: .6rem; margin-top: .4rem; }
.bag-close, .bag-quantity button, .bag-remove { background: transparent; border: 1px solid var(--line); }
.bag-close, .bag-quantity button { min-width: 2.25rem; min-height: 2.25rem; }
.bag-remove { border: 0; text-decoration: underline; padding: .35rem; }
.bag-empty { padding-top: 1.35rem; }
.bag-continue { display: inline-block; margin-top: .75rem; border: 0; padding: 0; background: none; text-decoration: underline; text-underline-offset: .3em; }
.bag-footer { margin-top: auto; padding-top: 1.25rem; }
.bag-subtotal { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.bag-checkout { width: 100%; min-height: 48px; background: var(--forest); color: var(--white); font-weight: 700; border: 0; }
.bag-checkout:hover { background: #36383b; }
.bag-feedback:not(:empty) { margin-top: .65rem; color: var(--muted); }

@media (max-width: 900px) {
  .site-header-inner { min-height: 62px; grid-template-columns: 1fr auto auto; gap: .65rem; }
  .site-nav-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
  .site-bag-button { grid-column: 3; grid-row: 1; }
  .site-logo { font-size: 1.75rem; grid-column: 1; grid-row: 1; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border-bottom: 1px solid var(--line);
    padding: .75rem var(--gutter);
    background: var(--paper);
    gap: 0;
  }
  .site-header[data-nav-open] .site-nav { display: grid; }
  .site-nav-link { padding-block: .7rem; }
}

@media (max-width: 760px) {
  .home-hero-inner { align-items: flex-end; min-height: clamp(450px, 68svh, 550px); padding-block: 2.35rem; }
  .home-hero h1 { font-size: clamp(2.8rem, 9.7vw, 4.75rem); }
  .home-hero-image { object-position: 87% center; }
  .home-hero::after {
    background: linear-gradient(0deg, #101714f0 0%, #101714ac 32%, #10171422 70%, transparent 100%);
  }
  .home-set-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
  .home-set-media { aspect-ratio: .92; }
  .home-set-text { align-items: start; flex-direction: column; gap: .25rem; }
  .home-set[data-category="putters"] { grid-column: 1 / -1; }
  .home-set[data-category="putters"] .home-set-media { aspect-ratio: 2; }
  .site-footer-inner { grid-template-columns: 1fr; }
  .site-footer-nav { gap: 1rem; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
