/* Global Styles
   CSS reset, base styles, and layout foundation
*/

/* CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base HTML/Body */
html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Main Frame Layout */
.frame {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 40px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

/* Main Content Area */
main {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: start;
  gap: 32px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 60px;
}

/* Responsive Base */
@media (max-width: 720px) {
  .frame {
    padding: 24px 20px;
    min-height: 100dvh;
    height: auto;
  }

  main {
    padding-top: 40px;
    gap: 24px;
  }
}
