/* ==========================================================================
   TexSocks — texsocks.com
   One stylesheet for the whole site. Edit the tokens below to reskin.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------- */
:root {
  /* Colors pulled from the actual socks: mustard body, near-black foot,
     cream cuff, camel + brown for the second colorway. */
  --bone:        #FAF6EC;
  --bone-2:      #F3EBDA;
  --bone-3:      #EBE1CB;
  --ink:         #16181D;
  --ink-2:       #2C2F38;
  --ink-soft:    #5A5952;
  --dust:        #E0D5BE;
  --mustard:     #D9A526;
  --mustard-dk:  #A87C13;
  --rust:        #B8442A;
  --camel:       #C4884A;
  --brown:       #6B4A32;
  --white:       #FFFFFF;

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap:      1180px;
  --wrap-tight: 780px;
  --radius:    4px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 2px rgba(22, 24, 29, .06), 0 2px 8px rgba(22, 24, 29, .04);
  --shadow-md: 0 2px 6px rgba(22, 24, 29, .07), 0 12px 32px rgba(22, 24, 29, .08);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -.01em; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mustard-dk);
  margin-bottom: .9rem;
}

.lede  { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-soft); line-height: 1.6; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.tiny  { font-size: .78rem; }

/* --- Layout -------------------------------------------------------------- */
.wrap  { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.tight { max-width: var(--wrap-tight); }

.section     { padding-block: clamp(56px, 8vw, 104px); }
.section--sm { padding-block: clamp(40px, 5vw, 64px); }

/* Dashed rules echo the stitching on the socks. */
.stitch {
  border: 0;
  border-top: 2px dashed var(--dust);
  margin: 0;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .95em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), background .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--mustard { --btn-bg: var(--mustard); --btn-fg: var(--ink); }
.btn--rust    { --btn-bg: var(--rust);    --btn-fg: var(--white); }
.btn--ghost   { --btn-bg: transparent;    --btn-fg: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }
.btn--lg      { padding: 1.1em 2.2em; font-size: 1rem; }
.btn--block   { display: flex; width: 100%; }

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--mustard);
  padding-bottom: 1px;
  transition: gap .16s var(--ease);
}
.link-arrow:hover { gap: .75em; }

/* --- Focus (keyboard only) ---------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--mustard-dk);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--ink); color: var(--bone);
  padding: .7em 1.2em; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

/* --- Announcement bar ---------------------------------------------------- */
.announce {
  background: var(--ink);
  color: var(--bone-2);
  text-align: center;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: .65em 22px;
}
.announce strong { color: var(--mustard); font-weight: 700; }

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--dust);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

/* No `gap` here on purpose: in a flex container each bare text run becomes its
   own anonymous item, so a gap would split "Tex" from "Socks". The star carries
   its own margin instead. */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__star { width: 20px; height: 20px; margin-right: .5rem; color: var(--mustard); flex: none; }
.wordmark em { font-style: normal; color: var(--mustard-dk); }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  padding: .35em 0;
  border-bottom: 2px solid transparent;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: var(--mustard); }

/* The "Buy a pair" button sits in the nav, so it needs to be smaller. */
.nav .nav__cta { padding: .62em 1.15em; font-size: .78rem; }
@media (max-width: 800px) { .nav .nav__cta { margin-top: 12px; } }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--dust);
  border-radius: var(--radius);
  padding: .5em .7em;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--dust);
    padding: 8px 22px 18px;
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85em 0; border-bottom: 1px solid var(--bone-3); }
  .nav a:last-child { border-bottom: 0; }
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(40px, 6vw, 84px);
}
.hero__copy h1 { margin-bottom: 1.1rem; }
.hero__copy .lede { margin-bottom: 1.8rem; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* White plate + `contain`: the product shots are cut out on white, and cropping
   a pair of socks to fill a box lops the outer edges off. */
.hero__media {
  position: relative;
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.hero__media img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 1 / 1; order: -1; }
}

/* --- Trust strip --------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--dust);
  border-block: 1px solid var(--dust);
}
.trust__item {
  background: var(--bone);
  padding: 22px 18px;
  text-align: center;
}
.trust__item svg { width: 26px; height: 26px; margin: 0 auto .6rem; color: var(--mustard-dk); }
.trust__item strong { display: block; font-size: .92rem; font-weight: 600; }
.trust__item span   { display: block; font-size: .8rem; color: var(--ink-soft); }

@media (max-width: 720px) { .trust { grid-template-columns: repeat(2, 1fr); } }

/* --- Section heads ------------------------------------------------------- */
.section-head { max-width: 60ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .7rem; }

