/* joygivers website styles. Brand: see BRAND.md in the app (good-turn). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --night: #1b1a3a;
  --lyme: #2bd47d;
  --lyme-dark: #187042;
  --butter: #ffd84d;
  --mint: #9fe3c1;
  --turnip: #6c47d9;
  --paper: #f4f1ea;
  --white: #ffffff;
  --soft: #4b4a66;
  --display: "Bricolage Grotesque", Arial, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--night);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--butter); padding: 8px 12px; border: 3px solid var(--night); border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--turnip); outline-offset: 3px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 3px solid var(--night); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { width: 150px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--mint); }
.menu { display: none; }
@media (max-width: 899px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 700; border: 3px solid var(--night); border-radius: 12px; padding: 6px 14px; background: var(--white); box-shadow: 3px 3px 0 var(--night); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .menu-list { display: flex; }
  .menu-list { display: none; flex-direction: column; position: absolute; right: 0; top: calc(100% + 10px); background: var(--white); border: 3px solid var(--night); border-radius: 16px; box-shadow: 5px 5px 0 var(--night); padding: 8px; min-width: 220px; }
  .menu-list a { text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 10px; }
  .menu-list a:hover, .menu-list a[aria-current="page"] { background: var(--mint); }
}

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-family: var(--display); font-size: 1.1rem; border: 3px solid var(--night); border-radius: 14px; padding: 10px 20px; box-shadow: 4px 4px 0 var(--night); background: var(--white); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--night); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--night); }
.btn-primary { background: var(--lyme); }
.btn-small { font-size: 1rem; padding: 6px 14px; box-shadow: 3px 3px 0 var(--night); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* Sections */
section { padding: 56px 0; }
@media (min-width: 700px) { section { padding: 80px 0; } }
.band-white { background: var(--white); border-top: 3px solid var(--night); border-bottom: 3px solid var(--night); }
.band-mint { background: var(--mint); border-top: 3px solid var(--night); border-bottom: 3px solid var(--night); }
.band-night { background: var(--night); color: var(--paper); }
.band-night .btn { color: var(--night); }
.lead { font-size: 1.25rem; color: var(--soft); max-width: 40em; }
.band-night .lead { color: #d9d6ec; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lyme-dark); margin-bottom: 10px; }

/* Hero */
.hero { padding-top: 48px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.2fr 1fr; } }
.hero h1 .hl { background: linear-gradient(transparent 58%, var(--butter) 58%); padding: 0 4px; }
.hero-art { position: relative; justify-self: center; width: min(100%, 380px); }
.hero-art .mark { width: 70%; margin: 0 auto; }
.sticker { position: absolute; font-family: var(--display); font-weight: 800; border: 3px solid var(--night); border-radius: 999px; padding: 8px 16px; box-shadow: 4px 4px 0 var(--night); white-space: nowrap; }
.sticker.s1 { background: var(--butter); top: 4%; left: 0; transform: rotate(-8deg); }
.sticker.s2 { background: var(--white); bottom: 18%; right: 0; transform: rotate(6deg); }
.sticker.s3 { background: var(--mint); bottom: 0; left: 8%; transform: rotate(-3deg); }

/* Cards */
.grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--white); border: 3px solid var(--night); border-radius: 18px; box-shadow: 5px 5px 0 var(--night); padding: 22px; color: var(--night); }
.card p:last-child { margin-bottom: 0; }
.card .emoji { font-size: 2.2rem; line-height: 1; margin-bottom: 12px; display: block; }
.card .num { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 3px solid var(--night); border-radius: 50%; background: var(--butter); font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
a.card { text-decoration: none; display: block; transition: transform .08s, box-shadow .08s; }
a.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--night); }
a.card .more { font-weight: 700; color: var(--lyme-dark); }

/* Milestone stamps */
.stamps { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 28px 0; padding: 0; list-style: none; }
.stamp { width: 96px; height: 96px; border: 3px dashed var(--night); border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--white); font-family: var(--display); font-weight: 800; line-height: 1.05; }
.stamp:nth-child(odd) { transform: rotate(-6deg); }
.stamp:nth-child(even) { transform: rotate(5deg); background: var(--butter); }
.stamp small { display: block; font-size: 0.75rem; font-weight: 600; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border: 3px solid var(--night); border-radius: 6px; background: var(--lyme); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 6px; height: 10px; border: solid var(--night); border-width: 0 3px 3px 0; transform: rotate(45deg); }

.quote { font-family: var(--display); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; line-height: 1.3; border-left: 6px solid var(--lyme); padding-left: 18px; margin: 0 0 24px; }
.note { background: var(--butter); border: 3px solid var(--night); border-radius: 16px; padding: 16px 20px; box-shadow: 4px 4px 0 var(--night); }
.note p:last-child { margin: 0; }
.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.center .btns { justify-content: center; }

/* Page header (inner pages) */
.page-head { padding: 48px 0 40px; }
.page-head .emoji { font-size: 3rem; line-height: 1; display: block; margin-bottom: 12px; }

/* Footer */
.site-footer { background: var(--night); color: var(--paper); padding: 48px 0 32px; }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer img { width: 170px; margin-bottom: 14px; }
.site-footer h3 { font-size: 1rem; color: var(--butter); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--paper); }
.site-footer .small { font-size: 0.9rem; color: #c9c6dd; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #3a3960; padding-top: 18px; }
