:root {
  --aws-dark: #0f1923;
  --aws-nav: #161e2d;
  --aws-orange: #ff9900;
  --aws-orange-dim: rgba(255, 153, 0, 0.12);
  --aws-orange-border: rgba(255, 153, 0, 0.3);
  --aws-text: #d1d5db;
  --aws-text-dim: #8b929e;
  --aws-border: #2a3a4a;
  --aws-card: #1a2535;
  --aws-tag-bg: #1e3a5f;
  --aws-tag-text: #60a8e0;
  --aws-green: #1db954;
}

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

body {
  background: var(--aws-dark);
  color: var(--aws-text);
  font-family: 'Amazon Ember', 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--aws-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.aws-nav {
  background: var(--aws-nav);
  border-bottom: 2px solid var(--aws-orange);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.aws-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.aws-logo-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.aws-logo-text span { color: var(--aws-orange); }

.aws-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.aws-nav-links a {
  color: var(--aws-text-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s;
}

.aws-nav-links a:hover { color: var(--aws-orange); }

/* ── HERO ── */
.aws-hero {
  padding: 40px 32px 32px;
  border-bottom: 1px solid var(--aws-border);
  background: linear-gradient(180deg, #0d1a2a 0%, var(--aws-dark) 100%);
}

.aws-breadcrumb {
  font-size: 12px;
  color: var(--aws-text-dim);
  margin-bottom: 12px;
}

.aws-breadcrumb span { color: var(--aws-orange); }

.aws-hero h1 {
  color: #fff;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}

.aws-hero p {
  color: var(--aws-text-dim);
  font-size: 14px;
  max-width: 560px;
}

/* ── LAYOUT ── */
.aws-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  flex: 1;
}

.aws-main {
  padding: 28px 32px;
  border-right: 1px solid var(--aws-border);
}

.aws-sidebar {
  padding: 28px 20px;
}

/* ── SECTION TITLE ── */
.aws-section-title {
  font-size: 11px;
  font-weight: 500;
  color: var(--aws-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

/* ── POST CARD ── */
.aws-card {
  background: var(--aws-card);
  border: 1px solid var(--aws-border);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.aws-card:hover { border-color: var(--aws-orange); }

.aws-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.aws-card-title {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.15s;
}

.aws-card-title:hover { color: var(--aws-orange); text-decoration: none; }

.aws-card-badge {
  background: var(--aws-orange-dim);
  color: var(--aws-orange);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--aws-orange-border);
  white-space: nowrap;
  flex-shrink: 0;
}

.aws-card-excerpt {
  font-size: 13px;
  color: var(--aws-text-dim);
  line-height: 1.6;
  margin-bottom: 14px;
}

.aws-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.aws-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.aws-tag {
  background: var(--aws-tag-bg);
  color: var(--aws-tag-text);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
}

.aws-meta {
  font-size: 11px;
  color: var(--aws-text-dim);
  white-space: nowrap;
}

/* ── SINGLE POST ── */
.aws-post-header {
  padding: 36px 32px 28px;
  border-bottom: 1px solid var(--aws-border);
  background: linear-gradient(180deg, #0d1a2a 0%, var(--aws-dark) 100%);
}

.aws-post-header h1 {
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 14px;
}

.aws-post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--aws-text-dim);
}

.aws-post-content {
  padding: 32px;
  max-width: 780px;
  line-height: 1.8;
}

.aws-post-content h2 {
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin: 2rem 0 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--aws-border);
}

.aws-post-content h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  margin: 1.5rem 0 0.75rem;
}

.aws-post-content p { margin-bottom: 1rem; color: var(--aws-text); }

.aws-post-content ul, .aws-post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--aws-text);
}

.aws-post-content li { margin-bottom: 0.4rem; }

.aws-post-content pre {
  background: #0a1520;
  border: 1px solid var(--aws-border);
  border-left: 3px solid var(--aws-orange);
  border-radius: 4px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 13px;
}

.aws-post-content code {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #e8c77d;
}

.aws-post-content p code, .aws-post-content li code {
  background: #0a1520;
  border: 1px solid var(--aws-border);
  padding: 2px 6px;
  border-radius: 3px;
}

.aws-post-content img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--aws-border);
  margin: 1.5rem 0;
}

.aws-post-content blockquote {
  border-left: 3px solid var(--aws-orange);
  padding: 12px 20px;
  background: var(--aws-card);
  border-radius: 0 4px 4px 0;
  margin: 1.5rem 0;
  color: var(--aws-text-dim);
}

/* ── SIDEBAR WIDGETS ── */
.aws-widget {
  background: var(--aws-card);
  border: 1px solid var(--aws-border);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 16px;
}

.aws-widget h4 {
  font-size: 11px;
  font-weight: 500;
  color: var(--aws-orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.aws-widget-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--aws-border);
  font-size: 12px;
}

.aws-widget-item:last-child { border-bottom: none; }

.aws-widget-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aws-orange);
  flex-shrink: 0;
}

.aws-widget-dot.green { background: var(--aws-green); }

.aws-widget-count {
  margin-left: auto;
  color: var(--aws-text-dim);
}

/* ── FOOTER ── */
.aws-footer {
  background: var(--aws-nav);
  border-top: 1px solid var(--aws-border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--aws-text-dim);
}

.aws-footer span { color: var(--aws-orange); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .aws-container { grid-template-columns: 1fr; }
  .aws-sidebar { border-top: 1px solid var(--aws-border); }
  .aws-main { padding: 20px 16px; }
  .aws-hero { padding: 24px 16px; }
  .aws-nav { padding: 0 16px; }
  .aws-footer { padding: 16px; flex-direction: column; gap: 8px; text-align: center; }
}
