/*
 * Tokens mirror the light pages on corehue.co: warm off-white ground, white cards with hairline
 * edges, sage-black type and nightshade for the one call to action.
 */
@font-face {
  font-family: "Inter Variable";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hedvig Letters Serif";
  src: url("/fonts/hedvig-letters-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #fcfaf6;
  --surface: #ffffff;
  --text: #191f1f;
  --text-secondary: #605d58;
  --muted: #a8a49e;
  --hairline: #e6e6e6;
  --hairline-strong: #acbbba;
  --cta: #e05320;
  --cta-hover: #c94817;
  --on-cta: #fff7fa;

  --font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-serif: "Hedvig Letters Serif", ui-serif, Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* A faint sage wash from above keeps the ground from reading as flat. */
body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgb(41 58 57 / 0.06), transparent 70%);
  content: "";
  pointer-events: none;
}

::selection {
  background: rgb(41 58 57 / 0.16);
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

/* The icon sprite is referenced through <use> and never painted itself. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* One column at every size: the content follows the logo bar and the footer sits at the bottom. */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: block;
  border-radius: 6px;
}

.logo img {
  display: block;
  width: auto;
  height: 24px;
}

/* Bare glyphs with a 40px hit area; the negative margin lines the last glyph up with the gutter. */
.social {
  display: flex;
  margin-right: -9px;
}

.social-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  color: var(--text);
  opacity: 0.88;
  transition: opacity 150ms ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.main {
  display: flex;
  flex-direction: column;
  padding-top: 48px;
}

.headline {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 10.4vw, 56px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lede {
  max-width: 30em;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 24px;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--cta);
  color: var(--on-cta);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.02em;
  transition: background-color 150ms ease;
}

.cta svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  transition: transform 200ms ease;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 150ms ease;
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.link-title {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.01em;
}

.link-meta {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
}

.link-arrow {
  width: 20px;
  height: 20px;
  color: var(--muted);
  stroke-width: 1.75;
  transition:
    color 150ms ease,
    transform 200ms ease;
}

@media (hover: hover) {
  .social-link:hover {
    opacity: 1;
  }

  .cta:hover {
    background: var(--cta-hover);
  }

  .cta:hover svg {
    transform: translateX(3px);
  }

  .link:hover {
    border-color: var(--hairline-strong);
  }

  .link:hover .link-arrow {
    color: var(--text);
    transform: translate(2px, -2px);
  }

  .legal a:hover {
    color: var(--text);
  }
}

/* Footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 20px;
}

.footer p {
  margin: 0;
}

.legal {
  display: flex;
  gap: 20px;
}

.legal a {
  border-radius: 4px;
  transition: color 150ms ease;
}

@media (min-width: 640px) {
  .page {
    padding: 32px 24px;
  }

  .main {
    padding-top: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
