:root {
  --paper: #f3efe6;
  --ink: #16140f;
  --mute: #5a564c;
  --line: #c8c2b4;
  --link: #7a1f18;
}

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

html {
  color-scheme: light;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 1.5rem;
  padding: 1.15rem 8vw;
  border-bottom: 1px solid var(--ink);
}

.name {
  margin: 0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
}

.mail {
  color: var(--ink);
  font-size: 0.9375rem;
  text-decoration: none;
}

.mail:hover {
  color: var(--link);
}

main {
  flex: 1 1 auto;
  max-width: 46rem;
  padding: 12vh 8vw 5rem;
}

h1 {
  margin: 0 0 1.35rem;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.stand {
  margin: 0 0 2.25rem;
  max-width: 36rem;
}

.by {
  margin: 0 0 0.4rem;
  color: var(--mute);
  font-size: 0.9375rem;
}

.ref {
  margin: 0;
  font-size: 0.9375rem;
}

.ref a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

footer {
  padding: 1.1rem 8vw 2rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.8125rem;
}

footer p {
  margin: 0;
}

a:focus-visible,
.mail:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: #e4d6c8;
  color: var(--ink);
}

@media (max-width: 40rem) {
  .mast {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: 1rem 8vw;
  }
}
