:root {
  --paper: #f3efe6;
  --ink: #1c1916;
  --soft: #5f584e;
  --rule: #d4cdc0;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 360;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(38rem, calc(100% - 3rem));
  margin-inline: auto;
  padding-block: 4.5rem 5.5rem;
}

h1 {
  margin: 0;
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 520;
  font-size: clamp(4.25rem, 12vw, 7.25rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}

.line {
  margin: 1.75rem 0 0;
  max-width: 16ch;
  font-family: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  font-weight: 560;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.note {
  margin: 1.25rem 0 0;
  max-width: 34ch;
  color: var(--soft);
  font-size: 1.05rem;
  font-weight: 360;
  line-height: 1.55;
}

a {
  align-self: flex-start;
  margin-top: 2.75rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 450;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15rem;
}

a:hover {
  border-bottom-color: var(--ink);
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

@media (max-width: 640px) {
  main {
    width: min(38rem, calc(100% - 2.25rem));
    justify-content: flex-start;
    padding-top: 18vh;
  }
}
