@font-face {
  font-family: "Hedvig Letters Serif";
  src: url("/hedvig.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  background: #faf9f7;
  color: #181716;
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
  --masthead-height: 4.5rem;
  --muted: #514e4b;
  --line: #dedad5;
}

* { box-sizing: border-box; }

body { margin: 0; }

::selection {
  color: #181716;
  background: #e8ddcf;
}

.masthead {
  display: grid;
  min-height: var(--masthead-height);
  place-items: center;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.wordmark {
  padding-inline-start: .24em;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .24em;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: max(34rem, calc(100svh - var(--masthead-height)));
}

.notice {
  align-self: center;
  width: 100%;
  max-width: 49rem;
  margin-inline: auto;
  padding: 3.75rem clamp(2.5rem, 7.25vw, 7.5rem);
}

h1 {
  max-width: 9ch;
  margin: 0 0 1.3rem;
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-size: clamp(3.25rem, 5.6vw, 5.6rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.038em;
}

p { margin: 0; }

.thanks {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
  line-height: 1.6;
}

.signature {
  margin-block-start: 1.25rem;
  font-family: "Hedvig Letters Serif", Georgia, serif;
  font-size: 1.15rem;
}

.support {
  width: fit-content;
  max-width: 100%;
  margin-block-start: clamp(2.3rem, 4.5vw, 3.5rem);
  padding-block-start: 1.125rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.5;
}

.support a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 44px;
  max-width: 100%;
  margin-block-start: .75rem;
  padding: .55rem 1rem;
  border: 1px solid #242321;
  border-radius: 4px;
  color: #fff;
  background: #242321;
  font-weight: 600;
  text-decoration: none;
}

.support a:hover { background: #43403d; }

.support a:focus-visible {
  outline: 2px solid #242321;
  outline-offset: 4px;
}

.photo {
  position: relative;
  margin: 0;
  background: #d9cfc2;
}

.photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 48%;
}

@media (max-width: 780px) {
  :root { --masthead-height: 3.75rem; }

  .wordmark { font-size: 1.15rem; }

  main {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .notice { padding: 2.9rem clamp(1.5rem, 6.5vw, 3rem) 2.5rem; }

  h1 { font-size: clamp(2.85rem, 10.5vw, 4.6rem); }

  .photo { aspect-ratio: 1.3; }
}

@media (max-width: 340px) {
  .support a { gap: .75rem; }
}
