@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F4F2EC;
  --ink: #151513;
  --soft: #6B685F;
  --mark: #FFEBA6;
  --mark-ink: #151513;
}

[data-theme="morning"] {
  --bg: #F7EFE4;
  --ink: #1C1915;
  --soft: #6F665B;
  --mark: #FFC2A0;
  --mark-ink: #1C1915;
}

[data-theme="evening"] {
  --bg: #2A2320;
  --ink: #F2EAE0;
  --soft: #A39789;
  --mark: #E39B54;
  --mark-ink: #1A1410;
}

[data-theme="night"] {
  --bg: #0F1218;
  --ink: #E6E8EE;
  --soft: #8890A2;
  --mark: #9DB2FF;
  --mark-ink: #0F1218;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  transition: background-color 1.2s ease, color 1.2s ease;
}

/* Not on body itself: browser extensions insert their own elements into body. */
.page {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 72px;
}

header,
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
}

h1 {
  margin: 0;
  font: inherit;
}

header a {
  color: inherit;
  text-decoration: none;
}

footer,
.soft {
  color: var(--soft);
  transition: color 1.2s ease;
}

.coords {
  font-variant-numeric: tabular-nums;
  white-space: pre-wrap;
}

main p {
  max-width: 19em;
  margin: 0;
  font-size: clamp(32px, 4.6vw, 70px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: pretty;
}

.mark {
  margin: 0 -0.06em;
  padding: 0 0.06em;
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--mark), var(--mark));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.14em;
  transition: background-size 0.35s cubic-bezier(0.6, 0, 0.2, 1), color 0.25s ease;
}

.mark:hover,
.mark:focus-visible,
.mark.copied {
  background-size: 100% 88%;
  color: var(--mark-ink);
  outline: none;
}

@media (max-width: 480px) {
  header,
  footer {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body,
  footer,
  .soft,
  .mark {
    transition: none;
  }
}
