/* dewble.com's own page (templates/dewble_home.html). Red Ribbon's design language (drifting
   gradients cut by sharp slanted edges) in green, with a soft, bouncy mascot; everything else
   is sharp and editorial: rules, numbers, big type, square edges, hovers that change colour only.
   The one red thing is the Red Ribbon showcase, in Red Ribbon's own band. */

:root {
  --ink: #0d2716;
  --text: #3a5243;
  --muted: #64786b;
  --hair: rgb(13 39 22 / .12);
  --green: #2f9e44;
  --green-dark: #17672e;
  --lime: #e4ff9a;
  /* How far each slanted edge drops across the window: the hero's bottom, the showcase's top and bottom, the contact's top. */
  --slant: clamp(50px, 7vw, 110px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: #fff; overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background: #fff; overflow-x: clip;
  font: 400 17px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.03em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; margin: 0 0 .8em; }
h3 { font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; margin: 0 0 8px; }
strong { color: var(--ink); font-weight: 700; }
a { -webkit-tap-highlight-color: transparent; }

/* ---------- soft drifting shapes behind the coloured sections ---------- */
.goo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.goo i { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .7; animation: float 18s ease-in-out infinite alternate; }
.goo i:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -18vw; background: #d6f986; }
.goo i:nth-child(2) { width: 34vw; height: 34vw; right: -6vw; top: 8%; background: #5fe07a; animation-duration: 22s; animation-delay: -6s; }
.goo i:nth-child(3) { width: 28vw; height: 28vw; left: 34%; bottom: -14vw; background: #0f7a3a; opacity: .8; animation-duration: 26s; animation-delay: -12s; }
.goo i:nth-child(4) { width: 18vw; height: 18vw; left: 52%; top: 4%; background: #fff7a8; opacity: .35; animation-duration: 15s; animation-delay: -3s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 3vw) scale(1.12); }
  100% { transform: translate(-3vw, 6vw) scale(.92); }
}

/* ---------- hero: deep green, a sharp slant at the bottom ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; padding-bottom: clamp(90px, 12vw, 160px);
  background: linear-gradient(120deg, #0b4a22, #15803a 30%, #39b54a 55%, #1c8c3e 75%, #0d5527);
  background-size: 250% 250%; animation: drift 20s ease-in-out infinite alternate;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--slant)));
}
@keyframes drift { from { background-position: 0% 40%; } to { background-position: 100% 60%; } }
.hero > .goo { z-index: -1; }
/* A faint grid of dots, a little texture over the gradient. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .12;
  background: radial-gradient(circle, #fff 1px, transparent 1.5px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
header { display: flex; align-items: center; justify-content: center; gap: 16px; padding: calc(22px + env(safe-area-inset-top)) 0 12px; }
/* Plain words: no glass behind them (a backdrop blur over the moving gradient flickers). */
nav { display: flex; gap: 28px; }
nav a {
  position: relative; padding: 6px 0; color: rgb(255 255 255 / .85); font-size: 15px; font-weight: 600; text-decoration: none;
  transition: color .15s;
}
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
nav a:hover { color: #fff; }
nav a:hover::after { transform: scaleX(1); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px; padding-top: clamp(24px, 5vw, 64px); }
.hero h1 {
  margin: 0; color: #fff; font-size: clamp(4.2rem, 13vw, 9.5rem); font-weight: 850; letter-spacing: -.065em; line-height: .9;
  text-shadow: 0 10px 40px rgb(0 40 15 / .3);
}
.tagline { max-width: 22ch; margin: 22px 0 0; font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: rgb(255 255 255 / .92); }
.tagline em { font-style: normal; color: var(--lime); }

/* ---------- buttons: square-edged, colour-only hovers ---------- */
.btn {
  display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 4px; font-weight: 700; font-size: 16px; letter-spacing: -.005em;
  text-decoration: none; transition: background-color .15s, color .15s, box-shadow .15s;
}
.btn-white { color: var(--green-dark); background: #fff; }
.btn-white:hover { color: #fff; background: var(--ink); }
.btn-line { color: #fff; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .75); }
.btn-line:hover { color: var(--green-dark); background: #fff; box-shadow: inset 0 0 0 2px #fff; }

/* ---------- the mascot ---------- */
.mascot { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: center; width: 100%; }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgb(230 255 150 / .5), rgb(120 230 100 / .18) 60%, transparent); animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }
.blob {
  all: unset; position: absolute; inset: 6%; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: translate(var(--lx, 0), var(--ly, 0)) rotate(var(--lr, 0deg)); transition: transform .5s cubic-bezier(.2, .9, .3, 1.2);
}
.blob img { width: 100%; height: 100%; animation: bob 4.5s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgb(0 40 15 / .35)); }
.blob.boing img { animation: boing .7s cubic-bezier(.3, 1.6, .5, 1), bob 4.5s ease-in-out .7s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-3deg) scale(1, 1); } 50% { transform: translateY(-18px) rotate(3deg) scale(.98, 1.02); } }
@keyframes boing { 0% { transform: scale(1, 1); } 25% { transform: scale(1.18, .8); } 50% { transform: scale(.88, 1.14); } 75% { transform: scale(1.06, .95); } 100% { transform: scale(1, 1); } }
.blob-shadow { position: absolute; left: 22%; right: 22%; bottom: 0; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 30 10 / .4), transparent); animation: squash 4.5s ease-in-out infinite; }
@keyframes squash { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.78); opacity: .55; } }

