:root {
  --al-brand-primary:        #27AAE1;
  --al-brand-primary-hover:  #1A95C8;
  --al-brand-secondary:      #E8F6FD;
  --al-color-text-primary:   #2F2F33;
  --al-color-text-secondary: #5C5C6C;
  --al-color-bg-page:        #FFFFFF;
  --al-color-bg-subtle:      #FBFBFB;
  --al-color-border:         #D9D9E8;
  --al-color-error:          #C9400D;
  --al-color-error-light:    #FEF0EC;
  --al-font-family:          'Nunito Sans', sans-serif;
  --al-header-height:        60px;
  --al-radius-sm:            4px;
  --al-radius-pill:          20px;
  --al-shadow-card:          0 4px 6px rgba(84,94,109,0.25);
}

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

html {
  font-family: var(--al-font-family);
  background-color: var(--al-color-bg-subtle);
  color: var(--al-color-text-primary);
}

body {
  min-height: 100vh;
  background-color: var(--al-color-bg-subtle);
}

a {
  color: var(--al-brand-primary);
  text-decoration: none;
}

a:hover {
  color: var(--al-brand-primary-hover);
  text-decoration: underline;
}

/* ---- Layout ---- */
.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--al-header-height);
  background: var(--al-color-bg-page);
  border-bottom: 1px solid var(--al-color-border);
}

.site-header__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--al-radius-sm);
  font-family: var(--al-font-family);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border: 1.5px solid var(--al-brand-primary);
  text-decoration: none;
}

.btn--outline {
  background: transparent;
  color: var(--al-brand-primary);
}

.btn--outline:hover {
  background: var(--al-brand-secondary);
  text-decoration: none;
  color: var(--al-brand-primary-hover);
}

.btn--filled {
  background: var(--al-brand-primary);
  color: #fff;
}

.btn--filled:hover {
  background: var(--al-brand-primary-hover);
  text-decoration: none;
  color: #fff;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--al-radius-pill);
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
  line-height: 1.4;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge--feature {
  background: #E8F6FD;
  color: #1565A0;
}

.badge--bug {
  background: #FEF0EC;
  color: #9B2D09;
}

/* ---- Release cards ---- */
.release-card {
  background: #fff;
  border: 1px solid var(--al-color-border);
  border-radius: var(--al-radius-sm);
  border-left: 6px solid;
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.release-card--feature {
  border-left-color: var(--al-brand-primary);
}

.release-card--bug {
  border-left-color: var(--al-color-error);
}

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

.release-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--al-color-text-primary);
  line-height: 1.4;
  flex: 1;
}

.release-card__body {
  font-size: 14px;
  font-weight: 400;
  color: var(--al-color-text-primary);
  line-height: 1.6;
}

.release-card__meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--al-color-text-secondary);
  margin-top: 10px;
}

/* ---- Page hero ---- */
.page-hero {
  padding: 40px 0 32px;
}

.page-hero__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--al-color-text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.page-hero__date {
  font-size: 13px;
  font-weight: 400;
  color: var(--al-color-text-secondary);
  margin-bottom: 12px;
}

.page-hero__summary {
  font-size: 14px;
  color: var(--al-color-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--al-color-text-secondary);
  display: inline-block;
}

.page-hero__ingress {
  font-size: 15px;
  color: var(--al-color-text-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin-top: 8px;
}

/* ---- Section header ---- */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  margin-top: 32px;
}

.section-header__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--al-color-text-secondary);
  white-space: nowrap;
}

.section-header__line {
  flex: 1;
  height: 1px;
  background: var(--al-color-border);
}

/* ---- History page ---- */
.history-year {
  margin-top: 40px;
  margin-bottom: 8px;
}

.history-year__label {
  font-size: 18px;
  font-weight: 700;
  color: var(--al-color-text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--al-color-border);
  margin-bottom: 16px;
}

.sprint-card {
  background: #fff;
  border: 1px solid var(--al-color-border);
  border-radius: var(--al-radius-sm);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: box-shadow 0.15s;
}

.sprint-card:hover {
  box-shadow: var(--al-shadow-card);
}

.sprint-card__left {
  flex: 1;
}

.sprint-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--al-color-text-primary);
  margin-bottom: 4px;
}

.sprint-card__date {
  font-size: 13px;
  color: var(--al-color-text-secondary);
  margin-bottom: 8px;
}

.sprint-card__badges {
  display: flex;
  gap: 8px;
}

.sprint-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--al-brand-primary);
  white-space: nowrap;
  text-decoration: none;
}

.sprint-card__link:hover {
  color: var(--al-brand-primary-hover);
  text-decoration: underline;
}

/* ---- Back link ---- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--al-color-text-secondary);
  text-decoration: none;
  margin-top: 28px;
  margin-bottom: 4px;
}

.back-link:hover {
  color: var(--al-color-text-primary);
  text-decoration: none;
}

.back-link__arrow {
  font-size: 16px;
  line-height: 1;
}
