/* Tom Terracota — cosmeticabr.click */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --terracotta: #c45c3e;
  --terracotta-dark: #a34a32;
  --terracotta-light: #e8a87c;
  --warm-cream: #fdf8f5;
  --warm-sand: #f5ede6;
  --warm-taupe: #d4c4b5;
  --ink: #2c2419;
  --ink-muted: #5c4f42;
  --ink-light: #8a7b6c;
  --line: #e0d5ca;
  --white: #ffffff;
  --space-xs: 12px;
  --space-sm: 24px;
  --space-md: 36px;
  --space-lg: 48px;
  --space-xl: 72px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --container: 1140px;
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Source Sans 3', system-ui, sans-serif;
  --shadow-soft: 0 2px 12px rgba(44, 36, 25, 0.06);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--warm-cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--terracotta-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { margin-bottom: var(--space-xs); }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* ── Split Nav Header ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  min-height: 72px;
}

.header-brand {
  justify-self: start;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}

.logo:hover { color: var(--terracotta-dark); }
.logo svg { width: 36px; height: 36px; flex-shrink: 0; }

.header-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  background: var(--terracotta);
  color: var(--white);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-muted);
}

.btn-ghost:hover {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
  background: rgba(196, 92, 62, 0.05);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: var(--transition);
}

/* ── Hero Split ── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-text { max-width: 520px; }

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-xs);
}

.hero-text h1 { margin-bottom: var(--space-sm); }

.hero-deck {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin-bottom: var(--space-md);
  line-height: 1.65;
}

.hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--warm-sand);
  box-shadow: var(--shadow-soft);
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Magazine Grid ── */
.magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
}

.magazine-breakout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-sm);
}

.col-8 { grid-column: span 8; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }

/* ── Editorial Cards ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--ink);
}

.section-header h2 { font-size: 1.5rem; }

.section-header a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover { box-shadow: var(--shadow-soft); }

.card-editorial {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--warm-sand);
}

.card-thumb img,
.card-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-thumb img,
.card:hover .card-thumb svg { transform: scale(1.03); }

.card-body {
  padding: var(--space-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--terracotta-dark); }

.card-excerpt {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  flex: 1;
  margin-bottom: var(--space-xs);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tag-beauty { background: #fce8e0; color: #a34a32; }
.tag-culture { background: #e8f0e4; color: #4a6b3a; }
.tag-skincare { background: #e8eef5; color: #3a5a7b; }
.tag-lifestyle { background: #f5ebe0; color: #7b5a3a; }
.tag-sustain { background: #e0f0e8; color: #2d6b4a; }
.tag-trends { background: #f0e8f5; color: #6b3a7b; }
.tag-editorial { background: #f0ebe0; color: #5c4f42; }

/* ── Magazine Columns List ── */
.article-columns {
  columns: 2;
  column-gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.article-columns .card {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
}

/* ── Featured Block ── */
.featured-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-md);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.featured-image {
  aspect-ratio: 4 / 3;
  min-height: 320px;
}

.featured-image img,
.featured-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: var(--space-xs) 0;
}

/* ── Sidebar Right Rail ── */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
}

.sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.sidebar-block h3 {
  font-size: 1rem;
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-xs);
  border-bottom: 1px solid var(--line);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.sidebar-list li:last-child { border-bottom: none; }

.sidebar-list a { color: var(--ink); font-weight: 600; }
.sidebar-list a:hover { color: var(--terracotta); }

.sidebar-pick {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sidebar-pick-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--terracotta-light);
  line-height: 1;
}

/* ── Article Page ── */
.article-header {
  padding: var(--space-lg) 0 var(--space-md);
  max-width: 720px;
}

.article-header h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: var(--space-sm) 0;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: var(--space-sm);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--line);
}

.author-info { font-size: 0.9375rem; }
.author-name { font-weight: 700; color: var(--ink); }
.author-role { color: var(--ink-light); font-size: 0.8125rem; }

.article-hero-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-lg);
  background: var(--warm-sand);
}

.article-body {
  max-width: 680px;
}

.article-body p {
  margin-bottom: var(--space-sm);
  font-size: 1.0625rem;
}

.article-body h2 {
  margin: var(--space-md) 0 var(--space-sm);
  font-size: 1.5rem;
}

.pull-quote {
  margin: var(--space-md) 0;
  padding: var(--space-md) var(--space-md) var(--space-md) var(--space-sm);
  border-left: 4px solid var(--terracotta);
  background: var(--warm-sand);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pull-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.pull-quote cite {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 600;
  color: var(--terracotta-dark);
}

/* ── Page Content ── */
.page-hero {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-lg);
}

.page-hero h1 { margin-bottom: var(--space-xs); }

.page-content {
  max-width: 720px;
  padding-bottom: var(--space-xl);
}

.page-content h2 {
  margin: var(--space-md) 0 var(--space-xs);
  font-size: 1.35rem;
}

.page-content ul, .page-content ol {
  margin: var(--space-xs) 0 var(--space-sm) var(--space-sm);
}

.page-content li { margin-bottom: 8px; }

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.form-group { margin-bottom: var(--space-sm); }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 6px;
  color: var(--ink-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.contact-info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.contact-info h2 { font-size: 1.25rem; margin-bottom: var(--space-sm); }

.contact-detail {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: 0.9375rem;
}

.contact-detail strong { min-width: 80px; color: var(--ink-muted); }

/* ── Three Column Footer ── */
.site-footer {
  background: var(--ink);
  color: var(--warm-taupe);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand .logo { color: var(--white); margin-bottom: var(--space-xs); }
.footer-brand p { font-size: 0.9375rem; line-height: 1.6; color: var(--warm-taupe); }

.footer-col h3 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--space-xs);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: var(--warm-taupe);
  font-size: 0.9375rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--terracotta-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8125rem;
  color: var(--ink-light);
}

/* ── Cookie Bar ── */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--warm-taupe);
  padding: var(--space-sm);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.cookie-bar.visible { transform: translateY(0); }

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.875rem;
  min-width: 260px;
}

.cookie-inner a { color: var(--terracotta-light); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

.cookie-actions .btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: var(--warm-taupe);
}

.cookie-actions .btn-accept {
  background: var(--terracotta);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background var(--transition);
}

.cookie-actions .btn-accept:hover { background: var(--terracotta-dark); }

/* ── Utility ── */
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .header-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: var(--space-sm);
    box-shadow: var(--shadow-soft);
  }
  .header-nav.open .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .header-nav.open .nav-list a {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
  }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }

  .hero-split { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .col-8, .col-6, .col-4, .col-5, .col-7 { grid-column: span 12; }
  .featured-block { grid-template-columns: 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-columns { columns: 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer-bottom { flex-direction: column; gap: var(--space-xs); text-align: center; }
}

@media (max-width: 600px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions button { flex: 1; }
}
