@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Lato', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #F5F5F5;
  background-color: #20201D;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: inherit;
}
h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0;
}
h2 {
  font-size: 2rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}
h3 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin: 0.25rem 0;
  font-family: 'Geist Mono'
}
.main-heading {
  text-align: center;
  border-bottom: 1px solid gray;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
}
p {
  margin: 0.75rem 0;
}
ul {
  list-style-type: disc;
}
.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  text-align: left;
  list-style-type: disc;
}
.tall-lines {
  line-height: 37px;
}
.italic-bold {
  color: gray;
  font-style: italic;
  font-weight: bold;
}
.section-spacing {
  padding-top: 1.6rem;
}
code {
  background: #242429;
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
}
details summary {
  cursor: pointer;
  font-size: 1.1em;
  font-weight: normal;
  margin-top: 10px;
  list-style: none;
}
details[open] summary {
  color: #4CAF50;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
th, td {
  border: 1px solid #30363d;
  padding: 0.5em;
  text-align: left;
}
th {
  background-color: #21262d;
}
td {
  background-color: #161b22;
}
.container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.side-content {
  max-width: 1000px;
  padding-left: 15rem;
  padding-top: 0.5rem;
}
.brand-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  padding-left: 3rem;
  margin-top: 1.5rem;
}
.home-link {
  font-size: 2.5rem;
  font-weight: 200;
  color: #a0a0a0;
  font-family: 'Raleway', sans-serif;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.home-link::after {
  content: "   -   /root ツ";
  opacity: 0;
  margin-left: 8px;
  transition: opacity 0.3s ease;
  font-size: 1rem;
  color: #888;
  white-space: nowrap;
}
.home-link:hover::after {
  opacity: 1;
}
.home-link:hover,
.home-link:focus,
.home-link:active {
  color: #ffffff;
  transform: translateY(-2px);
}
.back-button {
  font-size: 1.6rem;
  font-weight: 200;
  color: #a0a0a0;
  font-family: 'Raleway', sans-serif;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  padding-bottom: 0.5rem;
}
.back-button:hover,
.back-button:focus,
.back-button:active {
  color: #ffffff;
  transform: translateY(-2px);
}
img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1em 0;
}
.centered-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem 0;
}
.caption {
  color: gray;
  font-size: 1.2rem;
  font-style: italic;
  text-align: left;
  padding-left: 1rem;
}
.footer {
  text-align: center;
  padding-top: 3rem;
}
.signature {
  font-style: italic;
  font-size: 0.9em;
  color: gray;
}
.steps pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 1rem;
  overflow-x: auto;
}
.combined {
  margin-top: 0.5rem;
  font-family: 'Fira Code', Consolas, Monaco, 'Courier New', monospace;
  font-weight: bold;
  background: #272727;
  color: #ffffff;
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  display: inline-block;
}
.code-box {
  display: inline-block;
  background-color: #1e1e1e;
  color: #d4d4d4;
  padding: 0.7rem 5rem;
  border-radius: 5px;
  font-size: 1.1rem;
  line-height: 1;
  border: 2px solid #333;
  white-space: pre;
}
.toc {
  position: absolute;
  top: 35px;
  left: calc(49% - 350px - 2rem - 220px);
  width: 200px;
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #f5f5f5;
  z-index: 2;
}
.blog-wrapper {
  position: relative;
}
.toc h2 {
  margin-top: 0;
  font-size: 1rem;
  color: #ccc;
}
.toc a {
  text-decoration: none;
  color: #B5B5B5;
}
.toc a:hover {
  text-decoration: none;
  color: #fff;
}
.toc ol {
  padding-left: 1.2rem;
}
.layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.intro {
  padding-top: 3rem;
  padding-left: 6rem;
  max-width: 630px;
}
.intro h1 {
  margin: 0;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #444;
}
.post-date {
  font-family: 'Geist Mono', monospace;
  font-size: 1rem;
  font-style: italic;
  color: gray;
  margin: 0.5rem 0 0.75rem 0;
  padding: 0;
  border: none;
  padding-top: 0.4rem;
}
.intro-text {
  margin: 0 0 1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #444;
}
.projects-container {
  padding-left: 6rem;
  padding-top: 0.3rem;
  max-width: 630px;
}
.projects-date {
  margin-bottom: 2rem;
  color: #999;
  font-size: 1.1rem;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}
.project-card {
  border: 1px solid #444;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background-color: #1a1a1d;
}
.project-card h2 {
  margin-top: 0;
  color: #fff;
  font-size: 1.4rem;
}
.project-card p {
  color: #c9d1d9;
  margin-bottom: 1rem;
}
.project-section {
  border-top: 1px solid #333;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}
.project-section h4 {
  margin: 0 0 0.4rem 0;
  font-weight: normal;
  color: #bbb;
}
.project-section ul {
  margin: 0;
  padding-left: 1.2rem;
}
.project-section li {
  margin-bottom: 0.3rem;
}
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (max-width: 800px) {
  body {
    margin: 0;
    padding: 0;
    transform: scale(0.90) translateY(-15px);
    transform-origin: top center;
    padding-top: 1rem;
  }
  .intro,
  .projects-container {
    padding-left: 1rem;  
    padding-right: 1rem;
    max-width: 100%;
  }
.brand-column {
     flex-direction: row;
     justify-content: center;
     align-items: center;
     padding: 1rem 0;
     gap: 1rem;
     margin-top: 0;
     position: relative;
     justify-content: space-between; 
   }
   .home-link {
     font-size: 2rem;
     margin-right: auto; 
     padding-left: 10px; 
   }
   .back-button {
     font-size: 1.5rem;
     padding-bottom: 0;
     position: relative;
     left: 20px;
   }
   .brand-column .back-button {
     margin-left: 0.2rem; 
   }
   .brand-column .back-button:last-of-type {
     margin-right: 1.2rem; 
   }
}
