/* AWS Master — AWS-inspired light palette */
:root {
  --bg: #ffffff;
  --bg-soft: #f2f3f3;
  --bg-elevated: #eaeded;
  --bg-card: #f2f3f3;
  --border: #d5dbdb;
  --border-strong: #aab7b8;
  --text: #16191f;
  --text-muted: #545b64;
  --accent: #ff9900;
  --accent-hover: #e88b00;
  --accent-soft: rgba(255, 153, 0, 0.12);
  --accent-navy: #232f3e;
  --success: #067d62;
  --warn: #b45309;
  --danger: #d13212;
  --radius: 8px;
  --shadow: 0 1px 1px rgba(22, 25, 31, 0.04), 0 4px 12px rgba(22, 25, 31, 0.06);
  --font: "Amazon Ember", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1080px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-navy); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(1.85rem, 4vw, 2.55rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin: 2rem 0 0.75rem; }
h3 { font-size: 1.12rem; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; color: var(--text-muted); }
p strong, li strong { color: var(--text); }
ul, ol { color: var(--text-muted); padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
code, .mono {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--bg-elevated);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text);
}

.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--text); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}
.logo {
  font-weight: 700; color: var(--text); letter-spacing: -0.02em;
  text-decoration: none; display: flex; align-items: center; gap: 0.65rem;
  line-height: 1.05;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo:hover .logo-icon { filter: drop-shadow(0 0 4px rgba(255, 153, 0, 0.45)); }
.logo-icon {
  flex-shrink: 0; width: 40px; height: 40px; display: block;
  transition: filter 0.15s ease;
}
.logo-icon--sm { width: 32px; height: 32px; }
.logo-text {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.05rem;
}
.logo-aws {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.logo-master {
  font-size: 1.22rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--accent-navy);
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--accent-navy);
  display: inline-grid; place-items: center;
  font-size: 0.7rem; font-weight: 800; color: var(--accent);
  letter-spacing: -0.04em;
}
.nav {
  display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap;
}
.nav a {
  color: var(--text-muted); padding: 0.4rem 0.7rem; border-radius: 6px;
  font-size: 0.92rem; font-weight: 500; text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--text); background: var(--bg-soft); text-decoration: none;
}
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.nav-toggle {
  display: none; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 0.4rem 0.7rem; cursor: pointer;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 0.75rem 1rem 1rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.65rem 0.75rem; }
}

/* Hero */
.hero {
  padding: 3.75rem 0 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  gap: 1.5rem;
  max-width: 42rem;
}
.hero-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.hero h1 { color: var(--text); }
.hero p.lead {
  font-size: 1.12rem; max-width: 38rem; color: var(--text-muted); margin-bottom: 0;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent); color: var(--text);
  box-shadow: 0 1px 2px rgba(255, 153, 0, 0.3);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--text); }
.btn-secondary {
  background: var(--bg); color: var(--text); border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--accent-navy); color: var(--accent-navy); background: var(--bg-soft);
}
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}
.btn-coming {
  background: var(--bg-elevated); color: var(--warn);
  border: 1px dashed #f59e0b; width: 100%;
}

/* Cards / grids */
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.section-header h2 { margin: 0; }
.section-header p { margin: 0.35rem 0 0; max-width: 36rem; }
.grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem; box-shadow: none;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.card h3 { margin: 0.25rem 0; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--accent); }
.card p { margin: 0; flex: 1; font-size: 0.95rem; }
.card-meta {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-navy);
}
.card-meta .badge { margin-left: 0.15rem; }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  background: var(--accent-soft); color: #8a5500;
}
.badge-draft { background: #fef3c7; color: var(--warn); }
.badge-paid { background: #d1fae5; color: var(--success); }
.badge-warn { background: #fee2e2; color: var(--danger); }

/* Study pathway */
.pathway {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
}
@media (max-width: 800px) {
  .pathway { grid-template-columns: 1fr; }
}
.pathway-step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  position: relative;
}
.pathway-step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid; place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a5500;
  font-weight: 700; font-size: 0.85rem;
  margin-bottom: 0.75rem;
}
.pathway-step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.pathway-step p { margin: 0; font-size: 0.92rem; }

/* Prose content */
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--text-muted); }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { color: var(--accent-hover); }
.prose h2:first-child { margin-top: 0; }
.page-header {
  padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem;
}
.page-header p { max-width: 40rem; }
.callout {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem; margin: 1.5rem 0;
}
.callout.warn { border-left-color: #f59e0b; background: #fffbeb; }
.callout.danger { border-left-color: var(--danger); background: #fef2f2; }
.callout p:last-child { margin-bottom: 0; }
.sources {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-top: 2rem;
}
.sources h3 { margin-top: 0; }
.sources ol { margin: 0; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem;
  font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem;
}
.domain-table {
  width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}
.domain-table th, .domain-table td {
  text-align: left; padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.domain-table th {
  color: var(--text); font-weight: 600; background: var(--bg-elevated);
}
.domain-table td { color: var(--text-muted); }

/* Shop */
.price-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; max-width: 420px;
  box-shadow: var(--shadow);
}
.price-placeholder {
  font-size: 2rem; font-weight: 800; color: var(--text); margin: 0.5rem 0;
}
.price-placeholder span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }

/* Footer */
.site-footer {
  margin-top: 4rem; padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border); background: var(--bg-soft);
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: 2fr 1fr 1fr;
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.footer-brand .logo-icon { margin-top: 0.15rem; }
.footer-brand-name {
  margin: 0 0 0.35rem !important;
}
.footer-brand .footer-tagline,
.footer-brand p {
  margin: 0; font-size: 0.92rem;
}
.site-footer h4 {

  margin: 0 0 0.75rem; font-size: 0.85rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text);
}
.site-footer a {
  color: var(--text-muted); display: block; margin-bottom: 0.4rem; font-size: 0.92rem;
}
.site-footer a:hover { color: var(--accent); }
.footer-copy {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted);
}
.footer-copy p { margin: 0 0 0.35rem; font-size: inherit; }

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
