:root {
  color-scheme: light;
  --ink: #101010;
  --line: #ddd;
  --paper: #fff;
  --side: clamp(1rem, 4.5vw, 5.5rem);
  font-family: "Helvetica Neue", Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
}

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

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1.25rem, 3.8vh, 2.75rem) var(--side) clamp(1rem, 4.5vh, 3rem);
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.masthead, .footer-top, .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.masthead {
  min-height: 2.7rem;
  gap: 1rem;
  padding-inline: clamp(.25rem, 1.2vw, .75rem) .375rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: .4em;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.mark {
  width: 1.2em;
  aspect-ratio: 1;
  flex: none;
  border-radius: .17em;
  background: #080808;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3.65vw, 3.25rem);
  font-size: clamp(.93rem, 2vw, 1.3rem);
  letter-spacing: -.02em;
}

.menu-item {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  font: inherit;
  letter-spacing: inherit;
  opacity: 1;
  text-decoration: none;
  white-space: nowrap;
}

.menu-item:disabled { cursor: default; }
a.menu-item:hover, a.menu-item[aria-current="page"] { text-decoration: underline; text-underline-offset: .25em; }

.content-page {
  max-width: 58rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 7vw, 6rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.content-page h1 {
  margin: 0 0 .8em;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.content-page img { display: block; height: auto; }

.site-footer {
  padding-right: clamp(0rem, 1.7vw, 1.1rem);
  font-size: .75rem;
  line-height: 1.45;
}

.footer-top { gap: .65rem 1.15rem; }
.site-footer .wordmark { font-size: .8rem; }

.footer-menu {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 2.75vw, 2rem);
}

.footer-menu .menu-item { min-height: 1.65rem; }
.footer-bottom { gap: .35rem .75rem; padding-top: .27rem; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; }

@media (max-width: 37.5rem) {
  body { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }

  .masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: .4rem;
    padding: .45rem 0 .48rem;
  }

  .menu {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .65rem;
    width: 100%;
    max-width: 24rem;
  }

  .site-footer { padding-right: 0; }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .footer-menu { flex-wrap: wrap; gap: .1rem .9rem; }
  .footer-bottom { flex-wrap: wrap; }
}
