html,
body {
  font-family: Arial, sans-serif;
  color: #000;
  line-height: 1.6;
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  font-size: 100%;
}

@media (max-width: 480px) {
  html {
    font-size: 90%;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-sizing: border-box;
}

.post {
  background-color: #fff;
  border: 1.5px solid #000;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  max-width: 40rem;
  width: 100%;
  margin: 5rem auto 0 auto;
  box-sizing: border-box;
}

header {
  text-align: center;
  padding: 1rem 0;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: #666;
  padding: 1rem 0;
  margin-top: auto;
}

footer a {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  border-bottom: 1px dashed #999;
  transition: color 0.2s ease, border-color 0.2s ease;
}

footer a:hover {
  color: #000;
  border-color: #000;
}

.hero {
  background-color: #fff;
  border: 2px solid #000;
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  box-shadow: 2px 2px 0 #000;
  margin-top: 2rem;
}

.hero h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.hero .tagline {
  font-size: 1rem;
  color: #333;
  margin-top: 0.5rem;
}

.header-link {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  white-space: normal;
}

.tagline {
  font-size: 0.75rem;
  font-style: italic;
}

.post-header {
  display: block;
}

.post-header time {
  font-size: 1.25rem;
  white-space: nowrap;
  font-weight: bold;
}

.post-header h3 {
  margin: 0;
  font-size: 1.25rem;
  flex: 1;
}

.post p {
  text-align: center;
}

.tag {
  font-size: 0.85rem;
  color: gray;
}

.todo-badge {
  background-color: #ffcc00;
  color: #000;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
}

.dev-note {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

h1 {
  font-size: 2rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.25rem;
}
h4 {
  font-size: 1rem;
}
p {
  margin-bottom: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mobile-only {
  display: none;
}
.desktop-only {
  display: inline;
}

@media (max-width: 480px) {
  .mobile-only {
    display: inline;
  }
  .desktop-only {
    display: none;
  }
}
