@font-face {
  font-family: "Nanum";
  src: url("/fonts/NanumGothicCoding-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #1e2732;
  --surface: #263241;
  --text: #ffffff;
  --muted: #9e9e9e;
  --accent: #00ffa2;
  --link: #4a90e2;
  --link-hover: #00ffa2;
  --border: #3a4654;
  --measure: 46rem;

  --font-body: system-ui, Arial, Helvetica, sans-serif;
  --font-display: "Nanum", "Courier New", Courier, monospace;
  --font-ui: system-ui, Arial, Helvetica, sans-serif;
  --font-code: "Nanum", "Courier New", Courier, monospace;
}

html {
  font-size: 19px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

header,
main,
footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1rem;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-bottom: 1px solid var(--border);
}

.site-title {
  order: 2;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: right;
}

nav {
  order: 1;
  margin-top: 0;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-align: left;
}

nav a {
  color: var(--muted);
  margin-right: 1rem;
  margin-left: 0;
}

nav a:hover,
nav a:focus {
  color: var(--link-hover);
}

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

a:hover,
a:focus {
  color: var(--link-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: normal;
}

h1 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.1rem;
}

code,
pre,
kbd,
samp {
  font-family: var(--font-code);
}

code,
pre {
  font-size: 0.9rem;
}

pre {
  overflow-x: auto;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

pre code {
  background: transparent;
}

blockquote {
  margin-left: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .site-title {
    order: 1;
    width: 100%;
    text-align: left;
  }

  nav {
    order: 2;
    width: 100%;
  }

  nav a {
    margin-right: 1rem;
  }
}
