/* Thaiyal Studio — tailoring boutique showcase. Independent stylesheet, no shared tokens. */

:root {
  --ink: #181818;
  --panel: #141210;
  --canvas: #e9e4da;
  --canvas-soft: #f2efe7;
  --red: #c81d3c;
  --red-deep: #9e1430;
  --slate: #8d92a0;
  --on-dark: #f2efe8;
  --on-dark-muted: #c9c5bb;
  --line: rgba(24, 24, 24, 0.14);
  --line-dark: rgba(242, 239, 232, 0.16);

  --display: "Big Shoulders Display", "Arial Narrow", Arial, sans-serif;
  --body: "Work Sans", Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;

  --max: 1240px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(20, 18, 16, 0.08);
  --shadow-md: 0 10px 30px -14px rgba(20, 18, 16, 0.35);
  --shadow-lg: 0 24px 48px -20px rgba(20, 18, 16, 0.4);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; margin: 0; text-transform: uppercase; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--red); color: #fff; padding: 0.75rem 1.25rem;
  font-family: var(--body); font-weight: 600; z-index: 100;
  transition: top 0.2s ease;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* Demo bar */
.demo-bar {
  background: var(--ink); color: var(--on-dark-muted);
  font-size: 0.78rem; padding: 0.55rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: center; text-align: center;
}
.demo-bar a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.25rem;
}
.wordmark { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.wordmark-mark {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: var(--red); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.wordmark-text {
  font-family: var(--display); font-weight: 700; font-size: 1rem; line-height: 0.95;
  text-transform: uppercase; letter-spacing: 0.02em;
}

.nav-toggle {
  display: grid; gap: 4px; background: none; border: none; padding: 0.6rem;
  width: 2.75rem; height: 2.75rem; place-items: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
  position: fixed; inset: 4.2rem 0 0 0;
  background: var(--canvas);
  display: flex; flex-direction: column; gap: 0;
  padding: 1rem 1.25rem 2rem;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.primary-nav.open { transform: translateX(0); }
.primary-nav a {
  text-decoration: none; font-weight: 600; font-size: 1.15rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--line);
}
.nav-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.25rem; }
.nav-actions a { border: none; text-align: center; padding: 0.9rem 1rem; border-radius: var(--radius-sm); }
.nav-actions a:first-child { font-weight: 600; border: 1px solid var(--ink); }
.btn-order { background: var(--red); color: #fff !important; font-weight: 700; box-shadow: var(--shadow-sm); }

@media (min-width: 900px) {
  .site-header { padding: 1rem 2.5rem; }
  .nav-toggle { display: none; }
  .primary-nav {
    position: static; inset: auto; transform: none; flex-direction: row; align-items: center;
    padding: 0; background: none; overflow: visible; gap: 1.75rem;
  }
  .primary-nav a { border: none; padding: 0.4rem 0; font-size: 0.95rem; }
  .nav-actions { flex-direction: row; margin-top: 0; gap: 0.75rem; }
  .nav-actions a { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr;
}
.hero-copy {
  background: var(--ink); color: var(--on-dark);
  padding: 2.75rem 1.25rem 3.25rem;
}
.eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.78rem; color: var(--red);
  margin: 0 0 0.9rem;
}
.hero-copy .eyebrow { color: #ff5c78; }
.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.2rem);
  line-height: 0.92; margin: 0 0 1.1rem;
}
.hero h1 span { color: var(--red); -webkit-text-stroke: 0; }
.hero-lede {
  font-size: 1rem; max-width: 34rem; color: var(--on-dark-muted);
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red); color: #fff; text-decoration: none;
  font-weight: 700; padding: 0.95rem 1.5rem; min-height: 44px;
  font-family: var(--body);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn-primary:hover { background: var(--red-deep); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn-primary:hover { transform: none; } }
.btn-text {
  text-decoration: underline; text-underline-offset: 4px; font-weight: 600;
  color: inherit;
}
.hero-disclosure { font-size: 0.78rem; color: var(--slate); }

.hero-photo img {
  width: 100%; height: 56vw; max-height: 480px; object-fit: cover; object-position: 50% 30%;
}

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(360px, 46%) 1fr; min-height: 640px; }
  .hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 3rem 3.5rem; }
  .hero-photo img { height: 100%; max-height: none; min-height: 640px; }
}

