Skip to content

armgit / brag

Public Imported from GitHub
0

You built it. Now brag. Turn the project you just created into a short, shareable launch video with one command.

13.5 KB
Raw Blame
/* ============================================================
   Horse Tinder
   A 1970s dating app: cream paper, sunset stripes, chocolate
   ink and hot pink, Shrikhand for the romance. Thunder is drawn,
   and the same drawing plays Clover in other colors.
   ============================================================ */

:root {
  --cream: #fff4e6;
  --blush: #fde0cf;
  --ink: #3b1d12;
  --ink-soft: #6a4232;
  --pink: #ff4f7e;
  --pink-soft: #ffb3c6;
  --orange: #ff8a3d;
  --yellow: #ffc93c;
  --grass: #7fae5a;
  --grass-deep: #5b8c3e;

  --display: "Shrikhand", Georgia, serif;
  --sans: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
.eyebrow { margin: 0 0 12px; font-weight: 800; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pink); }

/* === The horse === */
.horse { --coat: #b5562b; --mane: #4a2314; --blaze: #fff4e6; --muzzle: #e7a37c; --flower: var(--pink); }
.h-neck, .h-head, .h-ear { fill: var(--coat); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.h-ear-back { filter: brightness(0.85); }
.h-mane { fill: var(--mane); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.h-blaze { fill: var(--blaze); }
.h-muzzle { fill: var(--muzzle); stroke: var(--ink); stroke-width: 5; }
.h-inner { fill: var(--muzzle); }
.h-line { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.h-dark { fill: var(--ink); }
.h-glint { fill: #fff; }
.h-cheek { fill: var(--pink-soft); opacity: 0.8; }
.h-petal { fill: var(--flower); stroke: var(--ink); stroke-width: 3; }
.h-core { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; }
.clover .horse { --coat: #f3efe6; --mane: #c9b28a; --blaze: #f3efe6; --muzzle: #e9c9b5; --flower: var(--yellow); }

.sh-shoe { fill: var(--pink); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.sh-inner { fill: var(--cream); stroke: var(--ink); stroke-width: 3; }
.sh-nail { fill: var(--ink); }

/* === Nav === */
.nav { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 22px clamp(20px, 4vw, 56px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 28px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; }
.nav-cta { background: var(--ink); color: var(--cream); font-weight: 700; padding: 11px 20px; border-radius: 999px; text-decoration: none; }
.nav-cta:hover { background: var(--pink); color: var(--ink); }

/* === Hero === */
.hero {
  position: relative;
  min-height: max(760px, 100svh);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 120px clamp(20px, 4vw, 56px) 150px;
  background: var(--blush);
}
.sunset { position: absolute; left: 72%; bottom: 60px; width: 0; height: 0; }
.sunset span { position: absolute; left: 0; bottom: 0; border-radius: 50% 50% 0 0; }
.sunset span:nth-child(1) { width: 1500px; height: 750px; margin-left: -750px; background: #ffd9c2; }
.sunset span:nth-child(2) { width: 1160px; height: 580px; margin-left: -580px; background: var(--yellow); }
.sunset span:nth-child(3) { width: 860px; height: 430px; margin-left: -430px; background: var(--orange); }
.sunset span:nth-child(4) { width: 580px; height: 290px; margin-left: -290px; background: var(--pink); }
.hill { position: absolute; left: -10%; right: -10%; bottom: 0; height: 190px; background: var(--grass); border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-top: 5px solid var(--ink); }

.hero-copy { position: relative; z-index: 3; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(60px, 7.6vw, 124px); line-height: 0.95; letter-spacing: -0.01em; }
.soulmare { color: var(--pink); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 6px 6px 0 var(--ink); }
.lede { max-width: 30ch; margin: 24px 0 30px; font-size: clamp(18px, 1.5vw, 22px); color: var(--ink-soft); font-weight: 500; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: grid; background: var(--ink); color: var(--cream); padding: 10px 22px 11px; border-radius: 14px; text-decoration: none; line-height: 1.1; box-shadow: 4px 4px 0 var(--pink); transition: transform 200ms var(--ease); }
.store:hover { transform: translateY(-3px) rotate(-1deg); }
.store-small { font-size: 12px; opacity: 0.8; }
.store-big { font-size: 20px; font-weight: 800; }
.rating { margin: 20px 0 0; font-weight: 600; color: var(--ink-soft); }
.stars { color: var(--pink); letter-spacing: 2px; }
.store:focus-visible, .nav-cta:focus-visible, .brand:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; }

/* The phone with Thunder's profile */
.hero-phone { position: relative; z-index: 3; justify-self: center; }
.phone {
  width: min(360px, 82vw);
  background: var(--cream);
  border: 6px solid var(--ink);
  border-radius: 44px;
  padding: 18px 16px 20px;
  box-shadow: 14px 14px 0 var(--ink);
  transform: rotate(3deg);
}
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px 14px; font-size: 13px; font-weight: 700; }
.phone-brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 400; font-size: 18px; }
.phone-brand svg { width: 22px; height: 22px; }
.phone-place { color: var(--ink-soft); text-align: right; }
.profile { border: 4px solid var(--ink); border-radius: 26px; overflow: hidden; background: #fff; }
.profile-photo { position: relative; background: radial-gradient(circle at 70% 30%, var(--yellow), var(--pink-soft) 60%, var(--pink)); aspect-ratio: 1 / 1; }
.profile-photo .horse { position: absolute; inset: 8% 0 0 2%; width: 96%; height: 92%; }
.distance { position: absolute; top: 12px; right: 12px; background: var(--ink); color: var(--cream); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.profile-body { padding: 14px 16px 16px; border-top: 4px solid var(--ink); }
.profile-name { font-family: var(--display); font-weight: 400; font-size: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verified { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; background: var(--grass); color: var(--ink); padding: 3px 8px; border-radius: 999px; border: 2px solid var(--ink); }
.profile-bio { margin: 6px 0 10px; font-size: 15px; color: var(--ink-soft); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--blush); border: 2px solid var(--ink); }
.swipe { display: flex; justify-content: center; gap: 28px; padding-top: 16px; }
.swipe-btn { width: 64px; height: 64px; border-radius: 50%; border: 4px solid var(--ink); font-size: 28px; font-weight: 800; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform 200ms var(--ease); }
.swipe-btn:hover { transform: scale(1.1); }
.nope { background: #fff; color: var(--ink); }
.like { background: var(--pink); color: var(--cream); }
.sticker {
  position: absolute;
  left: -22%;
  top: 38%;
  margin: 0;
  font-family: var(--display);
  font-size: 34px;
  background: var(--yellow);
  border: 4px solid var(--ink);
  padding: 8px 20px 12px;
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-10deg);
  white-space: nowrap;
  animation: pop 2.6s var(--ease) infinite;
}
@keyframes pop { 0%, 70%, 100% { transform: rotate(-10deg) scale(1); } 80% { transform: rotate(-6deg) scale(1.08); } }
.float-heart { position: absolute; color: var(--pink); font-size: 40px; -webkit-text-stroke: 2px var(--ink); animation: rise 4s ease-in-out infinite; }
.f1 { right: -12%; top: 10%; }
.f2 { right: -4%; top: 44%; font-size: 28px; animation-delay: 1.2s; }
.f3 { left: -8%; top: 8%; font-size: 30px; animation-delay: 2.1s; }
@keyframes rise { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-18px) rotate(8deg); } }

/* === Features === */
.features { padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 56px); max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; }
.features h2, .download h2 { font-family: var(--display); font-weight: 400; font-size: clamp(44px, 5.6vw, 88px); line-height: 1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.feature { background: #fff; border: 4px solid var(--ink); border-radius: 28px; padding: 26px; box-shadow: 8px 8px 0 var(--pink); }
.feature:nth-child(2) { box-shadow: 8px 8px 0 var(--orange); transform: rotate(1deg); }
.feature:nth-child(3) { box-shadow: 8px 8px 0 var(--grass); }
.feature-art { width: 100%; height: auto; background: var(--blush); border: 3px solid var(--ink); border-radius: 18px; margin-bottom: 18px; }
.fa-hill { fill: var(--grass); }
.fa-fence { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.fa-pin { fill: var(--pink); stroke: var(--ink); stroke-width: 3.5; }
.fa-dot { fill: var(--cream); stroke: var(--ink); stroke-width: 3; }
.fa-bale { fill: var(--yellow); stroke: var(--ink); stroke-width: 4; }
.fa-straw { fill: none; stroke: #d9a21f; stroke-width: 3; stroke-linecap: round; }
.fa-twine { fill: none; stroke: var(--ink); stroke-width: 4; }
.fa-heart { fill: var(--pink); stroke: var(--ink); stroke-width: 3; }
.fa-badge { fill: var(--grass); stroke: var(--ink); stroke-width: 4; }
.fa-check { fill: none; stroke: var(--cream); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.fa-ribbon { fill: var(--pink); stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; }
.feature h3 { font-size: 24px; font-weight: 800; line-height: 1.15; }
.feature p { margin: 8px 0 0; color: var(--ink-soft); font-size: 17px; }

/* === Match of the day + stats === */
.match { background: var(--pink); border-block: 5px solid var(--ink); padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.match-card { background: var(--cream); border: 5px solid var(--ink); border-radius: 32px; padding: 32px; box-shadow: 12px 12px 0 var(--ink); text-align: center; transform: rotate(-2deg); max-width: 620px; justify-self: end; width: 100%; }
.match-pair { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 18px; }
.match-face { width: 40%; aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--ink); overflow: hidden; background: var(--yellow); position: relative; }
.match-face .horse { position: absolute; inset: 12% 0 -6% -6%; width: 110%; height: 100%; }
.match-face.clover { background: var(--pink-soft); }
.match-face.clover .horse { transform: scaleX(-1); }
.match-heart { font-size: 54px; color: var(--pink); -webkit-text-stroke: 3px var(--ink); }
.match-card h2 { font-family: var(--display); font-weight: 400; font-size: 44px; }
.match-card h2 span { color: var(--pink); }
.match-card p:not(.eyebrow) { margin: 8px 0 0; font-size: 18px; color: var(--ink-soft); }
.stats { margin: 0; display: grid; gap: 22px; }
.stats div { border-left: 6px solid var(--ink); padding-left: 20px; }
.stats dt { font-family: var(--display); font-size: clamp(52px, 6vw, 92px); line-height: 1; color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }

/* === Quote === */
.quote { padding: clamp(80px, 10vw, 140px) clamp(20px, 4vw, 56px); }
.quote blockquote { margin: 0 auto; max-width: 1080px; text-align: center; }
.quote p { margin: 0; font-family: var(--display); font-size: clamp(34px, 4.6vw, 70px); line-height: 1.12; }
.quote footer { margin-top: 24px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink); }

/* === Download === */
.download { background: var(--yellow); border-top: 5px solid var(--ink); text-align: center; padding: clamp(80px, 10vw, 140px) 20px; }
.download p { font-size: 20px; font-weight: 600; margin: 18px 0 30px; }
.stores-center { justify-content: center; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; padding: 26px clamp(20px, 4vw, 56px); background: var(--ink); color: var(--cream); font-weight: 600; }
.footer .brand { color: var(--cream); font-size: 22px; }
.footer .brand-mark { width: 30px; height: 30px; }

/* === Narrow screens === */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 110px; }
  .sunset { bottom: 40px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(2) { transform: none; }
  .match { grid-template-columns: minmax(0, 1fr); }
  .match-card { justify-self: center; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats div { border-left-width: 4px; padding-left: 12px; }
}
@media (max-width: 560px) {
  .brand { font-size: 23px; }
  .sticker { left: -4%; top: 58%; font-size: 26px; }
  .phone-top { font-size: 11px; }
  .phone-brand { font-size: 16px; }
  .f1 { right: -2%; }
  .f3 { left: 0; }
  .stats { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}