/* Given brand: the original givenlove.app palette and Nunito for the site,
   Hand (Bradley) only for anything that is a note or letter. */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap");
@font-face { font-family: "Hand"; src: url("/css/hand.ttf"); font-display: swap; }
:root {
  --cream: #fbf5ea; --paper: #fffdf8; --ink: #24342b; --muted: #68766c; --leaf: #588463;
  --green: #cce7cf; --mint: #e8f1e6; --pink: #f4b8c6; --yellow: #ffd064;
  --line: rgba(36, 52, 43, .12); --shadow: 0 28px 70px rgba(55, 74, 61, .16);
  --note-ink: #5a4e46; --note-line: #7b736c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "Nunito", "Avenir Next", "SF Pro Rounded", -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; font-weight: 800; color: #627167; text-transform: uppercase; }
h1, h2 { letter-spacing: -.055em; line-height: .95; text-wrap: balance; font-weight: 800; margin: 0; }
h1 em, h2 em { font-style: normal; color: var(--leaf); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 800; font-size: 17px; padding: 16px 26px; border: 0; border-radius: 18px; background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; box-shadow: 0 .7rem 1.6rem rgba(36, 52, 43, .22); transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); } .btn:active { transform: scale(.98); }
.btn.soft { background: var(--paper); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-size: 15px; padding: 11px 18px; border-radius: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; }
.letter { font-family: "Hand", cursive; color: var(--note-ink); background: var(--paper); border: 2px solid var(--note-line); border-radius: 18px; }
nav.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
/* in the app the webview already sits below the status bar, so only a little room is needed */
html.in-app nav.top { padding-top: 10px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -.04em; }
.logo img { width: 32px; height: 32px; border-radius: 10px; }
footer { padding: 36px 0 52px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }
footer a { margin: 0 10px; font-weight: 700; text-decoration: none; color: var(--ink); }
/* icons (Phosphor) and the arrows on swipeable rows */
.btn i, .own label i { font-size: 1.15em; }
.rowwrap { position: relative; }
.rowarrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 18px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(55, 74, 61, .16); }
.rowarrow.prev { left: -10px; } .rowarrow.next { right: -10px; }
.rowarrow:hover { background: var(--ink); color: #fff; }
.rowarrow[hidden] { display: none; }
@media (hover: none) { .rowarrow { display: none; } }
.navlinks { display: flex; align-items: center; gap: 22px; font-weight: 800; font-size: 15px; }
.navlinks a { text-decoration: none; color: var(--muted); } .navlinks a:hover { color: var(--ink); }
.navlinks i { font-size: 20px; }
@media (max-width: 520px) { .navlinks > a:not(.pluslink):not(.btn) { display: none; } .navlinks { gap: 14px; } }
.navlinks .pluslink { display: inline-flex; align-items: center; gap: 6px; background: var(--pink); color: var(--ink); padding: 8px 14px; border-radius: 999px; }
.navlinks .pluslink:hover { background: #f0a3b5; color: var(--ink); }
#account { display: flex; align-items: center; min-width: 28px; } #account .signin { display: inline-flex; align-items: center; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; }
#account .signin:hover { color: #fff; opacity: .9; }
.me-av img { width: 34px; height: 34px; border-radius: 12px; object-fit: cover; display: block; background: var(--pink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); }

/* nav: logo mark only, compact pills that never wrap */
.logo { font-size: 0; gap: 0; } .logo img { width: 38px; height: 38px; border-radius: 12px; }
.navlinks { gap: 10px; } .navlinks a, .navlinks .btn, #account .signin { white-space: nowrap; }
nav.top .btn.soft { padding: 9px 16px; font-size: 15px; border-radius: 999px; }
#account .signin { padding: 9px 16px; font-size: 15px; }
.me-av { position: relative; display: block; }
.me-av .crown { position: absolute; right: -6px; bottom: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-size: 12px; box-shadow: 0 0 0 2px var(--paper); }
/* the app's bottom tab bar (added by account.js only inside the iOS/Android app) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 800; }
.tabbar a i { font-size: 25px; }
.tabbar a.on { color: var(--ink); }
html.has-tabs body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }
/* the app draws edge to edge: pad under the status bar, cover it while scrolling, and don't rubber-band */
html.in-app, html.in-app body { overscroll-behavior: none; }
html.in-app body { padding-top: env(safe-area-inset-top); }
html.in-app body::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--cream); z-index: 70; }
html.has-tabs footer { display: none; }
html.has-tabs .sendbar { bottom: calc(64px + env(safe-area-inset-bottom)); }
