/* =========================================================================
   Romance Secrets - design system
   One stylesheet for the whole site. Palette sampled from the logo:
   bright red mark + soft-pink figures on warm white.
   ========================================================================= */

:root {
  /* Brand */
  --red:        #E4002B;   /* logo heart outline + wordmark */
  --red-dark:   #B80022;   /* hover / active */
  --pink:       #F5A9BC;   /* logo figures */
  --pink-soft:  #FBE4E9;   /* tint backgrounds */
  --pink-wash:  #FDF3F5;   /* section wash */

  /* Neutrals */
  --ink:        #141011;   /* body text (near-black) */
  --ink-soft:   #2C2528;   /* secondary text */
  --muted:      #7C7376;   /* meta / captions */
  --line:       #EFE6E8;   /* hairline borders */
  --bg:         #FFFFFF;   /* page background (white) */
  --card:       #FFFFFF;

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1080px;
  --measure: 720px;        /* readable prose width */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 26, 27, 0.07);
  --shadow-lg: 0 14px 40px rgba(31, 26, 27, 0.10);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 1.8em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.5em 0 .4em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 252, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; padding: 6px 2px; position: relative;
}
.nav a:hover { color: var(--red); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--red); border-radius: 2px;
}

/* Mobile nav (CSS-only toggle) */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--pink-wash) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.hero .container { padding-top: 64px; padding-bottom: 64px; }
.hero h1 { margin-bottom: .3em; }
.hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .18em;
  font-size: .75rem; font-weight: 700; color: var(--red);
  background: var(--pink-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}

/* Split hero (homepage): text + image */
.hero-split {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--pink-wash) 0%, var(--bg) 100%);
}
.hero-split .container {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px;
  padding-top: 56px; padding-bottom: 56px;
}
.hero-split .copy { max-width: 480px; }
.hero-split h1 { margin: .1em 0 .35em; }
.hero-split p { color: var(--ink-soft); font-size: 1.12rem; margin: 0; }
.hero-split .art {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
}
.hero-split .art img { width: 100%; height: 100%; object-fit: cover; }

/* Topic tiles (homepage) */
.section-title { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.section-title h2 { margin: 0 0 .3em; }
.section-title p { color: var(--muted); margin: 0; }
.topics { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.topic {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.topic .art { aspect-ratio: 3 / 2; overflow: hidden; }
.topic .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.topic:hover .art img { transform: scale(1.04); }
.topic .body { padding: 18px 20px 22px; }
.topic .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: var(--red); }
.topic h3 { margin: .35em 0 .25em; font-size: 1.15rem; }
.topic p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---- Page title block (interior pages) ---------------------------------- */
.page-head { border-bottom: 1px solid var(--line); background: var(--pink-wash); }
.page-head .container { padding-top: 48px; padding-bottom: 40px; }
.page-head h1 { margin: 0; }
.page-head .subtitle { color: var(--muted); margin: .5em 0 0; font-size: 1rem; }

/* ---- Article index grid ------------------------------------------------- */
.section { padding: 56px 0; }
.grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card a { text-decoration: none; color: inherit; }
.card .thumb { aspect-ratio: 16 / 10; background: var(--pink-soft); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; color: var(--red); }
.card h3 { font-size: 1.2rem; margin: 0; }
.card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.card .meta { margin-top: auto; color: var(--muted); font-size: .82rem; }

/* Empty state (no articles yet) */
.empty {
  text-align: center; padding: 72px 24px; border: 1px dashed var(--line);
  border-radius: var(--radius); background: var(--pink-wash); color: var(--ink-soft);
}
.empty .heart { font-size: 2.4rem; }
.empty h2 { margin: .2em 0; }

/* ---- Prose (article body + legal pages) --------------------------------- */
.prose { max-width: var(--measure); margin: 0 auto; }
.prose p, .prose li { color: var(--ink); }
.prose h2 { color: var(--ink); }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { padding-left: 1.25em; }
.prose li { margin: .3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; }
.prose .lede { font-size: 1.15rem; color: var(--ink); }
.prose figure { margin: 1.8em 0; }
.prose figure.lead { margin: 0 0 1.8em; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { color: var(--muted); font-size: .85rem; margin-top: .6em; text-align: center; }
.prose ol { padding-left: 1.25em; }
.prose ol li { margin: .3em 0; }

/* ---- Contact card ------------------------------------------------------- */
.contact-card {
  max-width: var(--measure); margin: 0 auto;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px;
}
.contact-card .row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .label { min-width: 120px; font-weight: 700; color: var(--ink); }
.contact-card address { font-style: normal; color: var(--ink-soft); line-height: 1.6; }
.btn {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 999px; margin-top: 8px;
}
.btn:hover { background: var(--red-dark); color: #fff; text-decoration: none; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  margin-top: 40px; background: var(--ink); color: #EAD9DD;
  padding: 48px 0 32px; font-size: .92rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.site-footer .brand-block { max-width: 320px; }
.site-footer .brand-block strong { color: #fff; display: block; font-family: var(--serif); font-size: 1.1rem; }
.site-footer .brand-block p { color: #C7B4B8; margin: 8px 0 0; line-height: 1.5; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: flex-start; }
.footer-nav a { color: #EAD9DD; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px;
  color: #B39CA1; font-size: .82rem; text-align: center;
}
.footer-bottom a { color: #EAD9DD; }

/* ---- Utilities ---------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav { gap: 18px; }
  .nav a { font-size: .9rem; }
  .site-footer .container { flex-direction: column; gap: 22px; }
  .hero-split .container { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .hero-split .copy { max-width: none; }
  .hero-split .art { order: -1; }
  .contact-card { padding: 24px; }
  .contact-card .row { flex-direction: column; gap: 4px; }
}
