:root {
  --fg: #1a1a1a;
  --fg-muted: #555;
  --bg: #fdfdfc;
  --rule: #d8d6d2;
  --link: #1a1a1a;
  --focus: #0b5ed7;
}

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

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

header {
  margin-bottom: 3rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: -0.12em;
}

.cursor.is-blinking {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor.is-blinking { animation: none; }
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 2.5rem 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  color: var(--fg-muted);
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

ul.work {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.work li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--rule);
}

ul.work li:last-child {
  border-bottom: 1px solid var(--rule);
}

.contact label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact input,
.contact textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 0.5rem 0.65rem;
  border-radius: 2px;
}

.contact textarea {
  resize: vertical;
  min-height: 7rem;
}

button {
  font: inherit;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  border-radius: 2px;
}

button:hover {
  background: #000;
}

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

ul.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
}
