@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable.woff2") format("woff2-variations");
}

@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/InterVariable-Italic.woff2") format("woff2-variations");
}

/* Base layout */
body {
  margin: 0;
  padding: 1.5rem;
  background: #fff;
  color: #111827;
}

/* Content width */
.content {
  max-width: 70ch;
  margin: 0 auto;
}

/* Global font settings */
html,
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  letter-spacing: -0.01em; /* tighter body text */
  font-size: 16px;
}

/* Paragraphs */
p {
  margin: 0 0 1rem 0;
}

/* Links */
a {
  color: #5d2abf;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.25);
  font-weight: 550;
  letter-spacing: -0.01em;
}

a:hover {
  border-bottom-color: rgba(15, 23, 42, 0.7);
  font-weight: 650;
}



/* Headings – extremely tight tracking */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.032em; /* very tight for all headings by default */
  line-height: 1.1;
}

h1 + h1 {
  margin-top: -0.4rem !important;
  letter-spacing: -0.04em; /* even tighter tracking for stacked h1 */
}

/* Size scale using clamp for nicer responsiveness */

h1 {
  font-size: clamp(2.2rem, 3vw, 2.6rem);
}

h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.1rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.5rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
}

h4 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

h5 {
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

h6 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}

/* Strong and emphasis */
strong,
b {
  font-weight: 620;
}

em,
i {
  font-style: italic;
}

/* Lists */
ul,
ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem 0;
}

li + li {
  margin-top: 0.25rem;
}

/* Blockquotes */
blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(15, 23, 42, 0.15);
  color: #4b5563;
  font-style: italic;
}

/* Code */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  background: #f3f4f6;
  padding: 0.1em 0.25em;
  border-radius: 3px;
}

/* Navigation strip tidy up */
.nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav a {
  border-bottom: none;
}

.nav a:hover {
  border-bottom: 1px solid rgba(15, 23, 42, 0.6);
}

