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

html {
  height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  color: #1c1915;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  background: #f4efe6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #f4efe6 url("paper.jpg") center / cover no-repeat;
}

a { color: #243027; }

.home {
  display: block;
  width: min(11rem, 46vw);
  margin: 1.6rem auto 0.4rem;
}

.lockup {
  display: block;
  width: 100%;
  height: auto;
}

.site-menu {
  position: fixed;
  top: 0.7rem;
  right: 0.75rem;
  z-index: 3;
}

button.menu-button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #243027;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
}

button.menu-button span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: #243027;
  border-radius: 1px;
}

button.menu-button:hover { background: rgba(255, 253, 249, 0.45); }

button.menu-button:focus-visible,
.site-menu a:focus-visible,
.home:focus-visible,
article a:focus-visible {
  outline: 2px solid #243027;
  outline-offset: 3px;
}

.site-menu nav {
  position: absolute;
  top: 2.55rem;
  right: 0;
  min-width: 9.2rem;
  padding: 0.3rem 0;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(70, 54, 36, 0.14);
  border-radius: 12px;
  text-align: left;
}

.site-menu a {
  display: block;
  padding: 0.42rem 0.9rem;
  color: #243027;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] { background: rgba(36, 48, 39, 0.06); }

.site-menu a[aria-current="page"] { font-weight: 600; }

article {
  width: min(40rem, calc(100% - 2rem));
  margin: 0.6rem auto 3rem;
  padding: 1.5rem 1.6rem 1.8rem;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(70, 54, 36, 0.14);
  border-radius: 18px;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.sub,
.kicker {
  margin: 0.35rem 0 0;
  color: #5e584f;
}

.sub { font-size: 1.12rem; }

h2 {
  margin: 1.65rem 0 0.3rem;
  color: #243027;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p { margin: 0.7rem 0; }

ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.25rem;
}

li { margin: 0.4rem 0; }

li::marker { color: #243027; }

article a { text-underline-offset: 0.16em; }

article p,
article li,
article a { overflow-wrap: anywhere; }

.reviewed {
  margin-top: 1.8rem;
  color: #5e584f;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

@media (max-width: 640px) {
  article {
    width: min(40rem, calc(100% - 1.2rem));
    padding: 1.15rem 1rem 1.4rem;
    font-size: 1.02rem;
  }

  h1 { font-size: 1.45rem; }

  .home { margin-top: 1.15rem; }
}

@media print {
  body::before { display: none; }
  .site-menu, .home { display: none; }
  article {
    width: auto;
    margin: 0;
    border: 0;
    background: white;
  }
}
