:root {
  --ap-navy: #002B4F;
  --ap-navy-2: #0a3d63;
  --ap-teal: #5CC0BE;
  --ap-ink: #142433;
  --ap-muted: #5a6e7e;
  --ap-paper: #f3f7f9;
  --ap-line: rgba(0, 43, 79, 0.12);
  --ap-max: 1120px;
  --ap-serif: "Fraunces", Georgia, serif;
  --ap-sans: "Sora", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ap-ink);
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(92, 192, 190, 0.18), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(0, 43, 79, 0.08), transparent 50%),
    linear-gradient(180deg, #eef5f7 0%, var(--ap-paper) 38%, #ffffff 100%);
  font-family: var(--ap-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.ap-wrap { width: min(100% - 2rem, var(--ap-max)); margin-inline: auto; }

.ap-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 249, 0.88);
  border-bottom: 1px solid var(--ap-line);
}

.ap-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.ap-brand {
  display: grid;
  gap: 0.15rem;
}

.ap-brand-name {
  font-family: var(--ap-serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ap-navy);
  line-height: 1.1;
}

.ap-brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-muted);
  font-weight: 600;
}

.ap-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
}

.ap-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ap-navy);
  opacity: 0.86;
}

.ap-nav a:hover { color: var(--ap-teal); opacity: 1; }

.ap-nav .menu,
.ap-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.ap-hero {
  position: relative;
  margin: 1.25rem 0 2.5rem;
  border-radius: 28px;
  overflow: hidden;
  color: #f4fafb;
  background:
    linear-gradient(135deg, rgba(0, 43, 79, 0.92), rgba(10, 61, 99, 0.78)),
    linear-gradient(160deg, var(--ap-navy), var(--ap-navy-2));
  min-height: clamp(340px, 48vw, 480px);
  display: grid;
  align-items: end;
  box-shadow: 0 24px 60px rgba(0, 43, 79, 0.22);
}

.ap-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 55%;
  height: 80%;
  background: radial-gradient(circle, rgba(92, 192, 190, 0.35), transparent 65%);
  pointer-events: none;
}

.ap-hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}

.ap-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.6rem, 4vw, 3rem);
  max-width: 720px;
}

.ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-teal);
  margin: 0 0 0.85rem;
}

.ap-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--ap-serif);
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ap-hero p {
  margin: 0 0 1.35rem;
  color: rgba(244, 250, 251, 0.88);
  font-size: 1.05rem;
  max-width: 38rem;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--ap-teal);
  color: var(--ap-navy);
  font-weight: 700;
  font-size: 0.92rem;
  border: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ap-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }

.ap-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ap-section {
  margin: 0 0 3rem;
}

.ap-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.ap-section-head h2 {
  margin: 0;
  font-family: var(--ap-serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  color: var(--ap-navy);
  letter-spacing: -0.02em;
}

.ap-section-head a {
  color: var(--ap-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.ap-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--ap-line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 43, 79, 0.1);
}

.ap-card-media {
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(145deg, rgba(0, 43, 79, 0.9), rgba(92, 192, 190, 0.55));
}

.ap-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-card-body {
  padding: 1.05rem 1.1rem 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.ap-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f7f7d;
}

.ap-card-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ap-muted);
}

.ap-card-byline,
a.ap-card-byline {
  color: var(--ap-navy);
  font-weight: 600;
  text-decoration: none;
}

a.ap-card-byline:hover {
  color: #0f7f7d;
  text-decoration: underline;
}

.ap-hero-byline {
  margin: 0.15rem 0 0.55rem;
  font-size: 0.95rem;
  color: var(--ap-muted);
}

.ap-hero-byline .ap-card-byline {
  font-weight: 700;
}

.ap-card h3 {
  margin: 0;
  font-family: var(--ap-serif);
  font-size: 1.18rem;
  line-height: 1.25;
  color: var(--ap-navy);
}

.ap-card p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.92rem;
}

.ap-latest {
  display: grid;
  gap: 0.75rem;
}

.ap-latest-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--ap-line);
  border-radius: 14px;
}

.ap-latest-row time {
  color: var(--ap-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.ap-latest-meta {
  color: var(--ap-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
  line-height: 1.35;
}

.ap-latest-meta .ap-card-byline {
  display: block;
  font-weight: 700;
  color: var(--ap-navy);
}

.ap-latest-row h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--ap-serif);
  color: var(--ap-navy);
}

.ap-latest-thumb {
  width: 88px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ap-navy), var(--ap-teal));
}

.ap-latest-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ap-contribute {
  margin: 1rem 0 3rem;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 24px;
  color: #f5fbfc;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(92, 192, 190, 0.35), transparent 60%),
    linear-gradient(135deg, var(--ap-navy), #083456);
}

.ap-contribute h2 {
  margin: 0 0 0.55rem;
  font-family: var(--ap-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.ap-contribute p {
  margin: 0 0 1.1rem;
  max-width: 40rem;
  color: rgba(245, 251, 252, 0.86);
}

.ap-site-footer {
  margin-top: 2rem;
  padding: 2.2rem 0 2.6rem;
  background: var(--ap-navy);
  color: rgba(244, 250, 251, 0.82);
}

.ap-footer-inner {
  display: grid;
  gap: 1.2rem;
}

.ap-footer-brand {
  font-family: var(--ap-serif);
  font-size: 1.35rem;
  color: #fff;
}

.ap-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
}

.ap-footer-nav a { color: rgba(244, 250, 251, 0.82); font-size: 0.88rem; font-weight: 500; }
.ap-footer-nav a:hover { color: var(--ap-teal); }

.ap-footer-copy {
  font-size: 0.78rem;
  opacity: 0.7;
}

.ap-article {
  width: min(100% - 2rem, 760px);
  margin: 2rem auto 3.5rem;
}

.ap-article header {
  margin-bottom: 1.5rem;
}

.ap-article h1 {
  font-family: var(--ap-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.12;
  color: var(--ap-navy);
  margin: 0.4rem 0 0.8rem;
}

.ap-article .ap-meta {
  color: var(--ap-muted);
  font-size: 0.88rem;
}

.ap-prose {
  font-size: 1.05rem;
  line-height: 1.75;
}

.ap-prose h2,
.ap-prose h3 {
  font-family: var(--ap-serif);
  color: var(--ap-navy);
  line-height: 1.25;
}

.ap-prose a { color: #0b6f86; text-decoration: underline; text-underline-offset: 2px; }

.ap-empty {
  padding: 2rem;
  border: 1px dashed var(--ap-line);
  border-radius: 16px;
  color: var(--ap-muted);
}

@media (max-width: 900px) {
  .ap-grid { grid-template-columns: 1fr 1fr; }
  .ap-latest-row { grid-template-columns: 72px 1fr; }
  .ap-latest-row time { display: none; }
}

@media (max-width: 640px) {
  .ap-header-inner { flex-direction: column; align-items: flex-start; }
  .ap-nav { justify-content: flex-start; }
  .ap-grid { grid-template-columns: 1fr; }
  .ap-hero { border-radius: 20px; }
}
