@font-face {
  font-family: "Sick Leave Mono";
  src: url("assets/sick-leave-mono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  font-family: "Sick Leave Mono", "Courier New", monospace;
  color: #101010;
  background: #f1f0eb;
  color-scheme: light;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; }
::selection { background: #1a1a18; color: #f1f0eb; }

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
}

.sick-note {
  position: relative;
  width: min(100%, 1440px);
  container-type: inline-size;
}

.artwork {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.note-copy {
  position: absolute;
  left: 56%;
  top: 40%;
  width: 25%;
  font-size: 1.72cqw;
  line-height: 1.45;
}

p { margin: 0; }
.return-date { margin-bottom: .55em; }
.excuse { font-size: .85em; }

.contact {
  position: absolute;
  left: 15.45%;
  top: 85.2%;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.74cqw;
  line-height: 1.3;
  color: inherit;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
  text-decoration-color: #8e8c82;
  transition: text-decoration-color 140ms ease;
}

.contact:hover { text-decoration-color: currentColor; }
.contact:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 7px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .page { padding: 24px 8px 40px; }
  .sick-note { width: min(100%, 560px); }
  .note-copy {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 16px 6% 0;
    font-size: clamp(17px, 4.6vw, 23px);
    text-align: center;
  }
  .return-date { margin-bottom: .6em; }
  .excuse { font-size: .85em; }
  .contact {
    position: relative;
    left: auto;
    top: auto;
    width: fit-content;
    margin: 22px auto 0;
    display: flex;
    min-height: 44px;
    font-size: clamp(12px, 3.45vw, 17px);
  }
}

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