:root {
  --background: #f7f5ef;
  --surface: #ffffff;
  --text: #202822;
  --muted: #576259;
  --accent: #285943;
  --border: #d9ded5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

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

.site-header,
main,
footer {
  width: min(100% - 3rem, 1050px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
}

.logo {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  padding-block: 6rem;
  max-width: 800px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0.75rem 0 1.5rem;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.03em;
}

h3 {
  line-height: 1.3;
}

.intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.2rem;
}

.button {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.8rem 1.25rem;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
}

.button:hover {
  background: #1b402f;
}

section:not(.hero) {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

footer {
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 650px) {
  .hero {
    padding-block: 4rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* Mathematical notebook direction */
:root {
  --background: #f6f3eb;
  --surface: #fffdf8;
  --text: #252923;
  --muted: #62685e;
  --accent: #355b46;
  --border: #d9dccf;
}

body {
  background-color: var(--background);
  background-image:
    linear-gradient(rgba(53, 91, 70, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 91, 70, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  letter-spacing: -0.045em;
}

.eyebrow {
  font-family: "Courier New", monospace;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.project-card {
  background: var(--surface);
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(53, 91, 70, 0.06);
}

.button {
  border-radius: 3px;
}