/* Marquee */
.marquee {
  background: var(--red); color: #fff; overflow: hidden; padding: 0.7rem 0;
  border-top: 1px solid rgba(0,0,0,0.15); border-bottom: 1px solid rgba(0,0,0,0.15);
}
.marquee-track {
  display: flex; gap: 0.9rem; white-space: nowrap; width: max-content;
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 1.05rem; font-weight: 600;
  animation: marquee 28s linear infinite;
}
.marquee-track span:nth-child(2n) { opacity: 0.6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; overflow-x: auto; }
}

/* Section heads */
.section-head { max-width: 40rem; margin: 0 auto 2.5rem; padding: 0 1.25rem; text-align: left; }
.section-head h2 { font-size: clamp(1.9rem, 5.5vw, 2.6rem); line-height: 0.98; margin-bottom: 0.9rem; }
.section-head p:last-child { color: #4a463f; max-width: 32rem; }
.section-head--on-dark p:last-child { color: var(--on-dark-muted); }
.section-head--on-dark h2 { color: var(--on-dark); }
.section-head--on-dark .eyebrow { color: #ff5c78; }

.measure-section, .craft-section, .faq-section, .order-section { padding: 4rem 0; }
.collections-section, .pricing-section { padding: 4rem 0; background: var(--ink); color: var(--on-dark); }

/* Measure timeline */
.measure-timeline {
  padding: 0 1.25rem; max-width: var(--max); margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.measure-timeline li {
  display: flex; gap: 1.25rem; padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.measure-timeline li:last-child { border-bottom: 1px solid var(--line); }
.measure-num {
  font-family: var(--mono); font-weight: 700; font-size: 1.1rem; color: var(--red);
  flex: 0 0 auto; width: 3rem;
}
.measure-body h3 { font-size: 1.15rem; text-transform: none; margin-bottom: 0.4rem; letter-spacing: 0; }
.measure-body p { color: #4a463f; max-width: 34rem; }
.measure-note { padding: 1.5rem 1.25rem 0; max-width: var(--max); margin: 0 auto; font-size: 0.82rem; color: var(--slate); }

@media (min-width: 900px) {
  .measure-timeline { flex-direction: row; gap: 0; }
  .measure-timeline li {
    flex: 1; flex-direction: column; gap: 1.25rem;
    border-top: none; border-left: 1px solid var(--line); padding: 0 1.5rem;
  }
  .measure-timeline li:last-child { border-bottom: none; }
  .measure-timeline li:first-child { border-left: none; padding-left: 0; }
}

/* Bento grid */
.bento-grid {
  padding: 0 1.25rem; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
.bento-tile {
  position: relative; margin: 0; overflow: hidden; background: #000;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.bento-tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.bento-tile--tall img { aspect-ratio: 3 / 4; }
.bento-tile figcaption {
  position: absolute; left: 0.9rem; bottom: 0.8rem; color: #fff;
  font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(20,18,16,0.72); padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
}
.collections-note { padding: 1.5rem 1.25rem 0; max-width: var(--max); margin: 0 auto; font-size: 0.82rem; color: var(--on-dark-muted); }

@media (min-width: 700px) {
  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
  }
  .bento-tile--wide { grid-column: span 2; }
  .bento-tile--tall { grid-row: span 2; }
  .bento-tile img, .bento-tile--tall img { aspect-ratio: auto; height: 100%; }
}

/* Craft zig-zag */
.craft-row {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: var(--max); margin: 0 auto 3rem; padding: 0 1.25rem;
}
.craft-row:last-child { margin-bottom: 0; }
.craft-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.craft-kicker { font-family: var(--mono); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--red); margin-bottom: 0.75rem; }
.craft-text { font-size: 1.05rem; color: #332f2a; max-width: 32rem; }
.craft-quote {
  font-family: var(--display); font-weight: 600; font-size: 1.7rem; line-height: 1.15;
  margin: 0 0 1rem; color: var(--ink); text-transform: none;
}
.craft-copy { display: flex; flex-direction: column; justify-content: center; }

@media (min-width: 900px) {
  .craft-row { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
  .craft-row--reverse .craft-photo { order: 2; }
  .craft-row--reverse .craft-copy { order: 1; }
}

/* Pricing table */
.pricing-table-wrap { padding: 0 1.25rem; max-width: var(--max); margin: 0 auto; overflow-x: auto; }
.pricing-table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; min-width: 560px;
  border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pricing-table th {
  text-align: left; font-family: var(--mono); text-transform: uppercase; font-size: 0.75rem;
  letter-spacing: 0.05em; color: var(--on-dark-muted); padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-dark);
}
.pricing-table td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--line-dark); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td:last-child { font-family: var(--mono); color: #ff8fa3; white-space: nowrap; }
.pricing-note { padding: 1.5rem 1.25rem 0; max-width: var(--max); margin: 0 auto; font-size: 0.82rem; color: var(--on-dark-muted); }

@media (max-width: 699px) {
  .pricing-table-wrap { -webkit-overflow-scrolling: touch; }
}

/* FAQ */
.faq-list { padding: 0 1.25rem; max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-list details {
  border: 1px solid var(--line); padding: 1rem 1.1rem;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  background: #fff;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--display); font-size: 1.3rem; color: var(--red); flex-shrink: 0; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list p { margin-top: 0.75rem; color: #4a463f; }

/* Order form */
.order-section { background: var(--canvas-soft); }
.order-intro { max-width: 46rem; margin: 0 auto 2rem; padding: 0 1.25rem; }
.order-form {
  max-width: 46rem; margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: 1fr; gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.45rem; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.form-row label span { font-weight: 400; color: var(--slate); }
.order-form input, .order-form select, .order-form textarea {
  font-family: var(--body); font-size: 1rem; padding: 0.8rem 0.9rem;
  border: 1px solid var(--line); background: #fff; min-height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.order-form textarea { min-height: 88px; resize: vertical; }
.form-submit { justify-self: start; margin-top: 0.5rem; border: none; }

.form-success {
  max-width: 46rem; margin: 0 auto; padding: 2.5rem 1.5rem; text-align: center;
  border: 1px solid var(--red);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  background: #fff;
}
.form-success span { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--red); color: #fff; font-size: 1.3rem; margin-bottom: 1rem; }
.form-success h3 { text-transform: none; font-size: 1.3rem; margin-bottom: 0.5rem; }
.form-success p { color: #4a463f; margin-bottom: 1.25rem; }
.form-success button { background: none; border: 1px solid var(--ink); padding: 0.7rem 1.3rem; font-weight: 600; min-height: 44px; border-radius: var(--radius-sm); }

@media (min-width: 640px) {
  .order-form { grid-template-columns: 1fr 1fr; }
  .form-row--full { grid-column: 1 / -1; }
  .form-submit { grid-column: 1 / -1; }
}

/* Footer */
.site-footer {
  background: var(--ink); color: var(--on-dark-muted);
  padding: 2.5rem 1.25rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.5rem; align-items: center;
}
.site-footer strong { display: block; color: #fff; font-family: var(--display); font-size: 1.1rem; text-transform: uppercase; }
.site-footer span { display: block; margin-top: 0.3rem; font-size: 0.85rem; }
.site-footer a { color: #ff5c78; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-top: 0.5rem; }

/* Quick actions (mobile sticky bar) */
.quick-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 1px solid var(--line-dark);
  box-shadow: 0 -10px 24px -12px rgba(20, 18, 16, 0.4);
}
.quick-actions a {
  text-align: center; padding: 0.95rem 1rem; color: #fff; font-weight: 700;
  text-decoration: none; min-height: 48px; display: flex; align-items: center; justify-content: center;
}
.quick-actions a:first-child { border-right: 1px solid var(--line-dark); }
.quick-actions a:last-child { background: var(--red); }

@media (min-width: 900px) {
  .quick-actions { display: none !important; }
}

.section-head, .measure-note, .collections-note, .pricing-note, .order-intro, .craft-row, .bento-grid, .measure-timeline, .pricing-table-wrap, .faq-list, .order-form { box-sizing: border-box; }
