/*
Theme Name: First Time Mom Every Time
Theme URI: https://example.com/
Author: Vicki
Description: A warm editorial parenting blog theme for essays about raising teenagers, twins, and third-culture kids between China and the United States.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: first-time-mom
*/

:root {
  --ink: #25211d;
  --muted: #69615a;
  --paper: #fbf8f2;
  --surface: #fffdf8;
  --line: #e8ded1;
  --clay: #9d5645;
  --clay-dark: #733b31;
  --sage: #65765f;
  --blue: #526878;
  --gold: #b9854d;
  --shadow: 0 18px 46px rgba(37, 33, 29, 0.13);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.55rem, 5.3vw, 4.9rem);
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 3rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin-top: 0;
}

.screen-reader-text,
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 248, 242, 0.9);
  border-bottom: 1px solid rgba(232, 222, 209, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  aspect-ratio: 1;
  color: var(--surface);
  background: var(--ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.site-nav,
.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.95rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--clay);
}

.nav-toggle {
  display: none;
  width: 42px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: end;
  padding: clamp(88px, 12vh, 128px) clamp(20px, 5vw, 72px) 42px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(37, 33, 29, 0.86), rgba(69, 70, 66, 0.58) 52%, rgba(37, 33, 29, 0.16)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1800&q=84");
  background-position: center;
  background-size: cover;
}

.hero-content {
  max-width: 720px;
  color: #fffaf1;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero-content p {
  color: #fff0dc;
}

.hero-content p {
  max-width: 600px;
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.35vw, 1.13rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button,
.wp-block-button__link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  background: var(--clay);
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.button.primary:hover,
.button.primary:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background: var(--clay-dark);
}

.button.secondary {
  color: #fffaf1;
  border-color: rgba(255, 250, 241, 0.62);
  background: rgba(255, 255, 255, 0.1);
}

.hero-note {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 42px;
  width: min(320px, calc(100vw - 40px));
  padding: 16px;
  color: #fffaf1;
  border: 1px solid rgba(255, 250, 241, 0.42);
  border-radius: 8px;
  background: rgba(37, 33, 29, 0.43);
  backdrop-filter: blur(10px);
}

.hero-note span,
.story-card span,
.theme-list span,
.post-meta,
.entry-meta {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-note span {
  color: #f8dfbf;
}

.hero-note strong {
  display: block;
  margin-top: 5px;
  line-height: 1.28;
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.intro-grid article {
  min-height: 245px;
  padding: 28px;
  background: var(--paper);
}

.number {
  display: block;
  margin-bottom: 24px;
  color: var(--clay);
  font-weight: 800;
}

.intro-grid h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
}

.intro-grid p,
.feature p,
.section-heading p,
.split-section p,
.about-section p,
.contact-section p,
.archive-intro p,
.entry-content,
.entry-summary {
  color: var(--muted);
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  background: var(--surface);
}

.feature p {
  max-width: 650px;
  margin: 18px 0 0;
}

.text-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--clay);
  font-weight: 800;
}

.feature-image {
  min-height: 390px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 0;
}

.story-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.story-card,
.post-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.story-card:hover,
.post-card:hover {
  border-color: rgba(157, 86, 69, 0.38);
  box-shadow: 0 12px 34px rgba(37, 33, 29, 0.08);
  transform: translateY(-1px);
}

.story-card h3,
.post-card h2 {
  margin-top: 8px;
  font-size: 1.2rem;
}

.story-card p,
.post-card p {
  margin: 12px 0 20px;
  color: var(--muted);
}

.story-card a,
.post-card a {
  margin-top: auto;
  color: var(--clay);
  font-weight: 800;
}

.post-card a {
  text-decoration: none;
}

.split-section {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: #eef1e8;
}

.theme-list {
  display: grid;
  gap: 14px;
}

.theme-list article {
  padding: 20px;
  background: var(--surface);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.theme-list article:hover {
  border-left-color: var(--sage);
  box-shadow: 0 12px 34px rgba(37, 33, 29, 0.08);
  transform: translateY(-1px);
}

.theme-list h3 {
  margin-top: 7px;
}

.theme-list p {
  margin: 8px 0 0;
}

.about-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 760px);
  gap: clamp(26px, 6vw, 64px);
  align-items: center;
  background: var(--ink);
  color: #fffaf1;
}

.about-section .eyebrow,
.about-section p {
  color: #f5dfbf;
}

.portrait {
  display: grid;
  place-items: center;
  width: min(180px, 48vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 250, 241, 0.3);
  border-radius: 50%;
}

.portrait span {
  display: grid;
  place-items: center;
  width: 122px;
  aspect-ratio: 1;
  color: #fffaf1;
  background: var(--clay);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
  font-weight: 700;
}

.contact-section {
  max-width: 880px;
}

.contact-section h2 {
  max-width: 760px;
}

.contact-section p {
  max-width: 640px;
  margin: 18px 0 24px;
}

.archive-intro {
  background: var(--surface);
}

.entry-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.entry-header {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px) 32px;
  background: var(--surface);
}

.entry-content {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 64px) clamp(20px, 5vw, 72px);
  color: var(--ink);
  font-size: 1.05rem;
}

.entry-content p,
.entry-content li {
  color: var(--ink);
}

.entry-content a {
  color: var(--clay);
  font-weight: 700;
}

.entry-content > * {
  max-width: 760px;
}

.entry-content > .alignwide {
  max-width: 1040px;
}

.entry-content > .alignfull {
  max-width: none;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
}

.featured-image {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) clamp(26px, 5vw, 48px);
}

.featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.navigation {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) clamp(48px, 7vw, 82px);
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.nav-links a {
  color: var(--clay);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--clay);
}

@media (max-width: 1050px) {
  .intro-grid,
  .story-grid,
  .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-note {
    position: static;
    margin-top: 34px;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav .menu {
    display: grid;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    display: block;
    padding: 12px;
  }

  .hero {
    min-height: 650px;
  }

  .hero-media {
    background-image:
      linear-gradient(0deg, rgba(37, 33, 29, 0.9), rgba(69, 70, 66, 0.38)),
      url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1200&q=84");
  }

  .feature,
  .split-section,
  .about-section,
  .section-heading {
    display: block;
  }

  .feature-image,
  .theme-list,
  .section-heading p {
    margin-top: 24px;
  }

  .portrait {
    margin-bottom: 24px;
  }

  .site-footer {
    display: block;
  }

  .site-footer a {
    display: inline-flex;
    margin-top: 10px;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3.28rem);
  }

  h2 {
    font-size: clamp(1.52rem, 8vw, 2.1rem);
  }

  .intro-grid,
  .story-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid article,
  .story-card,
  .post-card {
    min-height: auto;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .nav-links {
    display: grid;
  }
}
