/* Free Birthday Invitations — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --paper: #FFFFFF;
  --ink: #073B4C;
  --coral: #EF476F;
  --teal: #06D6A0;
  --gold: #FFD166;
  --ocean: #118AB2;
  --card: #DCF7EE;
  --line: #E4D6C4;
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22260%22%20height%3D%22260%22%20viewBox%3D%220%200%20260%20260%22%3E%3Crect%20x%3D%22117.5%22%20y%3D%22137.8%22%20width%3D%223.0%22%20height%3D%2211.8%22%20rx%3D%221.5%22%20transform%3D%22rotate%28333%20119.0%20143.7%29%22%20fill%3D%22%23118AB2%22%20opacity%3D%220.4%22/%3E%3Crect%20x%3D%22210.2%22%20y%3D%2252.4%22%20width%3D%223.0%22%20height%3D%2212.5%22%20rx%3D%221.5%22%20transform%3D%22rotate%28289%20211.7%2058.7%29%22%20fill%3D%22%23118AB2%22%20opacity%3D%220.4%22/%3E%3Crect%20x%3D%22195.9%22%20y%3D%2230.6%22%20width%3D%223.0%22%20height%3D%2212.2%22%20rx%3D%221.5%22%20transform%3D%22rotate%28109%20197.4%2036.6%29%22%20fill%3D%22%23EF476F%22%20opacity%3D%220.4%22/%3E%3Crect%20x%3D%22218.3%22%20y%3D%22154.0%22%20width%3D%223.0%22%20height%3D%2213.9%22%20rx%3D%221.5%22%20transform%3D%22rotate%28214%20219.8%20160.9%29%22%20fill%3D%22%23118AB2%22%20opacity%3D%220.4%22/%3E%3Crect%20x%3D%22163.9%22%20y%3D%22149.9%22%20width%3D%223.0%22%20height%3D%2213.3%22%20rx%3D%221.5%22%20transform%3D%22rotate%2857%20165.4%20156.6%29%22%20fill%3D%22%23EF476F%22%20opacity%3D%220.4%22/%3E%3Crect%20x%3D%2228.0%22%20y%3D%2218.1%22%20width%3D%223.0%22%20height%3D%2210.1%22%20rx%3D%221.5%22%20transform%3D%22rotate%28317%2029.5%2023.2%29%22%20fill%3D%22%23073B4C%22%20opacity%3D%220.4%22/%3E%3Crect%20x%3D%22120.2%22%20y%3D%22110.9%22%20width%3D%223.0%22%20height%3D%2210.9%22%20rx%3D%221.5%22%20transform%3D%22rotate%28303%20121.7%20116.3%29%22%20fill%3D%22%23073B4C%22%20opacity%3D%220.4%22/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 260px 260px;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; max-width: 62ch; }

a {
  color: var(--ink);
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a.plain { text-decoration: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.logo-full {
  height: 68px;
  width: auto;
  display: block;
}
.logo span { color: var(--coral); }

nav.main-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
nav.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--coral);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
}
.hero .eyebrow-plain {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 16ch;
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 50ch;
  color: #3B4A5A;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--paper);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
}
.btn-amazon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* Scalloped divider — signature element, used once per page */
.scallop {
  height: 26px;
  width: 100%;
  background-image: radial-gradient(circle at 13px 0, transparent 12px, var(--card) 12.5px);
  background-size: 26px 26px;
  background-repeat: repeat-x;
  margin: 8px 0 0;
}
.scallop-flip {
  height: 26px;
  width: 100%;
  background-image: radial-gradient(circle at 13px 26px, transparent 12px, var(--card) 12.5px);
  background-size: 26px 26px;
  background-repeat: repeat-x;
}

/* Section headings */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 64px 0 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.7rem; margin: 0; }
.section-head a { font-size: 0.95rem; font-weight: 600; white-space: nowrap; }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: 64px;
}
.post-grid.featured-first .post-card:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.post-card {
  background: var(--card);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.post-card .tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: #04946E;
  margin-bottom: 10px;
}
.post-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.post-grid.featured-first .post-card:first-child h3 {
  font-size: 1.8rem;
}
.post-card p {
  color: #45536280;
  color: #47566633;
  color: #47566699;
  font-size: 0.96rem;
  margin-bottom: 0;
}
.post-card .read-more {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Amazon strip */
.amazon-strip {
  background: var(--ocean);
  color: var(--paper);
  padding: 44px 0;
}
.amazon-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.amazon-strip h2 {
  color: var(--paper);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.amazon-strip p {
  color: #C7D0DA;
  margin-bottom: 0;
}

/* Invite cards */
.invite-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 64px;
}
.invite-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.invite-thumb {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  text-align: center;
  padding: 20px;
  color: var(--paper);
}
.invite-card .invite-body {
  padding: 18px 20px 22px;
}
.invite-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.invite-card p { font-size: 0.9rem; margin-bottom: 14px; }
.invite-card .btn { width: 100%; text-align: center; padding: 11px; }

/* Post page */
.post-header { padding: 56px 0 20px; }
.post-header .tag {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.9rem;
}
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 10px; }
.post-meta { color: #5b6b7b; font-size: 0.92rem; }
.post-body { padding: 24px 0 56px; max-width: 68ch; }
.post-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.post-body ul { padding-left: 1.2em; }
.post-body li { margin-bottom: 0.5em; }
.pullquote {
  border-left: 3px solid var(--coral);
  padding-left: 18px;
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-style: italic;
  margin: 1.8em 0;
  max-width: 56ch;
}

/* About */
.about-body { padding: 56px 0 64px; max-width: 65ch; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  margin-top: 40px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #5b6b7b;
}
footer a { color: #5b6b7b; }

/* Responsive */
@media (max-width: 860px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-grid.featured-first .post-card:first-child { grid-column: span 2; }
  .invite-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 4px;
    padding: 16px 28px 22px;
    z-index: 20;
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .site-header { position: relative; }
  .post-grid, .invite-grid { grid-template-columns: 1fr; }
  .post-grid.featured-first .post-card:first-child { grid-column: span 1; }
  .amazon-strip .wrap { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
