:root {
  color-scheme: light dark;
  --page: #fbfbfd;
  --text: #1d1d1f;
  --quiet: #6e6e73;
  --rule: rgb(0 0 0 / 0.14);
  --accent: #1C227C;
  --bar: rgb(251 251 253 / 0.82);
  --nav-h: 3.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0b0b0d;
    --text: #f5f5f7;
    --quiet: #a1a1a6;
    --rule: rgb(255 255 255 / 0.18);
    --accent: #aeb3ff;
    --bar: rgb(11 11 13 / 0.78);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 40rem;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
  background: var(--page);
  color: var(--text);
  font: 0.9375rem/1.6 ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  translate: -50% -200%;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--page);
  border-radius: 6px;
  text-decoration: none;
}

.skip:focus-visible {
  translate: -50% 0;
}

.home {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.home img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 22.37%;
}

.top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  margin-inline: calc(-1 * max(20px, env(safe-area-inset-left))) calc(-1 * max(20px, env(safe-area-inset-right)));
  padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}

.top ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.top li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.625rem;
  color: var(--quiet);
  text-decoration: none;
}

.top li a:hover {
  color: var(--text);
}

header {
  padding-top: 4rem;
}

.mark {
  display: block;
  width: 6rem;
  height: 6rem;
  margin-bottom: 2rem;
  border-radius: 22.37%;
}

h1 {
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.line {
  margin-top: 0.75rem;
  color: var(--quiet);
  font-size: 1.0625rem;
  line-height: 1.45;
  text-wrap: balance;
}

main {
  padding-block: 4rem 4rem;
}

section + section {
  margin-top: 3.5rem;
}

section {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.note {
  margin-top: 0.5rem;
  color: var(--quiet);
  text-wrap: pretty;
}

.apps {
  margin-top: 1rem;
  list-style: none;
}

.apps li {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  align-items: center;
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule);
}

.apps li:last-child {
  border-bottom: 1px solid var(--rule);
}

h3 {
  grid-column: 1;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.status {
  grid-column: 2;
  grid-row: 1;
  padding: 0.125rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--quiet);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: nowrap;
}

.status.is-due {
  border-color: transparent;
  background: var(--accent);
  color: var(--page);
}

.apps li > p:not(.status) {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  color: var(--quiet);
  text-wrap: pretty;
}

dl {
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
}

dl div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

dt {
  color: var(--quiet);
}

dd {
  text-wrap: pretty;
}

@media (max-width: 30em) {
  dl div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.875rem 1.5rem;
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 0.875rem;
}

footer .year {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 40em) {
  header {
    padding-top: 5.5rem;
  }

  .mark {
    width: 7rem;
    height: 7rem;
    margin-bottom: 2.5rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .line {
    font-size: 1.1875rem;
  }

  main {
    padding-block: 5rem 5rem;
  }

  footer {
    padding-block: 1.75rem 3.5rem;
  }
}
