@source "../src";

/*
 * T&H .Co design system — dark editorial fashion house.
 * All colors are oklch tokens; components must never hardcode colors.
 */


:root {
  --radius: 0.25rem;
  --background: oklch(0.12 0 0);
  --foreground: oklch(0.95 0.012 85);
  --panel: oklch(0.17 0 0);
  --panel-2: oklch(0.2 0 0);
  --card: oklch(0.16 0 0);
  --card-foreground: oklch(0.94 0.01 85);
  --primary: oklch(0.78 0.09 82);
  --primary-foreground: oklch(0.13 0 0);
  --secondary: oklch(0.22 0 0);
  --secondary-foreground: oklch(0.94 0.01 85);
  --muted: oklch(0.22 0 0);
  --muted-foreground: oklch(0.62 0.006 80);
  --accent: oklch(0.78 0.09 82);
  --accent-foreground: oklch(0.13 0 0);
  --destructive: oklch(0.6 0.21 25);
  --destructive-foreground: oklch(0.97 0 0);
  --border: oklch(0.27 0 0);
  --input: oklch(0.27 0 0);
  --ring: oklch(0.78 0.09 82);
}

@layer base {
  * {
    border-color: var(--color-border);
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--color-background);
    color: var(--color-foreground);
    font-family: var(--font-sans);
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(circle at 85% 10%, color-mix(in oklch, var(--accent) 12%, transparent), transparent 30%),
      radial-gradient(circle at 15% 80%, color-mix(in oklch, var(--accent) 7%, transparent), transparent 30%);
  }
}

