/* ===========================================================
   History of the Brassiere — shared stylesheet
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --cream:      #faf5ee;
  --cream-2:    #f2e7da;
  --blush:      #f0d9d4;
  --plum:       #f67fb9;
  --plum-2:     #d6467e;
  --burgundy:   #8a2f45;
  --burgundy-2: #a83e58;
  --gold:       #b8894f;
  --ink:        #2b2024;
  --ink-soft:   #5a4a52;
  --line:       #e4d3c6;
  --white:      #fffdfb;
  --shadow:     0 10px 30px rgba(61,38,52,0.10);
  --radius:     14px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display{
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--plum);
  margin: 0 0 0.5em 0;
  font-weight: 600;
  letter-spacing: 0.2px;
}

h1{ font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; }
h2{ font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; }
h3{ font-size: 1.3rem; }

p{ margin: 0 0 1em 0; color: var(--ink-soft); }

a{ color: var(--burgundy); text-decoration: none; }
a:hover{ text-decoration: underline; }

img{ max-width: 100%; display: block; }

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ---------- Header / nav ---------- */
.site-header{
  background: var(--plum);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 14px rgba(0,0,0,0.15);
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--cream);
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.brand span{ color: var(--gold); }
.brand:hover{ text-decoration: none; opacity: 0.9; }

