:root {
  color-scheme: light;
  --ink: #172435;
  --body: #384556;
  --muted: #626d7c;
  --line: #dbe5ee;
  --blue: #6ebdf2;
  --blue-light: #cce7f8;
  --orange: #f2673d;
  --focus: #145e91;
  --field: #fcfdfe;
  --split: minmax(0, 0.38fr) minmax(0, 0.62fr);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 100%;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.19em;
  text-decoration-color: #9aa8b8;
  transition: color 140ms ease, text-decoration-color 140ms ease;
}

a:hover {
  color: var(--focus);
  text-decoration-color: currentColor;
}

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

p,
h1,
h2 {
  margin: 0;
}

h1,
h2 {
  color: var(--ink);
  font-weight: 500;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

h1 span {
  display: block;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.page {
  width: min(65rem, calc(100% - 5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header,
.site-nav,
.social-links,
.site-footer {
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.5rem;
}

.wordmark {
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 550;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-nav {
  gap: 2rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.site-nav a {
  padding-block: 0.5rem;
  text-decoration: none;
}

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

.split {
  display: grid;
  grid-template-columns: var(--split);
  column-gap: 4rem;
  align-items: start;
}

.intro {
  position: relative;
  padding-block: 4.5rem 5rem;
}

.intro::before,
.site-footer::after {
  content: "";
  position: absolute;
  width: 1.75rem;
  height: 1.75rem;
  border-color: var(--blue);
  border-style: solid;
  pointer-events: none;
}

.intro::before {
  top: 2.25rem;
  left: -0.75rem;
  border-width: 1px 0 0 1px;
}

.bio {
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 38rem;
}

.social-links {
  flex-wrap: wrap;
  gap: 1.75rem;
  margin-top: 2rem;
  font-size: 0.9375rem;
}

.social-links a {
  padding-block: 0.25rem;
}

.section {
  border-top: 1px solid var(--line);
  padding-block: 4rem;
}

.section-heading p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.essay-list {
  list-style: none;
  padding: 0;
  margin: 1.875rem 0 0;
}

.essay {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr) 5rem;
  align-items: baseline;
  column-gap: 1.5rem;
  padding-block: 1.5rem;
}

.essay + .essay {
  border-top: 1px solid var(--line);
}

.essay time,
.essay-source {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.essay-title {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 450;
  letter-spacing: -0.015em;
}

.essay-source {
  justify-self: end;
}

.contact-intro p {
  max-width: 18rem;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

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

.field {
  display: grid;
  gap: 0.5rem;
}

label {
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #b6c6d5;
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 140ms ease;
}

input {
  min-height: 2.875rem;
}

textarea {
  resize: vertical;
  min-height: 10rem;
}

input:hover,
textarea:hover {
  border-color: #7f9ab2;
}

#contact-verification:empty {
  display: none;
}

.form-note,
.form-status {
  font-size: 0.875rem;
  line-height: 1.5;
}

.form-note {
  color: var(--muted);
}

.form-status {
  color: var(--ink);
}

.form-status[data-state="error"] {
  color: #9e302d;
}

.button {
  justify-self: start;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.7rem 1.3rem;
  background: var(--orange);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 550;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.button:hover:not(:disabled) {
  background: #ed784e;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.site-footer {
  position: relative;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding-block: 2rem 2.5rem;
  font-size: 0.875rem;
}

.site-footer::after {
  right: -0.75rem;
  bottom: 1.25rem;
  border-width: 0 1px 1px 0;
}

.site-footer a {
  text-decoration: none;
}

.footer-name {
  font-weight: 550;
  letter-spacing: -0.02em;
}

.footer-domain {
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

@media (max-width: 62rem) {
  .split {
    column-gap: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .social-links {
    gap: 1.2rem;
  }
}

@media (max-width: 56.25rem) {
  body {
    font-size: 1.0625rem;
  }

  .page {
    width: calc(100% - 3rem);
  }

  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding-block: 1.75rem;
  }

  .wordmark {
    font-size: 1.125rem;
  }

  .site-nav {
    gap: 1.25rem;
    font-size: 0.875rem;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
  }

  .intro {
    padding-block: 3.5rem 3rem;
  }

  .intro::before {
    top: 1.5rem;
    left: -0.5rem;
    width: 1.5rem;
    height: 1.5rem;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.375rem;
  }

  .bio {
    font-size: 1.0625rem;
    max-width: none;
  }

  .social-links {
    margin-top: 1.5rem;
    gap: 1.5rem;
  }

  .section {
    padding-block: 3rem;
  }

  .essay-list {
    margin-top: 1.25rem;
  }

  .essay {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.4rem;
    padding-block: 1.25rem;
  }

  .essay-title {
    font-size: 1.125rem;
  }

  .essay-source {
    grid-column: 2;
    justify-self: start;
  }

  .contact-intro p {
    max-width: 25rem;
  }

  .site-footer {
    padding-block: 1.75rem 2.5rem;
  }
}

@media (max-width: 25rem) {
  .page {
    width: calc(100% - 2.5rem);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

