/* Base & Global */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(0.9375rem, 2.2vw, 1.0625rem);
  color: #e6edf3;
  background: #0f1419;
  -webkit-tap-highlight-color: transparent;
}

/* Layout Components */
.tab-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  flex-shrink: 0;
  font-weight: 400;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  padding-top: max(1rem, env(safe-area-inset-top));
  background: rgba(15, 20, 25, 0.85);
}

.tab-nav a {
  padding: 0.4rem 1rem;
  margin: 0 0.1rem;
  font-size: 0.875rem;
  color: rgba(230, 237, 243, 0.9);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.tab-nav a:hover {
  color: #e6edf3;
  background: rgba(230, 237, 243, 0.06);
}

.tab-nav a[aria-current="page"] {
  color: #7ee787;
  background: rgba(126, 231, 135, 0.1);
}

.tab-nav a:focus-visible {
  outline: 2px solid #7ee787;
  outline-offset: 2px;
}

.panels {
  flex: 1;
  min-height: 0;
  position: relative;
}

.view {
  display: none;
  flex-direction: column;
  flex: 1;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
}

.view.is-active {
  display: flex;
}

/* Main View Section */
#view-main {
  align-items: center;
  justify-content: center;
  padding-top: max(1rem, env(safe-area-inset-top));
}

.main-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 42rem;
  width: 100%;
  min-height: 0;
  flex: 1;
  text-align: center;
}

.name {
  font-size: clamp(1.75rem, 8vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 10rem 0 0.5rem 0;
  color: #e6edf3;
}

.tagline {
  font-size: clamp(1.5rem, 4vw, 1.25rem);
  font-weight: 400;
  color: #7ee787;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.02em;
}

.intro {
  color: #8b949e;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
  max-width: 36rem;
}

.site-footer {
  flex-shrink: 0;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0f1419;
}

.links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  color: #8b949e;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.links a:hover,
.links a:active {
  color: #7ee787;
  background: rgba(126, 231, 135, 0.08);
}

.links a:focus-visible {
  outline: 2px solid #7ee787;
  outline-offset: 2px;
}

.links a svg {
  width: 1rem;
  height: 1rem;
}

.recent-section {
  width: 100%;
  text-align: left;
  margin-top: 5rem;
  padding-top: 1rem 0 10rem 0;
}

.recent-section h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b949e;
  margin: 0 0 0.75rem 0;
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem 0;
}

.recent-list li {
  padding: 0.5rem 0.75rem;
  margin: 0 -0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  position: relative;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.recent-list li:hover {
  background: rgba(230, 237, 243, 0.04);
}

.recent-list li a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.recent-list li:last-child {
  border-bottom: none;
}

.recent-list a {
  font-size: 1rem;
  color: #e6edf3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.recent-list a:hover {
  color: #7ee787;
}

.recent-list time {
  font-size: 0.8125rem;
  color: #6e7681;
  flex-shrink: 0;
}

.see-more {
  display: block;
  margin-top: 0.25rem;
  text-align: right;
  font-size: 0.9rem;
  color: rgb(126 231 135 / 0.9);
  text-decoration: none;
  font-weight: 50;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.see-more:hover {
  color: #9ef0a0;
}

.see-more:focus-visible {
  outline: 2px solid #7ee787;
  outline-offset: 2px;
}

/* Blog View Section */
#view-blog {
  flex-direction: column;
}

#view-blog .blog-inner {
  max-width: 42rem;
  margin: 0 auto;
  width: 100%;
  padding: 1.5rem 0;
}

/* About View Section */
#view-about {
  flex-direction: column;
}

#view-about .about-inner {
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 0;
}

#view-about h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

#view-about p {
  color: #8b949e;
  line-height: 1.65;
  margin: 0 0 1rem 0;
}