@layer components {
  .th-shell {
    position: relative;
    z-index: 1;
  }

  .th-section {
    max-width: 1440px;
    margin: auto;
    padding: 80px 28px;
  }

  .th-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 74px;
    background: color-mix(in oklch, var(--background) 93%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
  }

  .th-nav {
    height: 100%;
    max-width: 1440px;
    margin: auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .th-logo {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .th-navlinks {
    display: flex;
    gap: 24px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
  }

  .th-navlinks a {
    color: var(--muted-foreground);
    transition: color 0.2s;
  }

  .th-navlinks a:hover {
    color: var(--accent);
  }

  .th-search {
    margin-left: auto;
    width: min(360px, 28vw);
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    border-radius: var(--radius);
    padding: 11px 15px;
    font-size: 12px;
  }

  .th-actions {
    display: flex;
    gap: 18px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted-foreground);
  }

  .th-actions b {
    font-size: 18px;
    display: block;
    text-align: center;
    font-weight: 400;
  }

  .th-hero {
    max-width: 1440px;
    margin: auto;
    padding: 35px 28px 75px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 35px;
    min-height: 720px;
    align-items: center;
  }

  .th-hero-copy {
    padding: 30px 4vw;
  }

  .th-eyebrow {
    color: var(--accent);
    font-size: 9px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 24px;
  }

  .th-h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(58px, 8vw, 120px);
    line-height: 0.84;
    letter-spacing: -0.065em;
    margin: 0;
  }

  .th-lead {
    color: var(--muted-foreground);
    max-width: 520px;
    line-height: 1.75;
    font-size: 14px;
    margin: 28px 0;
  }

  .th-btn {
    display: inline-block;
    border: 1px solid color-mix(in oklch, var(--accent) 55%, var(--background));
    background: linear-gradient(135deg, var(--panel-2), var(--background));
    padding: 14px 24px;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    font-size: 9px;
    box-shadow: 0 12px 30px oklch(0 0 0 / 0.5);
    transition: 0.2s;
  }

  .th-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .th-hero-media {
    height: 650px;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 12px;
    position: relative;
    overflow: hidden;
  }

  .th-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--panel);
    display: block;
    filter: grayscale(100%) contrast(1.05);
  }

  .th-badge {
    position: absolute;
    bottom: 28px;
    left: 28px;
    background: color-mix(in oklch, var(--background) 92%, transparent);
    border: 1px solid var(--border);
    padding: 14px 18px;
    font-family: var(--font-display);
  }

  .th-badge small {
    display: block;
    font-family: var(--font-sans);
    color: var(--accent);
    font-size: 8px;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
  }

  .th-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
    margin-bottom: 30px;
  }

  .th-heading h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    margin: 0;
  }

  .th-heading p {
    max-width: 480px;
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 1.6;
    margin: 0;
  }

  .th-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .th-cat {
    height: 230px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, var(--panel), var(--background));
    padding: 22px;
    display: flex;
    align-items: end;
    position: relative;
    overflow: hidden;
  }

  .th-cat-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: grayscale(100%) contrast(1.05);
    transition: transform 0.5s ease, filter 0.5s ease;
  }

  .th-cat::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      180deg,
      color-mix(in oklch, var(--background) 35%, transparent) 0%,
      color-mix(in oklch, var(--background) 88%, transparent) 100%
    );
  }

  .th-cat:hover .th-cat-img {
    transform: scale(1.05);
    filter: grayscale(60%) contrast(1.08);
  }

  .th-cat-copy {
    position: relative;
    z-index: 2;
  }

  .th-cat::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    right: -50px;
    top: -50px;
    z-index: 1;
    background: color-mix(in oklch, var(--accent) 8%, transparent);
  }

  .th-cat h3 {
    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 400;
    margin: 0;
    position: relative;
    z-index: 1;
  }

  .th-cat span {
    display: block;
    color: var(--accent);
    font-size: 8px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 9px;
  }

  .th-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .th-product {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 10px;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
  }

  .th-product:hover {
    transform: translateY(-5px);
    border-color: color-mix(in oklch, var(--accent) 40%, var(--background));
  }

  .th-product .th-pic {
    height: 380px;
    background: var(--panel);
    overflow: hidden;
  }

  .th-product .th-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
  }

  .th-product:hover .th-pic img {
    transform: scale(1.04);
  }

  .th-product h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    margin: 15px 5px 5px;
  }

  .th-desc {
    font-size: 11px;
    color: var(--muted-foreground);
    margin: 0 5px;
    line-height: 1.6;
  }

  .th-tag {
    display: inline-block;
    margin: 10px 5px 0;
    font-size: 8px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--background));
    padding: 4px 8px;
  }

  .th-price {
    color: var(--accent);
    font-size: 14px;
    margin: 12px 5px;
  }

  .th-price s {
    color: var(--muted-foreground);
    font-size: 11px;
    margin-left: 8px;
  }

  .th-buy {
    display: block;
    text-align: center;
    border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--background));
    padding: 11px;
    font-size: 9px;
    letter-spacing: 0.16em;
    color: var(--foreground);
    margin-top: auto;
    transition: 0.2s;
  }

  .th-buy:hover {
    background: color-mix(in oklch, var(--accent) 14%, var(--background));
    border-color: var(--accent);
  }

  .th-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: center;
  }

  .th-story img {
    width: 100%;
    height: 540px;
    object-fit: contain;
    background: var(--panel);
    border: 1px solid var(--border);
  }

  .th-story p {
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1.4;
    margin: 0;
  }

  .th-story small {
    display: block;
    font-family: var(--font-sans);
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 25px;
  }

  .th-contact {
    background: var(--panel);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .th-contactgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .th-detail {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 25px;
  }

  .th-detail b {
    display: block;
    color: var(--accent);
    font-size: 8px;
    letter-spacing: 0.25em;
    margin-bottom: 9px;
  }

  .th-detail a,
  .th-detail span {
    font-size: 14px;
    color: var(--card-foreground);
    line-height: 1.6;
  }

  .th-footer {
    max-width: 1440px;
    margin: auto;
    padding: 30px 28px;
    color: var(--muted-foreground);
    font-size: 10px;
    display: flex;
    justify-content: space-between;
  }
}

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

