/*
Theme Name: Button & Sleeves Coming Soon
Theme URI: https://buttonandsleeves.com
Author: Button & Sleeves
Author URI: https://buttonandsleeves.com
Description: A tailored "coming soon" theme for Button & Sleeves, a made-to-measure shirt & apparel house. Palette and button styling inspired by heritage Texas lifestyle branding: parchment cream, deep coffee brown, near-black maroon, and a burnt-orange accent. Includes an editable countdown timer and an email waitlist signup that saves subscribers inside WordPress.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: buttonandsleeves
Tags: one-column, custom-colors, custom-logo, threaded-comments, translation-ready
*/

/* ==========================================================================
   0. Design tokens
   ========================================================================== */
:root{
  --bs-cream:        #F5EFE2;
  --bs-cream-soft:   #FBF7EE;
  --bs-brown:        #412019;
  --bs-maroon:       #2A1510;
  --bs-orange:       #FA5021;
  --bs-orange-dark:  #D9401A;
  --bs-tan-border:   #D4CCBC;
  --bs-white:        #FFFFFF;

  --bs-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --bs-font-body:    "Jost", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   1. Reset & base
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bs-cream);
  color: var(--bs-brown);
  font-family: var(--bs-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }

/* subtle woven-cloth texture across the whole page */
.bs-page{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    repeating-linear-gradient(45deg,  rgba(65,32,25,0.028) 0, rgba(65,32,25,0.028) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(-45deg, rgba(65,32,25,0.028) 0, rgba(65,32,25,0.028) 1px, transparent 1px, transparent 10px);
}

/* ==========================================================================
   2. Ticker bars (top + bottom), matching the reference site's marquee
   ========================================================================== */
.bs-ticker{
  width: 100%;
  overflow: hidden;
  background: var(--bs-brown);
  color: var(--bs-cream);
  padding: 10px 0;
  white-space: nowrap;
  border-bottom: 1px solid rgba(245,239,226,0.08);
}
.bs-ticker--bottom{
  background: var(--bs-maroon);
  border-bottom: none;
  border-top: 1px solid rgba(245,239,226,0.08);
}
.bs-ticker__track{
  display: inline-flex;
  align-items: center;
  animation: bs-marquee 28s linear infinite;
}
.bs-ticker--bottom .bs-ticker__track{
  animation-duration: 34s;
  animation-direction: reverse;
}
.bs-ticker__item{
  display: inline-flex;
  align-items: center;
  font-family: var(--bs-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 18px;
  color: inherit;
}
.bs-ticker__item::after{
  content: "\25C6";
  margin-left: 18px;
  color: var(--bs-orange);
  font-size: 8px;
}
@keyframes bs-marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .bs-ticker__track{ animation: none; }
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.bs-header{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 24px 0;
}
.bs-header__logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--bs-font-display);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bs-brown);
}
.bs-header__logo img{ height: 34px; width: auto; }
.bs-header__mark{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--bs-brown);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-size: 15px;
}

/* ==========================================================================
   4. Hero / main content
   ========================================================================== */
.bs-hero{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 64px;
  position: relative;
}

.bs-hero__inner{
  max-width: 720px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* rotating heritage badge */
.bs-badge{
  width: 108px;
  height: 108px;
  margin: 0 auto 28px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bs-badge__ring{
  position: absolute;
  inset: 0;
  animation: bs-spin 34s linear infinite;
}
.bs-badge__center{
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--bs-brown);
  display: flex; align-items: center; justify-content: center;
}
.bs-badge__center svg{ width: 26px; height: 26px; }
@keyframes bs-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .bs-badge__ring{ animation: none; }
}

.bs-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bs-orange-dark);
  margin-bottom: 18px;
}
.bs-eyebrow::before,
.bs-eyebrow::after{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--bs-orange-dark);
  opacity: 0.6;
}

.bs-headline{
  font-family: var(--bs-font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 1.04;
  color: var(--bs-brown);
  margin: 0 0 6px;
}
.bs-headline .amp{
  color: var(--bs-orange);
  font-style: normal;
  padding: 0 6px;
}

.bs-subline{
  font-family: var(--bs-font-body);
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bs-brown);
  opacity: 0.65;
  margin: 0 0 26px;
}

.bs-stitch{
  width: 220px;
  height: 14px;
  margin: 0 auto 26px;
  display: block;
}

.bs-description{
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--bs-brown);
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto 40px;
}

/* countdown */
.bs-countdown{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 42px;
  flex-wrap: wrap;
}
.bs-countdown__unit{
  background: var(--bs-cream-soft);
  border: 1px solid var(--bs-tan-border);
  border-radius: 10px;
  min-width: 76px;
  padding: 14px 10px 12px;
  box-shadow: 0 2px 0 rgba(65,32,25,0.06);
}
.bs-countdown__num{
  font-family: var(--bs-font-display);
  font-size: 30px;
  font-weight: 600;
  color: var(--bs-orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bs-countdown__label{
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bs-brown);
  opacity: 0.6;
}

/* email signup — button styled after the reference site's CTA */
.bs-form{
  max-width: 440px;
  margin: 0 auto 18px;
}
.bs-form__row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.bs-form__input{
  flex: 1 1 220px;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--bs-brown);
  background: var(--bs-cream-soft);
  color: var(--bs-brown);
  font-family: var(--bs-font-body);
  font-size: 14px;
  outline: none;
  transition: box-shadow .2s ease;
}
.bs-form__input::placeholder{ color: rgba(65,32,25,0.45); }
.bs-form__input:focus{ box-shadow: 0 0 0 3px rgba(250,80,33,0.18); }

.bs-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid var(--bs-brown);
  background: var(--bs-orange);
  color: var(--bs-cream);
  font-family: var(--bs-font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .18s ease, transform .12s ease;
}
.bs-btn:hover{ background: var(--bs-orange-dark); transform: translateY(-1px); }
.bs-btn:active{ transform: translateY(0); }
.bs-btn:disabled{ opacity: 0.6; cursor: default; transform: none; }

.bs-form__hp{ position: absolute; left: -9999px; opacity: 0; }

.bs-form__msg{
  min-height: 20px;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.bs-form__msg[data-state="success"]{ color: #2f6b3e; }
.bs-form__msg[data-state="error"]{ color: #a4322a; }

.bs-fineprint{
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--bs-brown);
  opacity: 0.5;
  margin-top: 6px;
}

/* social row */
.bs-social{
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 38px;
}
.bs-social a{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--bs-brown);
  display: flex; align-items: center; justify-content: center;
  color: var(--bs-brown);
  transition: background .18s ease, color .18s ease, transform .15s ease;
}
.bs-social a svg{ width: 16px; height: 16px; }
.bs-social a:hover{
  background: var(--bs-brown);
  color: var(--bs-cream);
  transform: translateY(-2px);
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.bs-footer{
  text-align: center;
  padding: 20px 16px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bs-cream);
  background: var(--bs-maroon);
  opacity: 0.95;
}
.bs-footer a{ text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   6. Responsive
   ========================================================================== */
@media (max-width: 520px){
  .bs-countdown{ gap: 8px; }
  .bs-countdown__unit{ min-width: 64px; padding: 10px 6px; }
  .bs-countdown__num{ font-size: 24px; }
  .bs-form__row{ flex-direction: column; }
  .bs-btn{ width: 100%; }
}
