/* ThreatIntels Journal — light editorial theme */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #102838;
  --muted: #516778;
  --stroke: #dfe9ed;
  --teal: #087c7b;
  --teal-deep: #075e62;
  --soft: #f5faf9;
  --code-surface: #f4f7f9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-deep); text-underline-offset: 3px; }
a:hover { color: #03494c; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #45bfb0;
  outline-offset: 3px;
}
header {
  background: #ffffff;
  border-bottom: 1px solid var(--stroke);
}
.nav {
  max-width: 1140px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 20px 24px;
  min-height: 76px;
  flex-wrap: wrap;
}
.logo {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.14rem;
  font-weight: 850;
  letter-spacing: -.035em;
}
.logo b { color: var(--teal); }
.nav .navlinks {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.navlinks a {
  color: #405568;
  font-size: .92rem;
  font-weight: 650;
  text-decoration: none;
}
.navlinks a:hover { color: var(--teal); }

.hero {
  background:
    radial-gradient(circle at 91% 8%, rgba(8,124,123,.08), transparent 34%),
    linear-gradient(100deg, #ffffff 30%, #f8fcfb 100%);
  border-bottom: 1px solid var(--stroke);
  padding: 85px max(24px, calc((100vw - 1100px)/2)) 88px;
}
.kicker {
  color: var(--teal-deep);
  font-size: .77rem;
  letter-spacing: .13em;
  font-weight: 850;
  text-transform: uppercase;
}
.hero h1 {
  color: #122d3b;
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  line-height: 1.13;
  letter-spacing: -.055em;
  max-width: 930px;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.hero p {
  color: #3e596b;
  max-width: 800px;
  font-size: 1.16rem;
  line-height: 1.85;
}
.byline { color: #607584; font-size: .88rem; margin-top: 24px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 50px 24px; }
.wrap > h2 { color: #143042; font-size: 1.85rem; letter-spacing: -.035em; margin: 21px 0 23px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 20px; }
.card {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(23, 53, 70, .035);
}
.card h2 { font-size: 1.4rem; line-height: 1.34; letter-spacing: -.025em; margin: 18px 0; }
.card h2 a { color: #163545; text-decoration: none; }
.card h2 a:hover { color: var(--teal); }
.card p { color: var(--muted); }
.card > a:last-child { font-weight: 750; }
.pill {
  display: inline-block;
  color: #086f6a;
  background: #eef9f6;
  border: 1px solid #c5e8e1;
  border-radius: 99px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 700;
}
.small { font-size: .85rem; color: #6d7e8a !important; }

.site {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: 26px;
  align-items: start;
  padding: 44px 24px;
}
.article {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 48px);
}
.article h2 {
  color: #123044;
  font-size: 1.52rem;
  line-height: 1.28;
  letter-spacing: -.025em;
  margin: 38px 0 15px;
}
.article h3 { color: #183647; font-size: 1.14rem; margin: 25px 0 10px; }
.article p, .article li { color: #314a5d; }
.article li + li { margin-top: 7px; }
.article ol, .article ul { padding-left: 25px; }
.article strong { color: #142f3f; }
.article code {
  color: #075e62;
  background: #eef6f6;
  padding: 2px 5px;
  border-radius: 4px;
  font: .91em SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.code-box {
  overflow: hidden;
  border: 1px solid #d9e5e9;
  border-radius: 9px;
  margin: 24px 0;
}
.code-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #eaf1f4;
  padding: 9px 14px;
  color: #385468;
  font-size: .78rem;
  font-weight: 750;
}
.copy {
  color: #086f6a;
  background: #ffffff;
  border: 1px solid #bad6d3;
  border-radius: 5px;
  padding: 4px 11px;
  cursor: pointer;
  font: inherit;
}
.copy:hover { background: #e9f8f4; }
pre {
  background: var(--code-surface);
  color: #223d4d;
  padding: 19px;
  margin: 0;
  overflow: auto;
  font-size: .91rem;
  line-height: 1.65;
}
pre code { color: inherit !important; background: none !important; padding: 0 !important; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
table { width: 100%; border-collapse: collapse; font-size: .91rem; }
th, td { border-bottom: 1px solid #e0e8ec; padding: 12px 10px; text-align: left; vertical-align: top; }
th { background: #f0f7f7; color: #15595a; font-weight: 750; }
td { color: #344c5c; }

.aside {
  background: #f9fcfb;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 22px;
  position: sticky;
  top: 22px;
}
.aside > strong { color: #17374a; font-size: .81rem; letter-spacing: .08em; }
.aside p { font-size: .79rem; color: #687e8a; }
.aside a {
  display: block;
  color: #486172;
  padding: 8px 0;
  border-bottom: 1px solid #e4edf0;
  text-decoration: none;
  font-size: .87rem;
  line-height: 1.5;
}
.aside a:hover { color: var(--teal); }
.notice {
  background: #eff9f7;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  padding: 16px 20px;
  margin: 0 0 30px;
  color: #325663;
}
.notice strong { color: #16494b; }
footer {
  background: #f9fbfb;
  border-top: 1px solid var(--stroke);
  padding: 30px 16px;
  margin-top: 40px;
  text-align: center;
  color: #697e89;
  font-size: .85rem;
}
@media (max-width: 780px) {
  .site { grid-template-columns: 1fr; gap: 20px; }
  .aside { position: static; order: -1; }
  .hero { padding: 54px 24px 60px; }
  .nav { gap: 10px; }
  .nav .navlinks { gap: 13px; }
  .article { padding: 24px; }
  .wrap { padding: 42px 24px; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 3.35rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Magazine-style journal homepage and article typography */
.logo span { color: #526a78; font-weight: 650; letter-spacing: -.015em; }
.hero.home-hero { padding-top: 68px; padding-bottom: 70px; }
.home-hero h1 { font-size: clamp(2.65rem, 5.9vw, 4.65rem); max-width: 870px; }
.home-hero p { max-width: 810px; margin: 0; }
.hero-inner { width: 100%; max-width: 1100px; margin: 0 auto; }
.hero-author {
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid #dbe9e8;
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
}
.author-credit { display: inline-flex; align-items: center; gap: 12px; }
.author-mark {
  width: 43px; height: 43px;
  flex: 0 0 auto; display: inline-grid; place-items: center;
  border-radius: 50%;
  background: #e2f3ef; border: 1px solid #b6d8d1;
  color: #066b68; font-size: .92rem; font-weight: 850; letter-spacing: -.03em;
}
.author-details { display: flex; flex-direction: column; line-height: 1.4; }
.author-details strong { font-size: .99rem; color: #193746; font-weight: 800; }
.author-details small { color: #5a7181; font-size: .78rem; margin-top: 2px; }
.hero-areas { display: flex; flex-direction: column; gap: 3px; }
.hero-areas small { font-size: .7rem; font-weight: 800; letter-spacing: .09em; color: #087c7b; }
.hero-areas span { color: #516c7a; font-size: .91rem; }
.journal-wrap { padding-top: 55px; padding-bottom: 68px; }
.journal-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.journal-head h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -.04em; color: #133244; margin: 10px 0 8px; line-height: 1.2; }
.journal-head p { margin: 0; color: #587080; max-width: 640px; }
.search-box {
  border: 1px solid #d3e0e6; background: #fbfdfd;
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: 8px;
  min-width: min(100%, 290px); color: #627988;
}
.search-box:focus-within { outline: 2px solid #8dcfc5; outline-offset: 2px; }
.search-box svg { width: 18px; height: 18px; flex: 0 0 auto; }
.search-box input { border: 0; background: transparent; font: inherit; min-width: 0; width: 100%; color: #173647; outline: 0; font-size: .92rem; }
.search-box input::placeholder { color: #82939e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.post-group { margin-top: 50px; }
.post-group[hidden], .article-card[hidden] { display: none !important; }
.section-title { border-bottom: 1px solid #e3ebee; padding-bottom: 17px; margin-bottom: 22px; }
.section-title h2 { font-size: 1.55rem; letter-spacing: -.03em; color: #173b4e; margin: 10px 0 4px; }
.section-title p { color: #5e7582; margin: 0; }
.journal-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.article-card { display: flex; flex-direction: column; min-height: 305px; padding: 29px; transition: transform .15s ease, box-shadow .15s ease; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(24, 55, 66, .09); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-readtime { color: #6e8290; font-size: .79rem; }
.article-card h3 { color: #17394b; font-size: 1.39rem; line-height: 1.32; letter-spacing: -.028em; margin: 19px 0 11px; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a:hover { color: #076f70; }
.article-card p { margin: 0 0 22px; line-height: 1.65; font-size: .94rem; flex: 1; }
.card-bottom { display: flex; flex-wrap: wrap; gap: 2px 16px; border-top: 1px solid #e9eff1; padding-top: 15px; color: #6b8090; font-size: .78rem; line-height: 1.5; }
.card-cta { display: inline-block; align-self: flex-start; margin-top: 16px; color: #06716d; font-size: .9rem; font-weight: 800; text-decoration: none; }
.card-cta:hover { text-decoration: underline; }
.featured-article { background: linear-gradient(140deg, #f5fbf9 0%, #fff 72%); border-color: #cde8e1; }
.archive-note { margin-top: 48px; border-radius: 9px; padding: 23px 26px; background: #f3faf9; border: 1px solid #d5e9e5; }
.archive-note strong { color: #155658; }
.archive-note p { margin: 5px 0 0; color: #4c6875; }
.no-results { color: #4c6875; background: #f7faf9; border-radius: 8px; padding: 20px; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding-left: max(24px, calc((100vw - 1100px)/2)); padding-right: max(24px, calc((100vw - 1100px)/2)); }
.footer-split { color: #637986; }
.article-hero { padding-top: 48px; padding-bottom: 54px; }
.backlink { display: inline-flex; text-decoration: none; font-size: .85rem; font-weight: 750; color: #0b7773; margin-bottom: 20px; }
.article-hero h1 { font-size: clamp(2.2rem, 4.9vw, 3.7rem); max-width: 1040px; line-height: 1.16; }
.article-hero p { font-size: 1.06rem; line-height: 1.75; }
.article-author-row { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 27px; padding-top: 20px; border-top: 1px solid #deebe9; }
.article-dates { display: flex; gap: 6px 18px; flex-wrap: wrap; color: #597281; font-size: .8rem; }
.article-dates span:not(:last-child)::after { content: "·"; padding-left: 18px; color: #8a9ca4; }
.article { line-height: 1.83; }
.article p + p { margin-top: 18px; }
.article h2 { scroll-margin-top: 18px; }
.article h3 { scroll-margin-top: 18px; }
.history-notice { margin-bottom: 30px; background: #f1f9f8; border-left: 4px solid #188d84; border-radius: 8px; padding: 16px 19px; }
.history-notice strong { color: #145e5b; font-size: .87rem; }
.history-notice p { color: #44646c; margin: 5px 0 0; font-size: .87rem; line-height: 1.6; }
.publication-note { color: #5e7583 !important; border-top: 1px solid #e1ebed; margin-top: 40px !important; padding-top: 17px; font-size: .82rem; }
.end-nav { border-top: 1px solid #e3eaee; padding-top: 22px; margin-top: 32px; font-size: .93rem; font-weight: 750; }
.aside { max-height: calc(100vh - 42px); overflow-y: auto; }
@media (max-width: 780px) {
  .journal-card-grid { grid-template-columns: 1fr; }
  .hero.home-hero { padding-top: 52px; padding-bottom: 48px; }
  .hero-author { gap: 18px; margin-top: 23px; }
  .hero-areas { width: 100%; }
  .article-hero { padding-top: 36px; padding-bottom: 40px; }
  .article-dates span:not(:last-child)::after { padding-left: 10px; }
  .article-dates { gap: 6px 10px; }
  .article-card { min-height: auto; }
  .site .aside { max-height: unset; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .article-card { transition: none; } .article-card:hover { transform: none; } }
