/* kerfufflelabs.dev. One stylesheet, no scripts. The palette and the two
   typefaces are Family Rumpus's (its brand kit), so the company and the
   product read as one family; plum is the company's own accent, and amber
   stays with the product. Fonts are self-hosted: the site's
   Content-Security-Policy (public/_headers) allows nothing from elsewhere. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/BricolageGrotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('/assets/fonts/NunitoSans.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --paper: #f4f2ed;
  --paper-2: #eae7df;
  --card: #fffdf9;
  --ink: #17192b;
  --ink-2: #3a3d52;
  --muted: #5f6276;
  --line: rgba(23, 25, 43, 0.13);
  --plum: #5b4b9e;
  --plum-soft: #e8e3f7;
  --plum-light: #b3a6ea;
  --amber: #e28a0b;
  --amber-soft: #fdebc8;
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Nunito Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p,
ul,
dl,
dd,
address {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
address {
  font-style: normal;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
p,
li {
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--plum-light);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-color: var(--plum);
}
:focus-visible {
  outline: 2.5px solid var(--plum);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

.wrap {
  margin-inline: auto;
  max-width: 68rem;
  padding-inline: 1.25rem;
}
@media (min-width: 640px) {
  .wrap {
    padding-inline: 2rem;
  }
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--plum);
}
.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}

/* Header */
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-inline: -0.8rem;
}
.site-nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}
.site-nav a:hover {
  background: var(--paper-2);
}
.site-nav a[aria-current='page'] {
  text-decoration-line: underline;
  text-decoration-color: var(--plum);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 0.4em;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: #2a2d47;
}
.btn-ghost {
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-light {
  background: var(--card);
  color: var(--ink);
}
.btn-light:hover {
  background: var(--plum-soft);
}
.arrow {
  font-family: var(--font-body);
}

/* Page tops */
.hero {
  padding-block: 3.5rem 4rem;
}
.hero h1 {
  max-width: 21ch;
  margin-top: 1.25rem;
  font-size: clamp(2.6rem, 1.3rem + 5.6vw, 5rem);
  line-height: 0.98;
}
.hero h1 em {
  font-style: normal;
  color: var(--plum);
}
.hero .lede {
  max-width: 38rem;
  margin-top: 1.75rem;
}
.hero .actions {
  margin-top: 2.25rem;
}
.page-head {
  padding-block: 3rem 2.5rem;
}
.page-head h1 {
  max-width: 18ch;
  margin-top: 1rem;
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.75rem);
}
.page-head .lede {
  max-width: 38rem;
  margin-top: 1.25rem;
}
@media (min-width: 768px) {
  .hero {
    padding-block: 5.5rem 3rem;
  }
  .page-head {
    padding-block: 4.5rem 3.5rem;
  }
}

/* Sections */
.section {
  padding-block: 3.5rem;
}
.section + .section,
.page-head + .section {
  padding-top: 0.5rem;
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
}
.section-head .lede {
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 5rem;
  }
  .section + .section,
  .page-head + .section {
    padding-top: 1rem;
  }
}

/* The product card */
.product {
  display: grid;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
}
.product-art {
  display: grid;
  place-items: center;
  min-height: 13rem;
  padding: 1rem;
  background: linear-gradient(to bottom right, #f59e0b, #d97706);
}
.product-art img {
  width: min(100%, 27rem);
}
.product-body {
  padding: 1.75rem;
}
.product-body h2,
.product-body h3 {
  font-size: 2rem;
}
.product-tag {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.product-body > p:not(.product-tag) {
  margin-top: 1rem;
  color: var(--ink-2);
}
.product-body .actions {
  margin-top: 1.75rem;
}
@media (min-width: 820px) {
  .product {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .product-body {
    padding: 2.75rem;
  }
}

/* Lists of things the product does */
.ticks {
  display: grid;
  gap: 0.7rem 2rem;
  margin-top: 1.5rem;
}
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-2);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--amber);
}
@media (min-width: 640px) {
  .ticks {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cards */
.cards {
  display: grid;
  gap: 1rem;
}
.cards + .cards {
  margin-top: 1rem;
}
.card {
  padding: 1.6rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}
.card h3 {
  font-size: 1.3rem;
  line-height: 1.15;
}
.card > p {
  margin-top: 0.6rem;
  color: var(--ink-2);
}
.card > .eyebrow {
  margin-top: 0;
  color: var(--plum);
}
.card .eyebrow + h3 {
  margin-top: 0.9rem;
}
.card .big {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.card .small {
  font-size: 0.95rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .cards-2,
  .cards-3,
  .cards-4 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Links out to the product */
.links {
  display: grid;
  gap: 0.75rem;
}
.links a {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.links a:hover {
  border-color: var(--ink);
}
.links span {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--muted);
}
@media (min-width: 640px) {
  .links {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .links a {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .links span {
    text-align: right;
  }
}

/* The dark band with the company's details */
.band {
  background: var(--ink);
  color: var(--paper);
}
.band-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
.band .eyebrow {
  margin-top: 0;
  color: var(--plum-light);
}
.band h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
}
.band p {
  max-width: 28rem;
  margin-top: 1rem;
  color: rgba(244, 242, 237, 0.74);
}
.band .actions {
  margin-top: 1.75rem;
}
.band a:hover {
  text-decoration-color: var(--plum-light);
}
@media (min-width: 820px) {
  .band-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 4rem;
    padding-block: 5rem;
  }
}

/* Label and value pairs */
.facts > div {
  display: grid;
  gap: 0.15rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--line);
}
.facts > div:last-child {
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.band .facts > div {
  border-color: rgba(244, 242, 237, 0.16);
}
.band .facts dt {
  color: rgba(244, 242, 237, 0.62);
}
@media (min-width: 480px) {
  .facts > div {
    grid-template-columns: 9.5rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }
}

/* Long-form pages */
.prose {
  max-width: 40rem;
}
.prose h2 {
  margin-top: 2.75rem;
  font-size: 1.6rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose ul {
  margin-top: 1rem;
  color: var(--ink-2);
}
.prose ul {
  padding-left: 1.2rem;
  list-style: disc;
}
.prose li + li {
  margin-top: 0.4rem;
}
.prose .muted {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.split {
  display: grid;
  gap: 3rem;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1.35fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}
.aside h2 {
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
}
.band + .site-footer {
  border-top: 0;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  padding-block: 3.25rem;
}
.footer-note {
  max-width: 22rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.site-footer .eyebrow {
  color: var(--muted);
}
.site-footer ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
  font-size: 0.97rem;
}
.site-footer li a {
  text-decoration: none;
}
.site-footer li a:hover {
  text-decoration: underline;
  text-decoration-color: var(--plum);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-base p {
  margin: 0;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .links a {
    transition: none;
  }
}
