:root {
  color: #111827;
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.7;
  --ink: #111827;
  --muted: #4b5563;
  --blue: #123c69;
  --blue-dark: #082f5f;
  --blue-soft: #eaf2ff;
  --gold: #b7791f;
  --line: #e5e7eb;
  --panel: #f8fafc;
}

* { box-sizing: border-box; }
body { margin: 0; background: #ffffff; color: var(--ink); }
a { color: var(--blue-dark); text-underline-offset: 4px; }

header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px max(5vw, 20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 27px;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--blue-dark);
  font-weight: 800;
}
.brand strong { color: var(--gold); }

nav { display: flex; gap: 28px; align-items: center; }
nav > a { text-decoration: none; font-weight: 700; color: #1f2937; }
nav a[aria-current="page"] { color: var(--blue-dark); }

main { min-height: 60vh; }

.blog-hero {
  padding: 72px 6vw 56px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 14px;
}

h1, h2, h3, strong, b {
  color: var(--blue-dark);
}

h1 {
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  margin: 16px 0 22px;
  overflow-wrap: anywhere;
}

h2 {
  line-height: 1.28;
  letter-spacing: -0.2px;
}

p { color: var(--ink); }
.blog-hero p, .intro { font-size: 20px; max-width: 780px; color: #1f2937; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 44px auto;
  padding: 0 24px;
}

.card {
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.card h2 { font-size: 24px; margin: 8px 0 12px; }
.card h2 a { text-decoration: none; color: var(--blue-dark); }
.card p { color: #1f2937; }
.card .read { margin-top: auto; padding-top: 22px; font-weight: 800; text-decoration: none; }

.meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.empty { padding: 42px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; grid-column: 1 / -1; }

.button, button {
  display: inline-block;
  border: 1px solid var(--blue-dark);
  background: var(--blue-dark);
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

button:hover, .button:hover { background: #061f42; }
.secondary { background: transparent; color: var(--blue-dark); }
.secondary:hover { background: var(--blue-soft); }

.article {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 24px;
}

.article h1 { font-size: clamp(36px, 4.3vw, 56px); }
.back { display: block; margin-bottom: 28px; font-weight: 700; text-decoration: none; }

.article-image {
  margin: 30px 0 6px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-image figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  background: #ffffff;
}

.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.share-bar span { font-weight: 800; color: var(--blue-dark); margin-right: 4px; }
.share-bar a, .share-bar button {
  border: 1px solid #b8c7da;
  background: #ffffff;
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
}
.share-bar a:hover, .share-bar button:hover { background: var(--blue-soft); }
.share-status { color: var(--blue-dark); font-weight: 800; margin-left: auto; }

.prose {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 28px;
  font-size: 18px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.prose h2 { margin-top: 38px; font-size: 29px; }
.prose p { line-height: 1.86; color: #111827; }
.prose ul { padding-left: 22px; color: #111827; }
.prose li { margin: 9px 0; color: #111827; }

.callout {
  background: var(--blue-soft);
  border: 1px solid #cfe0f7;
  border-radius: 12px;
  padding: 28px;
  margin: 46px 0;
}
.callout h2 { margin-top: 0; }

.workspace { max-width: 980px; margin: 54px auto; padding: 0 24px; }
.workspace h1 { font-size: 42px; }
.narrow { max-width: 540px; }
.toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; }

label { display: block; font-weight: 700; margin: 22px 0 8px; color: var(--blue-dark); }
input, textarea {
  display: block;
  width: 100%;
  padding: 13px;
  border: 1px solid #aebdcb;
  border-radius: 8px;
  background: white;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  margin-top: 7px;
}
input[readonly] { background: #eef2f7; }
textarea { resize: vertical; }
input:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 3px solid #9ec5ff; outline-offset: 3px; }

.help { font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.notice { background: #fff7d6; padding: 18px 24px; border: 1px solid #ead58a; border-radius: 8px; color: #3f3008; margin: 24px; }
.post-list { margin-top: 32px; }
.post-list article { background: #fff; border-bottom: 1px solid var(--line); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.post-list h2 { margin: 5px 0; overflow-wrap: anywhere; }

footer {
  padding: 40px 6vw;
  background: var(--blue-dark);
  color: white;
  margin-top: 70px;
}
footer .brand, footer p, footer a { color: white; }
footer small { color: #dbeafe; }

.skip { position: absolute; top: -80px; background: #fff; padding: 12px; z-index: 20; }
.skip:focus { top: 0; }

@media (max-width: 640px) {
  header { flex-wrap: wrap; gap: 14px; padding: 18px 20px; position: static; }
  nav { gap: 18px; font-size: 14px; flex-wrap: wrap; }
  nav .button { padding: 8px 12px; }
  .blog-hero { padding: 42px 24px; }
  .blog-hero h1 br { display: none; }
  .empty { padding: 26px; }
  .workspace { margin: 30px auto; }
  .toolbar { align-items: start; }
  .toolbar h1 { font-size: 32px; }
  .post-list article { padding: 18px; }
  .article { margin: 32px auto; }
  .notice { margin: 16px; }
  .cards { margin: 28px auto; }
  .share-bar { align-items: flex-start; }
  .share-bar span, .share-status { width: 100%; margin-left: 0; }
  .share-bar a, .share-bar button { flex: 1 1 calc(50% - 10px); text-align: center; }
}
