@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/public-sans.woff2") format("woff2");
}

:root {
  --field: #131e1a;
  --ink: #e7e4db;
  --ink-body: #c1c8c1;
  --ink-quiet: #8e9a92;
  --measure: 58ch;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--field);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: "Public Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--ink);
}

a:hover {
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.field {
  background: var(--field);
}

.shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  min-height: 100svh;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  padding: clamp(30px, 3.4vw, 56px) clamp(24px, 6.2vw, 96px)
    clamp(48px, 6.6vw, 100px);
}

.mark {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.mark-sigil {
  position: relative;
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(231, 228, 219, 0.55);
}

.mark-sigil i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 1px;
  height: 11px;
  background: var(--ink);
}

.mark-sigil i:first-child {
  transform: translate(-3.5px, -50%) rotate(32deg);
}

.mark-sigil i:last-child {
  transform: translate(2.5px, -50%) rotate(32deg);
}

.mark-word {
  display: flex;
  align-items: baseline;
  gap: 0.44em;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1;
}

.mark-slash {
  color: var(--ink-quiet);
  font-weight: 400;
}

.note {
  width: 100%;
  max-width: 660px;
}

.note-open {
  max-width: 44ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 1.5vw, 21px);
  font-weight: 400;
  letter-spacing: -0.004em;
  line-height: 1.5;
  text-wrap: pretty;
}

.note-body {
  max-width: var(--measure);
  margin: 22px 0 0;
  color: var(--ink-body);
  font-size: clamp(16.5px, 1.24vw, 17.5px);
  font-weight: 400;
  letter-spacing: 0.004em;
  line-height: 1.75;
  text-wrap: pretty;
}

.note-mail {
  display: inline-block;
  margin-top: 34px;
  color: var(--ink);
  font-size: clamp(16.5px, 1.24vw, 17.5px);
  letter-spacing: 0.004em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 160ms ease;
}

@media (max-width: 720px) {
  .shell {
    padding: 26px 24px max(28px, env(safe-area-inset-bottom));
  }

  .note-open {
    max-width: none;
    font-size: 19px;
  }

  .note-body,
  .note-mail {
    font-size: 16.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .note-mail {
    transition: none;
  }
}
