:root {
  font-family: Arial, "Malgun Gothic", sans-serif;
  color: #242019;
  background: #f4f2ec;
}

* { box-sizing: border-box; }
body {
  display: grid;
  grid-template-columns: clamp(175px, 17vw, 230px) minmax(0, 1fr);
  height: 100dvh;
  margin: 0;
  overflow: hidden;
}

nav {
  align-self: center;
  display: grid;
  max-height: 100%;
  padding: 16px clamp(16px, 2.5vw, 36px);
  overflow: auto;
}

nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #62584c;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: .25em;
}
nav a:hover { text-decoration: underline; }
nav a[aria-current] { color: #242019; font-weight: 700; text-decoration: underline; }
nav a:focus-visible { outline: 2px solid #a84129; outline-offset: -2px; }

main { min-width: 0; min-height: 0; }
iframe { display: block; width: 100%; height: 100%; border: 0; }
.message { margin: 0; padding: 40px; color: #62584c; }

@media (max-width: 680px) {
  body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  nav { display: flex; gap: 20px; padding: 4px 16px; }
  nav a { flex: none; white-space: nowrap; }
}
