/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafaf8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 1;
  transition: opacity 220ms ease;
}

body.cloak {
  opacity: 0;
}

body.ready {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

/* Layout */
.container {
  max-width: 38rem;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
  min-height: 100vh;
  position: relative;
}

@media (min-width: 768px) {
  .container {
    padding-top: calc(33vh - 6rem);
  }
}

/* Logo */
.logo {
  display: inline-block;
  height: 16px;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .logo {
    height: 20px;
    margin-bottom: 1.5rem;
  }
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Typography */
.name {
  font-family: 'Crimson Text', 'Georgia', serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .name {
    font-size: 2.25rem;
  }
}

.tagline {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a4a4a;
  margin-bottom: 1.5rem;
}

.body {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 52ch;
}

.body p {
  margin-bottom: 1rem;
}

.body p:last-child {
  margin-bottom: 0;
}

.footer-text {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: #6a6a6a;
  margin-top: 1.5rem;
}

/* Navigation - index style */
nav {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
}

@media (min-width: 768px) {
  nav {
    left: calc(50% - 17rem);
    right: auto;
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.25rem;
}

nav a {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #9a9a9a;
  text-decoration: none;
}

nav a:hover,
nav a:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

nav a.active {
  color: #1f5939;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
}

a:focus-visible {
  outline: 2px solid #1f5939;
  outline-offset: 2px;
}

/* Email link on contact */
.email {
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
