:root {
  --burgundy: #912d4d;
  --pink: #fd58b1;
  --white: #ffffff;
  --ink: #000000;
  --border: rgba(145, 45, 77, 0.14);
  --heading: "Fredoka", ui-sans-serif, system-ui, sans-serif;
  --body: "Nunito", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; overflow-x: hidden; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--heading); font-weight: 600; line-height: 1.08; }
h1 { font-size: clamp(2.25rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 1.25rem 0 0; }
:focus-visible { outline: 3px dashed var(--pink); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.narrow { max-width: 56rem; }
.center { text-align: center; }
.section { position: relative; padding-block: clamp(4rem, 8vw, 6rem); }
.white-section { background: var(--white); }
.bordered-section { border-top: 1px solid var(--border); }
.pink-section { background: var(--pink); }
.burgundy-section { background: var(--burgundy); color: var(--white); }
.burgundy-section h2 { color: var(--white); }
.section-label { display: inline-block; margin: 0 0 1rem; color: var(--pink); font-family: var(--heading); font-size: .875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.light-label { color: var(--white); }
.section-intro { max-width: 48rem; }
.section-intro > p:last-child { font-size: 1.125rem; }
.strong { font-weight: 700; }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; border-bottom: 1px solid var(--border); background: var(--white); transition: box-shadow .25s ease; }
.site-header.scrolled { box-shadow: 0 2px 12px rgba(145, 45, 77, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; min-height: 3rem; font-family: var(--heading); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; line-height: 1; }
.brand img { width: 3rem; height: 3rem; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 .75rem; border-radius: 999px; font-weight: 700; font-size: 1rem; transition: color .2s; }
.desktop-nav a:hover, .footer-nav a:hover { color: var(--burgundy); }
.menu-button { display: none; width: 3rem; height: 3rem; padding: .7rem; border: 2px solid var(--burgundy); border-radius: 999px; background: var(--white); }
.menu-button span { display: block; height: 2px; margin: 4px 0; border-radius: 1px; background: var(--burgundy); transition: transform .2s, opacity .2s; }
.menu-button.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-button.open span:nth-child(2) { opacity: 0; }
.menu-button.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { padding: 0 1.25rem 1.25rem; background: var(--white); }
.mobile-nav a:not(.button) { display: flex; align-items: center; min-height: 3rem; padding-inline: 1rem; border-radius: 1rem; font-weight: 700; }
.mobile-nav .button { width: 100%; margin-top: .5rem; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: 0 1.75rem; border: 2px solid transparent; border-radius: 999px; font-weight: 800; font-size: 1.0625rem; text-align: center; transition: transform .2s ease, box-shadow .2s ease, color .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-burgundy { background: var(--burgundy); color: var(--white); box-shadow: 0 6px 18px rgba(145, 45, 77, .22); }
.button-burgundy:hover { box-shadow: 0 10px 24px rgba(145, 45, 77, .28); }
.button-outline { border-color: var(--burgundy); background: var(--white); color: var(--burgundy); }
.button-outline:hover { background: var(--burgundy); color: var(--white); }
.button-pink { background: var(--pink); color: var(--ink); box-shadow: 0 6px 18px rgba(253, 88, 177, .25); }
.button-white { margin-top: 2rem; background: var(--white); color: var(--burgundy); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.button-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.centered-buttons { justify-content: center; }

.hero { position: relative; overflow: hidden; padding: 9rem 0 7rem; }
.notebook-paper { background-color: var(--white); background-image: linear-gradient(to bottom, transparent 33px, rgba(253,88,177,.22) 34px); background-size: 100% 34px; }
.notebook-paper::before { content: ""; position: absolute; inset: 0 auto 0 4.5rem; width: 2px; background: rgba(145,45,77,.22); }
.hero-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: center; gap: 4rem; }
.hero-text { max-width: 38rem; font-size: clamp(1.125rem, 2vw, 1.25rem); }
.hero-tagline { font-family: var(--heading); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 600; }
.hero-tagline b { color: var(--pink); }
.underlined { position: relative; display: inline-block; white-space: nowrap; }
.underlined::after { content: ""; position: absolute; left: 0; bottom: -.25rem; width: 100%; height: .45rem; border-top: 3px solid var(--pink); border-radius: 50%; transform: rotate(-1deg); }
.hero-art { display: flex; justify-content: flex-end; }
.logo-composition { position: relative; width: min(21.25rem, 78vw); }
.logo-sheet { position: relative; z-index: 2; padding: clamp(1.5rem, 4vw, 2rem); border: 2px solid var(--ink); border-radius: .5rem; background: var(--white); box-shadow: 0 18px 40px rgba(0,0,0,.12); transform: rotate(-3deg); }
.paper-tape { position: absolute; top: -.75rem; left: -.75rem; width: 3.5rem; height: 1.35rem; border: 2px solid var(--ink); border-radius: 2px; background: rgba(253,88,177,.9); transform: rotate(-18deg); }
.hero-crayon { position: absolute; z-index: 1; left: -1.25rem; bottom: -.9rem; width: 4.4rem; transform: rotate(-8deg); }
.hero-pencil { position: absolute; z-index: 3; top: -3rem; right: -.75rem; width: 3.5rem; animation: float 7s ease-in-out infinite; }
.rise { animation: rise .7s ease-out both; }

.community-grid, .about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 7vw, 4rem); }
.community-list-wrap { position: relative; }
.pushpin { position: absolute; z-index: 2; top: -1.5rem; left: .25rem; width: 1.75rem; }
.numbered-list, .feature-list { margin: 0; padding: 0; list-style: none; }
.numbered-list li { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(145,45,77,.2); }
.numbered-list li:last-child { border-bottom: 0; }
.numbered-list li > span { flex: 0 0 3rem; color: var(--pink); font-family: var(--heading); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.numbered-list p, .feature-list p, .post-copy p { margin-top: .5rem; font-size: 1rem; }
.accent-row { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.curve { display: block; width: 5rem; height: 1.5rem; border-top: 3px solid var(--pink); border-radius: 50%; transform: rotate(-7deg); }
.dot-row { display: flex; align-items: center; gap: .5rem; }
.dot-row i { width: .5rem; height: .5rem; border-radius: 50%; background: var(--pink); }
.corner-protractor { position: absolute; right: 1.5rem; bottom: 1.5rem; width: 7rem; transform: rotate(12deg); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; margin-top: 3rem; align-items: stretch; }
.post-card { display: flex; flex-direction: column; min-width: 0; padding: 1.25rem; border: 2px solid var(--burgundy); border-radius: 1rem; background: var(--white); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.instagram-media { width: 100% !important; min-width: 0 !important; max-width: 100% !important; margin: 0 !important; border: 0 !important; background: var(--white); text-align: center; }
.instagram-media > a { display: flex; align-items: center; justify-content: center; min-height: 12rem; color: var(--burgundy); font-weight: 800; }
.post-copy { margin-top: auto; padding-top: 1rem; }
.post-copy > a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; margin-top: 1rem; padding: 0 1.25rem; border: 2px solid var(--burgundy); border-radius: 999px; color: var(--burgundy); font-size: .875rem; font-weight: 800; }

.find-grid { display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 2rem; margin-top: 3rem; }
.feature-list li { padding: 1.5rem 0; border-bottom: 1px solid rgba(145,45,77,.2); }
.feature-list li:last-child { border-bottom: 0; }
.desk-art { position: relative; width: min(18.75rem, 82vw); height: min(20rem, 62vw); margin: auto; }
.desk-art img { position: absolute; height: auto; object-fit: contain; }
.desk-notebook { z-index: 2; left: 50%; top: 50%; width: 13.1rem; transform: translate(-50%,-50%) rotate(-3deg); }
.desk-sharpener { z-index: 3; bottom: 0; left: 0; width: 4rem; transform: rotate(-10deg); }
.desk-eraser { z-index: 3; top: .25rem; right: 0; width: 4rem; transform: rotate(12deg); }
.desk-triangle { z-index: 1; top: -.5rem; left: .5rem; width: 5rem; transform: rotate(-8deg); }
.desk-ruler { z-index: 3; right: -.5rem; bottom: .75rem; width: 4rem; transform: rotate(8deg); }

.burgundy-section .section-label { color: var(--pink); }
.about-grid { grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; }
.large-heading { font-size: clamp(2rem, 5vw, 3.4rem); }
.question-section .button { margin-top: 2rem; }
.privacy-note { font-size: .875rem; }
.frame-wrap { position: relative; width: min(31.25rem, 100%); margin: 1.25rem auto 0; }
.frame-wrap h2 { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 2rem 3.5rem 1rem; font-size: clamp(1.5rem, 5vw, 2rem); }
.follow-copy { max-width: 42rem; margin-inline: auto; }
.centered-dots { justify-content: center; margin-top: 2.5rem; }

.site-footer { padding: 3rem 0 2.5rem; border-top: 1px solid var(--border); }
.footer-logo { width: 4rem; height: 4rem; margin: 0 auto 1rem; object-fit: contain; }
.footer-name { margin: 0; font-family: var(--heading); font-size: 1.25rem; font-weight: 600; }
.footer-tagline { margin-top: .25rem; color: var(--pink); font-family: var(--heading); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 1.5rem; font-weight: 800; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-legal { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(145,45,77,.12); font-size: 1rem; }
.footer-legal p:first-child { margin: 0; }
.footer-legal p:last-child { max-width: 42rem; margin: .75rem auto 0; font-size: .875rem; }

@keyframes rise { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: rotate(14deg) translateY(0); } 50% { transform: rotate(14deg) translateY(-.5rem); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-button { display: block; }
  .community-grid { grid-template-columns: 5fr 7fr; }
}

@media (max-width: 820px) {
  .header-cta { display: none; }
  .hero { padding: 8rem 0 5rem; }
  .hero-grid, .community-grid, .about-grid, .find-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { text-align: center; }
  .hero-copy .button-row { justify-content: center; }
  .hero-art { justify-content: center; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { max-width: 34rem; width: 100%; margin-inline: auto; }
  .find-grid .feature-list { order: 2; }
  .desk-art { order: 1; }
  .corner-protractor { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 2rem, 72rem); }
  .brand span { max-width: 10rem; }
  .button-row { flex-direction: column; }
  .button-row .button { width: 100%; }
  .hero-crayon, .hero-pencil, .desk-triangle, .desk-ruler { display: none; }
  .notebook-paper::before { left: 1.75rem; }
  .frame-wrap h2 { padding-inline: 2rem; }
}
