/* Round Online · base · reset · typography · body */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  font-feature-settings: "kern", "liga", "calt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  color: var(--color-fg);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); text-transform: uppercase; letter-spacing: 0.08em; }

p, ul, ol, blockquote, pre, table {
  margin: 0 0 var(--sp-5);
}

a {
  color: var(--color-accent);
  text-decoration-color: rgba(22, 107, 99, 0.35);
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) var(--ease-out),
              text-decoration-color var(--dur-fast) var(--ease-out);
}
a:hover {
  color: var(--color-accent-2);
  text-decoration-color: currentColor;
}

img, svg, video, canvas, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
}

blockquote {
  padding-left: var(--sp-5);
  border-left: 2px solid var(--color-accent);
  font-style: italic;
  color: var(--color-fg-muted);
}

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

pre {
  padding: var(--sp-4);
  background: var(--color-ink);
  color: var(--color-paper);
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: var(--lh-snug);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-7) 0;
}

::selection {
  background: var(--color-accent);
  color: var(--color-paper);
}

/* Skip link · accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: var(--sp-4);
  top: var(--sp-4);
}
