@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/SourceSerif4-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F3EDE4;
  --ink: #1A1814;
  --soft: #3A362E;
  --mute: #6A645C;
}

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

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

html {
  background: var(--paper);
}

body {
  min-height: 100vh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Flat paper field. No CSS hash grain (GD: reads as a filter, not rag). */
.sheet {
  position: relative;
  width: min(32rem, 100%);
  margin: 0 auto 0 0;
  padding: 10vh 8vw 12vh;
}

.mark {
  display: block;
  margin: 0 0 3.25rem;
  max-width: 18rem;
  width: 72%;
  height: auto;
}

.letter {
  max-width: 28rem;
}

.letter .date {
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin: 0 0 2rem;
}

.letter p {
  margin: 0 0 1.15rem;
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink);
}

.letter p:last-child {
  margin-bottom: 0;
  color: var(--soft);
}

.field {
  min-height: 58vh;
}

.compose {
  max-width: 28rem;
  width: 100%;
}

.compose form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.compose label {
  display: block;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--mute);
  margin: 0 0 0.35rem;
}

.compose input,
.compose textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0 0.4rem;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.45;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

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

.compose input:focus,
.compose textarea:focus {
  outline: none;
  box-shadow: none;
  border-bottom-color: var(--ink);
}

.compose button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.35rem 0;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: none;
}

.compose button[type="submit"]:focus {
  outline: none;
  box-shadow: none;
}

.sent {
  margin: 1.1rem 0 0;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--soft);
}

.price {
  margin: 2.25rem 0 0;
  max-width: 28rem;
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--mute);
}

.price a {
  color: var(--soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 24, 20, 0.25);
}

.price a:focus {
  outline: none;
}

@media (min-width: 720px) {
  .sheet {
    padding: 11vh 10vw 14vh;
  }

  .mark {
    max-width: 20rem;
    width: 20rem;
    margin-bottom: 3.75rem;
  }

  .letter p {
    font-size: 1.12rem;
    line-height: 1.58;
  }

  .field {
    min-height: 62vh;
  }
}