@media (max-width: 950px) {
  .th-navlinks {
    display: none;
  }
  .th-search {
    width: auto;
    flex: 1;
  }
  .th-hero {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }
  .th-hero-media {
    height: 540px;
  }
  .th-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .th-story,
  .th-contactgrid {
    grid-template-columns: 1fr;
  }
  .th-heading {
    display: block;
  }
  .th-heading p {
    margin-top: 12px;
  }
}

@media (max-width: 560px) {
  .th-actions {
    gap: 9px;
  }
  .th-search {
    display: none;
  }
  .th-nav {
    justify-content: space-between;
  }
  .th-hero {
    padding: 20px 16px 60px;
  }
  .th-hero-copy {
    padding: 25px 5px;
  }
  .th-hero-media {
    height: 420px;
  }
  .th-categories,
  .th-products {
    grid-template-columns: 1fr;
  }
  .th-section {
    padding: 60px 16px;
  }
  .th-heading h2 {
    font-size: 40px;
  }
  .th-footer {
    display: block;
    line-height: 2;
  }
}

/* Brand-store visual override: clean cream/white/gold, full-color imagery */
:root{
  --background:#fbfaf7;
  --foreground:#1b1916;
  --panel:#f3eee5;
  --panel-2:#eee5d5;
  --card:#ffffff;
  --card-foreground:#1b1916;
  --primary:#a9782d;
  --primary-foreground:#ffffff;
  --secondary:#f4efe7;
  --secondary-foreground:#1b1916;
  --muted:#eee9df;
  --muted-foreground:#6f685d;
  --accent:#b1843d;
  --accent-foreground:#ffffff;
  --border:#ded4c5;
  --input:#e6ddcf;
  --ring:#b1843d;
}
body{background:var(--background)!important;color:var(--foreground)!important}
body::before{background:radial-gradient(circle at 85% 10%,rgba(177,132,61,.10),transparent 30%),radial-gradient(circle at 15% 80%,rgba(177,132,61,.06),transparent 30%)!important}
.th-header{background:rgba(255,255,255,.94)!important;border-bottom:1px solid var(--border)!important}
.th-navlinks a,.th-actions{color:#4e493f!important}
.th-search{background:#f7f4ee!important;border-color:var(--border)!important;color:#81796d!important}
.th-btn,.th-buy{background:#fff!important;color:#1b1916!important;border-color:#b1843d!important;box-shadow:none!important}
.th-btn:hover,.th-buy:hover{background:#b1843d!important;color:#fff!important}
.th-hero-copy .th-eyebrow,.th-tag,.th-price{color:#a87525!important}
.th-hero-media{background:#f1ece3!important;border-color:var(--border)!important}
.th-hero-media img{background:#fff!important;filter:none!important}
.th-badge{background:rgba(255,255,255,.94)!important;border-color:var(--border)!important;color:#1b1916!important}
.th-cat{background:linear-gradient(145deg,#fff,#f2ece1)!important;border-color:var(--border)!important}
.th-cat-img{filter:none!important}
.th-cat::before{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(34,28,18,.42))!important}
.th-product{background:#fff!important;border-color:var(--border)!important}
.th-product .th-pic{background:#f4f0e8!important}
.th-product h3{color:#1b1916!important}
.th-desc,.th-heading p,.th-lead,.th-story small{color:#6f685d!important}
.th-heading{border-color:var(--border)!important}
.th-heading h2,.th-story p{color:#1b1916!important}
.th-story img{background:#fff!important;border-color:var(--border)!important}
.th-contact{background:#f3eee5!important;border-color:var(--border)!important}
.th-detail{background:#fff!important;border-color:var(--border)!important}
.th-detail a,.th-detail span{color:#332f29!important}
.th-footer{color:#777064!important}
.th-pic img{filter:none!important}
