@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #e0e7ff;
  --border-color: rgba(15, 23, 42, 0.08);
  --border-focus: #6366f1;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

section {
  min-width: 600px;
}

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

body {
  background-color: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 12px 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* NAVIGATION */
nav {
  margin: 12px 0;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

nav a {
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  text-decoration: none;
  margin: 0;
  padding: 6px 12px;
  min-width: 110px;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

nav a:visited {
  color: var(--text-secondary);
}

nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

header {
  text-align: center;
  background-color: transparent;
  padding-top: 20px;
}

header h1 {
  line-height: 1.15;
  margin: 16px 12px;
  padding-left: 16px;
  font-size: 24px;
  border-left: 3px solid var(--accent);
  display: inline-block;
  text-align: left;
}

/* ASIDE CARD WRAPPERS */
aside {
  padding: 16px 0;
  background-color: transparent;
}

aside section {
  max-width: 600px;
  margin: auto;
  background: var(--bg-card);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

aside h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

aside div {
  color: var(--text-secondary);
}

aside img {
  width: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

aside a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 500;
  transition: var(--transition);
}

aside a:visited {
  color: var(--accent);
}

aside a:hover {
  color: var(--accent-hover);
}

/* MAIN CONTENT */
main {
  padding-top: 5px;
}

main section {
  margin-top: 16px;
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

main h3 {
  line-height: 1.25;
  font-size: 20px;
  margin: 0 0 12px 0;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  max-width: 100%;
}

h4 {
  line-height: 1.4;
  font-size: 16px;
  margin: 12px 0;
  border-left: 3px solid transparent;
  padding-left: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

main section:nth-of-type(even) {
  background-color: var(--bg-card);
}

main p {
  max-width: 100%;
  margin: 16px 0;
  line-height: 1.6;
  color: var(--text-secondary);
}

main a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

main a:visited {
  color: var(--accent);
}

main a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

main ul {
  list-style-type: none;
  max-width: 100%;
  margin: 16px 0;
}

main b {
  color: var(--accent);
  font-weight: 600;
}

figure {
  margin: 40px auto;
  max-width: 100%;
  text-align: center;
}

figure img {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

figure img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

figcaption {
  padding: 12px 20px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: center;
}

figure code {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  display: block;
  overflow-x: auto;
  max-width: 100%;
  padding: 16px;
  color: #e2e8f0;
  background-color: #0f172a;
  white-space: pre;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

header img {
  margin-right: 20px;
  margin-bottom: -10px;
  width: 80px;
  transition: var(--transition);
}

figure pre {
  font-family: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  overflow-x: auto;
  max-width: 100%;
  padding: 20px;
  color: #e2e8f0;
  background-color: #0f172a;
  white-space: pre-wrap;
  text-align: left;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

footer {
  text-align: center;
  background-color: transparent;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 13px;
}

.desk {
  display: none;
}

.heart {
  color: #ef4444;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.15);
  }
}

li {
  list-style-position: inside;
}

@media(min-width: 550px) {

  nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  nav a {
    font-size: 14px;
    min-width: initial;
  }
}

@media(min-width: 768px) {
  body {
    font-size: 16px;
  }

  li {
    list-style-position: inside;
  }

  header h1 {
    font-size: 40px;
    margin: 40px 0;
  }

  main section {
    padding: 24px;
  }

  main h3 {
    font-size: 30px;
  }

  main h4 {
    font-size: 22px;
  }

  figcaption {
    text-align: center;
  }

  figure code {
    font-size: 14px;
  }}

@media(min-width: 1280px) {
  .desk {
    display: inline-block;
  }

  li {
    list-style-position: outside;
  }

  body {
    font-size: 16px;
  }

  header h1 {
    font-size: 48px;
    margin: 60px 0;
  }

  aside {
    text-align: center;
  }

  aside section {
    display: inline-block;
    vertical-align: top;
    text-align: left;
    max-width: 800px;
  }

  aside section:first-child {
    max-width: 800px;
  }

  main {
    text-align: center;
    background: transparent;
  }

  main section {
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}