:root {
  color-scheme: light;
  --cream: #f8f2e8;
  --paper: #fffdf8;
  --ink: #26352f;
  --muted: #65726c;
  --sage: #cad9ca;
  --sage-deep: #6f8b79;
  --blush: #f0d6cf;
  --lavender: #ded8e9;
  --sky: #d7e5e9;
  --gold: #d8ad61;
  --border: rgba(38, 53, 47, .13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  place-content: center;
  justify-items: center;
  overflow: hidden;
  padding: 5rem 1rem 6rem;
  text-align: center;
  background:
    radial-gradient(circle at 12% 30%, rgba(222, 216, 233, .72), transparent 27rem),
    radial-gradient(circle at 88% 65%, rgba(202, 217, 202, .76), transparent 26rem),
    var(--cream);
}

.sun-glow { position: absolute; top: -13rem; width: 31rem; height: 31rem; border-radius: 50%; background: rgba(255, 244, 198, .42); filter: blur(12px); }
.hero > *:not(.sun-glow) { position: relative; }
.eyebrow { margin: 0 0 1.25rem; color: var(--sage-deep); font-size: .73rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; }
h1 { max-width: 800px; font-size: clamp(3.6rem, 11vw, 7.5rem); line-height: .87; }
h1 em { color: var(--sage-deep); font-weight: 400; }
.lede { max-width: 620px; margin: 2rem auto 2.2rem; color: var(--muted); font-size: clamp(1rem, 2.1vw, 1.18rem); line-height: 1.75; }

.commitment-card { width: min(100%, 590px); padding: 1.15rem; text-align: left; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,253,248,.86); box-shadow: 0 24px 70px rgba(61, 78, 68, .12); backdrop-filter: blur(14px); }
.commitment-card label { display: block; margin: .1rem .35rem .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; }
.commitment-card textarea { width: 100%; resize: vertical; min-height: 116px; padding: 1rem; border: 1px solid var(--border); border-radius: 15px; outline: none; background: #fff; color: var(--ink); line-height: 1.55; }
.commitment-card textarea:focus { border-color: var(--sage-deep); box-shadow: 0 0 0 4px rgba(111, 139, 121, .13); }
.commitment-card textarea::placeholder { color: #a6aaa5; }
.form-meta { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .35rem .75rem; color: var(--muted); font-size: .72rem; }
.commitment-card button, .share-actions button { width: 100%; border: 0; border-radius: 999px; padding: .95rem 1.2rem; background: var(--ink); color: #fff; cursor: pointer; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.commitment-card button:hover, .share-actions button:hover { transform: translateY(-1px); background: #40534b; }
.commitment-card button:disabled { cursor: wait; opacity: .62; transform: none; }
.form-disclaimer { margin: .45rem .35rem 0; color: var(--muted); font-size: .72rem; line-height: 1.35; text-align: center; }
.form-status { min-height: 1.2em; margin: .35rem .35rem 0; color: #8b3f3b; font-size: .82rem; }
.scroll-cue { position: absolute!important; bottom: 1.15rem; display: grid; justify-items: center; gap: .15rem; color: var(--sage-deep); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.scroll-cue:hover { color: var(--ink); }
.scroll-cue:focus-visible { border-radius: 8px; outline: 3px solid rgba(111, 139, 121, .28); outline-offset: 5px; }
.scroll-cue__arrow { font-size: 1.2rem; line-height: 1; animation: scroll-nudge 1.8s ease-in-out infinite; }
@keyframes scroll-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.community { scroll-margin-top: 1rem; padding: 6.5rem 0 7.5rem; overflow: hidden; background: var(--paper); }
.section-heading { width: min(100% - 2rem, 780px); margin: 0 auto 3.3rem; text-align: center; }
.section-heading h2, .about h2 { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .98; }
.feed { display: grid; gap: 1rem; }
.lane { display: flex; width: max-content; gap: 1rem; animation: drift-left var(--duration, 48s) linear infinite; }
.lane.reverse { animation-name: drift-right; transform: translateX(-50%); }
.lane:hover, .lane:focus-within { animation-play-state: paused; }
.bubble { width: clamp(230px, 30vw, 390px); min-height: 118px; display: grid; place-content: center; padding: 1.3rem 1.6rem; border: 1px solid rgba(38,53,47,.07); border-radius: 34px 34px 34px 10px; color: #34463e; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.38; box-shadow: 0 8px 30px rgba(64, 84, 73, .06); }
.bubble:nth-child(4n+1) { background: #e5eee4; }
.bubble:nth-child(4n+2) { background: #f5e3de; }
.bubble:nth-child(4n+3) { background: #e8e3f0; }
.bubble:nth-child(4n) { background: #e4eff1; }
.idea-state { width: min(100% - 2rem, 760px); margin: auto; padding: 2rem; border: 1px solid var(--border); border-radius: 28px; text-align: center; background: #fff; }
.idea-state > p { margin-top: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.idea-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; margin-bottom: 1rem; }
.idea-pills span { padding: .65rem .85rem; border-radius: 999px; background: var(--cream); font-size: .85rem; }
.idea-state small { color: var(--muted); }
@keyframes drift-left { to { transform: translateX(-50%); } }
@keyframes drift-right { to { transform: translateX(0); } }

.encouragement { padding: 7rem 1rem; text-align: center; background: var(--sage); }
.ornament { color: var(--sage-deep); font-size: 1.5rem; }
.encouragement blockquote { max-width: 830px; margin: 1.2rem auto; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 4.1rem); line-height: 1.15; letter-spacing: -.035em; }
.attribution { margin: 0; color: #52665b; font-size: .8rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; width: min(100% - 2rem, 1050px); margin: auto; padding: 7rem 0; }
.about-copy { align-self: end; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.about-copy p:last-child { margin-bottom: 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem max(1rem, calc((100% - 1050px)/2)); border-top: 1px solid var(--border); color: var(--muted); font-size: .78rem; }
footer a { color: inherit; }
.wordmark { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1rem; text-decoration: none; }

.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 1rem; background: rgba(30, 42, 36, .68); backdrop-filter: blur(8px); }
.modal-card { position: relative; width: min(100%, 560px); max-height: calc(100vh - 2rem); overflow: auto; padding: 2rem; border-radius: 28px; background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.modal-card h2 { font-size: 2.6rem; }
.modal-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.close-button { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--cream); color: var(--ink); cursor: pointer; font-size: 1.5rem; }
#share-canvas { display: block; width: min(100%, 320px); height: auto; margin: 1.4rem auto; border-radius: 16px; box-shadow: 0 10px 30px rgba(38,53,47,.15); }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.share-actions .button-secondary { border: 1px solid var(--border); background: #fff; color: var(--ink); }
.share-actions .button-secondary:hover { background: var(--cream); }

@media (max-width: 700px) {
  .hero { min-height: auto; padding: 1.65rem .8rem 2rem; }
  .hero .eyebrow { margin-bottom: .65rem; }
  h1 { font-size: clamp(2.75rem, 13vw, 3.5rem); line-height: .88; }
  h1 em { white-space: nowrap; }
  .lede { margin: .8rem auto .7rem; font-size: .9rem; line-height: 1.45; }
  .commitment-card { margin-top: .75rem; padding: .8rem; border-radius: 20px; }
  .commitment-card label { margin-bottom: .5rem; font-size: 1.08rem; }
  .commitment-card textarea { min-height: 72px; padding: .75rem; }
  .form-meta { padding: .45rem .3rem .6rem; }
  .commitment-card button { padding: .75rem 1rem; }
  .scroll-cue { position: static!important; display: grid; gap: .05rem; margin-top: .75rem; padding: .2rem .5rem; }
  .scroll-cue__arrow { font-size: 1.35rem; }
  .community { padding: 3.75rem 0 5rem; }
  .section-heading { margin-bottom: 2rem; }
  .about { grid-template-columns: 1fr; gap: 2rem; padding: 5rem 0; }
  footer { justify-content: center; text-align: center; }
  footer p { margin: 0; }
  .modal-card { padding: 1.5rem; }
  .share-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed { overflow-x: auto; padding: 0 1rem 1rem; }
  .lane, .lane.reverse { animation: none; transform: none; }
  .lane[aria-hidden="true"] { display: none; }
  .scroll-cue__arrow { animation: none; }
}
