@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #2a1c13;
  --ink-soft: #6b5c50;
  --line: #ece6dd;
  --line-strong: #d9d0c3;

  --sage: #5d9183;
  --sage-deep: #35685c;
  --sage-wash: #eef5f2;
  --forest: #24483f;
  --orange: #e1702f;
  --orange-deep: #b3521a;
  --orange-wash: #fdf1e8;
  --marigold: #e8a935;
  --marigold-deep: #8a6207;
  --marigold-wash: #fdf5e1;
  --cream: #fdeace;
  --cream-wash: #fff9ef;
  --sloth: #fe8029;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure, table {
  margin: 0;
}
ul, ol {
  padding: 0;
  list-style: none;
}
img, svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--cream);
}
:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, .brand span {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-optical-sizing: auto;
}
h1 em, h2 em {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--marigold-wash);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn .arrow {
  transition: transform 0.35s var(--ease);
}
.btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn:active {
  transform: scale(0.98);
}
.btn-small {
  height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.link {
  font-weight: 560;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.3s;
}
.link:hover {
  text-decoration-color: var(--orange);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.brand:hover img {
  transform: rotate(-8deg);
}
.brand span {
  font-size: 1.32rem;
  font-weight: 560;
  letter-spacing: -0.015em;
}

/* Sloth paws and browser lights, shared by the landing page and the app */
.paw {
  position: absolute;
  top: -13px;
  z-index: 2;
  width: 46px;
  height: 27px;
  border-radius: 15px 15px 13px 13px;
  background: var(--sloth);
}
.paw::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 46px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 30' fill='none' stroke-linecap='round'%3E%3Cpath stroke='%23efcf9f' stroke-width='7.6' d='M11 4.5Q9.6 15 12.2 23.5M23 4.5V25.5M35 4.5Q36.4 15 33.8 23.5'/%3E%3Cpath stroke='%23fdeace' stroke-width='6.4' d='M11 4.5Q9.6 15 12.2 23.5M23 4.5V25.5M35 4.5Q36.4 15 33.8 23.5'/%3E%3C/svg%3E") no-repeat;
}
.lights {
  display: flex;
  gap: 7px;
}
.lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
}
.lights i:nth-child(2) {
  background: var(--marigold);
}
.lights i:nth-child(3) {
  background: var(--sage);
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