/* ---------- intro ---------- */
/* Centred between the hero's slant and the showcase's, an even gap above and below where the two meet the
   middle of the window (each slant is half its drop there). */
.intro { margin-top: calc(var(--slant) / -2); padding-block: clamp(36px, 5vw, 64px); text-align: center; }
.intro p { max-width: 38ch; margin: 0 auto; color: var(--ink); font-size: clamp(1.35rem, 2.7vw, 2rem); font-weight: 650; line-height: 1.3; letter-spacing: -.025em; }
.intro strong { color: #c8102e; }

/* ---------- the Red Ribbon showcase: its band's colours, cut on the same slant as the sections ---------- */
.showcase {
  position: relative; isolation: isolate; display: block; margin-top: calc(var(--slant) / -2);
  padding: calc(var(--slant) + clamp(28px, 4vw, 48px)) 0; overflow: hidden; color: #475569; text-decoration: none;
  /* Under the band's fades: warm autumn tones, not white, so the slice stays coloured edge to edge. */
  background: linear-gradient(20deg, #f9b06a, #f68a4e 45%, #ee6640);
  /* The same slant top and bottom, edge to edge. */
  clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
/* Red Ribbon's own band (coat.css body::before): its colours, its 48 s drift started from the clock so it
   matches getredribbon.com's, and its two fades toward the bottom left, where the words are (onto the
   showcase's own warm gradient here, not white). */
.showcase-band {
  --fade: linear-gradient(to bottom, #000 0px, rgb(0 0 0 / .6) calc(var(--slant) + 150px), transparent calc(var(--slant) + 360px)), linear-gradient(to left, #000 0%, rgb(0 0 0 / .6) 30%, transparent 70%);
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, #ffab52, #ff6a3d 22%, #e0213a 42%, #a80f26 60%, #f0402f 78%, #ff9447);
  background-size: 300% 300%;
  animation: coat-drift 24s ease-in-out var(--drift-at, 0s) infinite alternate;
  -webkit-mask-image: var(--fade); -webkit-mask-composite: source-over; mask-image: var(--fade); mask-composite: add;
}
@keyframes coat-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.showcase-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: 24px; }
.showcase-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
/* As Red Ribbon's home page heads itself: the ribbon, then the name in its ink. */
.showcase-title { display: flex; align-items: center; gap: .3em; color: #0f1a2e; font-size: clamp(2.6rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; }
.showcase-title img { width: .9em; height: .9em; }
.showcase-desc { max-width: 36ch; color: #0f1a2e; font-size: 1.15rem; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; }
.showcase-points { font-size: 14px; font-weight: 650; letter-spacing: .02em; color: rgb(15 26 46 / .62); }
.showcase-cta {
  margin-top: 12px; padding: 15px 28px; border-radius: 4px; font-size: 16px; font-weight: 700; letter-spacing: -.005em;
  color: #fff; background: #e0213a; transition: background-color .15s;
}
.showcase:hover .showcase-cta { background: #0f1a2e; }
.showcase-shot { position: relative; perspective: 1400px; }
.showcase-shot img {
  display: block; width: 125%; max-width: none; height: auto;
  transform: rotateY(-12deg) rotateX(5deg); transform-origin: left center;
  filter: drop-shadow(0 40px 50px rgb(50 50 93 / .28)) drop-shadow(0 20px 24px rgb(0 0 0 / .18));
}

/* ---------- contact: deep green, a sharp slant at the top, the addresses as big ruled rows ---------- */
.contact {
  position: relative; isolation: isolate; margin-top: clamp(12px, 2vw, 24px); padding: clamp(110px, 12vw, 170px) 0 0; color: rgb(255 255 255 / .85);
  background: linear-gradient(150deg, #1c8c3e, #0d5527 55%, #08361a);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
}
.contact > .goo { z-index: -1; }
.goo-dim i { opacity: .3; }
.contact h2 { margin: 0 0 10px; color: #fff; }
.contact-lede { margin: 0 0 44px; font-size: 1.2rem; }
.contact-list { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid rgb(255 255 255 / .22); }
.contact-list a {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "role addr" ". note"; column-gap: 24px; align-items: baseline;
  padding: 26px 0; border-top: 1px solid rgb(255 255 255 / .22); text-decoration: none;
}
.c-role { grid-area: role; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.c-addr { grid-area: addr; color: #fff; font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; overflow-wrap: anywhere; transition: color .15s; }
.c-note { grid-area: note; margin-top: 6px; font-size: 15px; color: rgb(255 255 255 / .65); }
.contact-list a:hover .c-addr { color: var(--lime); }

footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 80px; padding: 22px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .15); font-size: 14px; color: rgb(255 255 255 / .65); }
footer span { display: inline-flex; align-items: center; gap: 8px; }
footer a { color: rgb(255 255 255 / .85); font-weight: 650; text-decoration: none; transition: color .15s; }
footer a:hover { color: #fff; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 32px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 40%; gap: 8px; }
  .showcase-inner { grid-template-columns: minmax(0, 1fr); }
  .showcase-shot { margin-top: 8px; }
  .showcase-shot img { width: 115%; }
  .contact-list a { grid-template-columns: minmax(0, 1fr); grid-template-areas: "role" "addr" "note"; row-gap: 6px; }
}
@media (max-width: 560px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .mascot { order: -1; width: 62%; margin: -10px auto -20px; }
  footer { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