/* --- Product grid -------------------------------------------------------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mustard); }

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bone-2);
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8%;
  transition: transform .35s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }

.card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.card__note { font-size: .87rem; color: var(--ink-soft); flex: 1; }
.card__price { display: flex; align-items: baseline; gap: .5rem; margin-top: .5rem; font-weight: 600; }
.card__price s { color: var(--ink-soft); font-weight: 400; font-size: .9rem; }

.badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--rust);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .38em .7em;
  border-radius: 2px;
}
.badge--soon { background: var(--ink-2); }
.badge--save { background: var(--mustard); color: var(--ink); }

.card--soon { opacity: .82; }
.card--soon .card__media { display: grid; place-items: center; }

/* --- Bundle band --------------------------------------------------------- */
.band {
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}
.band h2 { color: var(--bone); margin-bottom: .5rem; }
.band p  { color: #C9C3B4; max-width: 52ch; }
.band .eyebrow { color: var(--mustard); }

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

/* --- Feature rows -------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature--flip .feature__media { order: 2; }
.feature__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bone-2);
  border: 1px solid var(--dust);
  aspect-ratio: 4 / 3;
}
/* For upright photos, so `cover` trims a sliver instead of half the shot. */
.feature__media--portrait { aspect-ratio: 4 / 5; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
}

/* --- Bullets ------------------------------------------------------------- */
.ticks { list-style: none; padding: 0; display: grid; gap: .7rem; margin-top: 1.2rem; }
.ticks li { position: relative; padding-left: 1.9rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 12px; height: 7px;
  border-left: 2.5px solid var(--mustard-dk);
  border-bottom: 2.5px solid var(--mustard-dk);
  transform: rotate(-45deg);
}

/* --- Product detail page ------------------------------------------------- */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(28px, 4vw, 52px);
}
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }

.gallery__main {
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin-bottom: 12px;
}
/* The three-colorway line-up is landscape; a square plate would letterbox it
   into a thin strip with white above and below. */
.gallery__main--wide { aspect-ratio: 16 / 10; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 5%; }

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 10px;
}
.gallery__thumb {
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .16s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.gallery__thumb:hover { border-color: var(--ink-soft); }
.gallery__thumb[aria-current="true"] { border-color: var(--mustard); border-width: 2px; }

.pdp__title { margin-bottom: .6rem; }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin-block: 1rem 1.4rem; }
.price     { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; }
.price s   { font-size: 1.05rem; font-weight: 400; color: var(--ink-soft); }
.price-row .badge { position: static; }

.swatches { display: flex; gap: 10px; margin-bottom: 1.4rem; flex-wrap: wrap; }
.swatch {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--dust);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-current="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bone), 0 0 0 4px var(--ink); }

.buy-note { font-size: .85rem; color: var(--ink-soft); margin-top: .9rem; text-align: center; }

/* --- Accordion ----------------------------------------------------------- */
.acc { border-top: 1px solid var(--dust); margin-top: 2rem; }
.acc details { border-bottom: 1px solid var(--dust); }
.acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05em 0;
  font-weight: 600;
  font-size: .97rem;
  cursor: pointer;
  list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s var(--ease);
}
.acc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.acc .acc__body { padding-bottom: 1.3em; color: var(--ink-soft); font-size: .95rem; }
.acc .acc__body > * + * { margin-top: .7rem; }

/* --- Tables -------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 420px;
}
th, td { text-align: left; padding: .8em 1em; border-bottom: 1px solid var(--dust); }
th { font-weight: 600; background: var(--bone-2); white-space: nowrap; }

/* --- Prose (policy pages) ------------------------------------------------ */
.prose > * + *   { margin-top: 1.15rem; }
.prose h2        { margin-top: 2.6rem; }
.prose h3        { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: .5rem; }
.prose a         { color: var(--ink); text-decoration: underline; text-decoration-color: var(--mustard); text-underline-offset: 3px; }
.prose strong    { font-weight: 600; }

/* --- Panels -------------------------------------------------------------- */
.panel {
  background: var(--bone-2);
  border: 1px solid var(--dust);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
}
.panel--white { background: var(--white); }

/* --- Forms --------------------------------------------------------------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-size: .87rem; font-weight: 600; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .8em 1em;
  background: var(--white);
  border: 1px solid var(--dust);
  border-radius: var(--radius);
  font-size: 1rem;
}
.field input:focus,
.field textarea:focus { border-color: var(--mustard-dk); }
.field textarea { min-height: 150px; resize: vertical; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: #B8B3A6;
  padding-block: clamp(44px, 6vw, 72px) 28px;
  margin-top: clamp(48px, 7vw, 90px);
  font-size: .9rem;
}
.site-footer a { color: #D9D4C7; text-decoration: none; }
.site-footer a:hover { color: var(--mustard); }
.site-footer .wordmark { color: var(--bone); font-size: 1.25rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid #2E3138;
}
.footer-grid h4 { color: var(--bone); font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .6rem; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: .8rem;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* --- Utilities ----------------------------------------------------------- */
.center     { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.2rem; }
.stack > * + * { margin-top: 1.1rem; }
.flex-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Placeholder art sits on a tinted plate so missing photos never look broken. */
.is-placeholder { background: repeating-linear-gradient(45deg, var(--bone-2) 0 12px, var(--bone-3) 12px 24px); }