.nav-links{
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a{
  color: var(--cream);
  opacity: 0.82;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}
.nav-links a:hover{ opacity: 1; text-decoration: none; }
.nav-links a.active{
  opacity: 1;
  border-bottom-color: var(--gold);
}

.nav-toggle{ display: none; }

/* ---------- Hero ---------- */
.hero{
  background:
    radial-gradient(ellipse at top right, rgba(184,137,79,0.14), transparent 55%),
    linear-gradient(180deg, var(--plum) 0%, var(--plum-2) 100%);
  color: var(--cream);
  padding: 84px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero .wrap{ position: relative; z-index: 2; }
.hero h1{ color: var(--white); max-width: 780px; }
.hero p.lede{
  color: #fbe3ec;
  font-size: 1.15rem;
  max-width: 640px;
  margin-bottom: 1.6em;
}
.hero-decor{
  position: absolute;
  right: -60px;
  top: -40px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(250,238,244,0.22);
  border-radius: 50%;
}
.hero-decor.two{
  right: 40px;
  top: 60px;
  width: 260px;
  height: 260px;
}

.page-hero{
  background: linear-gradient(180deg, var(--plum) 0%, var(--plum-2) 100%);
  color: var(--cream);
  padding: 64px 0 52px;
}
.page-hero h1{ color: var(--white); }
.page-hero p.lede{ color: #fbe3ec; max-width: 700px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary{
  background: var(--gold);
  color: var(--plum);
}
.btn-primary:hover{
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(184,137,79,0.35);
}
.btn-ghost{
  border: 1px solid rgba(250,245,238,0.4);
  color: var(--cream);
}
.btn-ghost:hover{ text-decoration: none; border-color: var(--cream); }

/* ---------- Sections ---------- */
section{ padding: 64px 0; }
section.alt{ background: var(--white); }
section.tight{ padding: 40px 0; }

.section-head{
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p{ margin: 0; }

/* ---------- Card grid (home feature links) ---------- */
.grid{
  display: grid;
  gap: 24px;
}
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
  .grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-4, .grid-3, .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: 0 16px 34px rgba(61,38,52,0.16); }
.card-media{
  aspect-ratio: 4/3;
  background: var(--cream-2);
  overflow: hidden;
}
.card-media img{ width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-body{ padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3{ margin-bottom: 6px; }
.card-body p{ font-size: 0.93rem; flex: 1; }
.card-link{
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--burgundy);
  letter-spacing: 0.2px;
}

.feature-link{ display: block; color: inherit; }
.feature-link:hover{ text-decoration: none; }

/* ---------- Timeline ---------- */
.timeline{
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before{
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--burgundy), var(--gold));
}
.tl-item{
  position: relative;
  padding-bottom: 52px;
}
.tl-item:last-child{ padding-bottom: 0; }
.tl-dot{
  position: absolute;
  left: -40px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--burgundy);
}
.tl-year{
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--burgundy);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.tl-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.tl-card h3{ margin-bottom: 8px; }
.tl-media{
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.tl-media .tl-text{ flex: 1 1 300px; }
.tl-media .tl-img{ flex: 0 1 220px; }
.tl-media .tl-img img{
  border-radius: 8px;
  border: 1px solid var(--line);
}
.tl-media .tl-img figcaption{
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-top: 6px;
  font-style: italic;
}

/* ---------- Anatomy diagram ---------- */
.anatomy-wrap{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px){
  .anatomy-wrap{ grid-template-columns: 1fr; }
}
.anatomy-svg-box{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.parts-list{ list-style: none; margin: 0; padding: 0; }
.parts-list li{
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.parts-list li:last-child{ border-bottom: none; }
.parts-list .num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  margin-right: 10px;
}
.parts-list strong{ color: var(--plum); }
.parts-list p{ margin: 6px 0 0 34px; font-size: 0.92rem; }

/* ---------- Decade cards ---------- */
.decade-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.decade-media{
  aspect-ratio: 5/4;
  background: linear-gradient(160deg, var(--blush), var(--cream-2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.decade-media img{ width: 100%; height: 100%; object-fit: cover; }
.decade-media svg{ width: 62%; height: 62%; }
.decade-body{ padding: 18px 20px 22px; }
.decade-body .eyebrow{ margin-bottom: 4px; }
.decade-body h3{ margin-bottom: 8px; }
.decade-body p{ font-size: 0.9rem; margin-bottom: 0; }

/* ---------- Advertisement gallery ---------- */
.ad-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ad-media{ background: var(--cream-2); }
.ad-media img{ width: 100%; height: auto; }
.ad-body{ padding: 18px 20px; }
.ad-body h3{ font-size: 1.05rem; margin-bottom: 4px; }
.ad-tag{
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 700;
}
.ad-body p{ font-size: 0.9rem; margin-top: 8px; margin-bottom: 0; }

/* ---------- Pop culture list ---------- */
.pc-item{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.pc-item:last-child{ border-bottom: none; }
@media (max-width: 620px){
  .pc-item{ grid-template-columns: 1fr; gap: 6px; }
}
.pc-year{
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--burgundy);
}
.pc-body h3{ margin-bottom: 6px; font-size: 1.15rem; }
.pc-body p{ margin-bottom: 0; }

/* ---------- Callout / myth box ---------- */
.callout{
  background: var(--blush);
  border-left: 4px solid var(--burgundy);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 18px 0;
}
.callout h4{ margin-bottom: 6px; color: var(--burgundy); font-family: 'Inter', sans-serif; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.callout p{ margin-bottom: 0; font-size: 0.94rem; }

/* ---------- Quote ---------- */
.pullquote{
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--plum);
  border-left: 3px solid var(--gold);
  padding-left: 24px;
  margin: 30px 0;
  max-width: 720px;
}
.pullquote cite{
  display: block;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--plum);
  color: #000000;
  padding: 44px 0 30px;
  margin-top: 40px;
}
.site-footer .wrap{
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.site-footer h4{
  color: #000000;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.site-footer ul{ list-style: none; margin: 0; padding: 0; }
.site-footer li{ margin-bottom: 8px; }
.site-footer a{ color: #000000; }
.site-footer a:hover{ color: #000000; text-decoration: underline; }
.footer-note{
  font-size: 0.78rem;
  color: #000000;
  max-width: 420px;
  line-height: 1.6;
}
.footer-bottom{
  border-top: 1px solid rgba(0,0,0,0.2);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #000000;
}

/* ---------- Sizing tables ---------- */
.table-scroll{
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin: 24px 0;
}
table.sizing{
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.92rem;
  min-width: 560px;
}
table.sizing caption{
  text-align: left;
  padding: 16px 20px 4px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--plum);
  font-size: 1.1rem;
}
table.sizing th, table.sizing td{
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
table.sizing th{
  background: var(--burgundy);
  color: var(--white);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
table.sizing td:first-child, table.sizing th:first-child{
  text-align: left;
  font-weight: 600;
  color: var(--plum);
}
table.sizing tbody tr:nth-child(even){ background: var(--cream-2); }
table.sizing tbody tr:hover{ background: var(--blush); }

/* ---------- Fit comparison diagrams ---------- */
.fit-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px){
  .fit-grid{ grid-template-columns: 1fr; }
}
.fit-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fit-card-head{
  padding: 18px 22px 0;
}
.fit-card-head .eyebrow{ margin-bottom: 2px; }
.fit-card.too-small .fit-card-head h3{ color: var(--burgundy); }
.fit-card.too-big .fit-card-head h3{ color: var(--gold); }
.fit-svg-box{
  padding: 8px 30px 0;
}
.fit-list{ list-style: none; margin: 0; padding: 18px 22px 22px; }
.fit-list li{
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  display: flex;
  gap: 10px;
}
.fit-list li:first-child{ border-top: none; }
.fit-list .num{
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 1px;
}
.fit-card.too-big .fit-list .num{ background: var(--gold); }

/* ---------- Utility ---------- */
.center{ text-align: center; }
.mt-0{ margin-top: 0; }
.small{ font-size: 0.85rem; }
.credit{
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 6px;
}
