:root {
  color-scheme: light;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: #182c30;
  background: #f3f5f2;
  --ink: #182c30;
  --muted: #4d6568;
  --line: #d5dfda;
  --accent: #116754;
  --lime: #c5ed91;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 2px solid #157c67; outline-offset: 4px; }
.shell { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.skip { position: absolute; top: .4rem; left: .5rem; z-index: 2; padding: .6rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

.masthead { background: #122226; color: #eef7f4; border-bottom: 1px solid #345051; }
.masthead-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4.4rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; font-weight: 700; font-size: .95rem; }
.brand-mark { width: 1.3rem; height: 1.3rem; border: 1px solid var(--lime); border-radius: 50%; display: grid; place-items: center; flex: none; }
.brand-mark::before { content: ""; width: .45rem; height: .45rem; background: var(--lime); border-radius: 50%; }
.masthead-link { color: #d7e5df; font-size: .9rem; white-space: nowrap; }

.hero { overflow: hidden; background: radial-gradient(ellipse at 77% 55%, #203d3b, #122226 66%); color: #f2f8f3; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .68fr); gap: 2rem; align-items: center; padding-block: clamp(2.85rem, 6vw, 5.5rem); }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(2.25rem, 5.7vw, 5rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.13; }
.hero p { max-width: 35em; margin: 1.35rem 0 0; color: #c1d3cb; font-size: 1rem; line-height: 1.9; }
.hero-graphic {
  width: min(100%, 19rem);
  aspect-ratio: 1;
  position: relative;
  justify-self: center;
  border-radius: 50%;
  border: 1px solid #48655a;
  background:
    repeating-linear-gradient(0deg, transparent 0 18px, #9ccec018 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 18px, #9ccec018 18px 19px);
  box-shadow: 0 0 0 1.15rem #d0f5c008, 0 0 0 2.3rem #d0f5c006;
}
.orbit, .axis, .point, .graphic-core { position: absolute; display: block; }
.orbit { border: 1px solid #67938a; border-radius: 50%; }
.orbit-outer { inset: 14%; }
.orbit-inner { inset: 30%; background: #1f474665; }
.axis { background: #83a8a05c; }
.axis-horizontal { height: 1px; left: 4%; right: 4%; top: 50%; }
.axis-vertical { width: 1px; top: 4%; bottom: 4%; left: 50%; }
.point { width: .62rem; aspect-ratio: 1; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 .28rem #c5ed9130; transform: translate(-50%, -50%); }
.point-north { left: 50%; top: 14%; }
.point-east { left: 79%; top: 71%; }
.point-south { left: 33%; top: 61%; }
.graphic-core { top: 50%; left: 50%; width: 1.8rem; aspect-ratio: 1; transform: translate(-50%, -50%) rotate(45deg); border: 1px solid var(--lime); background: #274d3d; box-shadow: 0 0 1.25rem #c5ed9130; }

.archive { padding-block: 2.7rem 3.5rem; }
.archive-head { display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; justify-content: space-between; align-items: center; }
.archive h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.045em; }
.result-count { margin: .4rem 0 0; color: var(--muted); font-size: .875rem; }
.search { position: relative; display: block; width: min(100%, 22rem); }
.search span { position: absolute; z-index: 1; top: .93rem; left: 1rem; width: .72rem; height: .72rem; border: 1.5px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search span::after { content: ""; position: absolute; width: .36rem; height: 1.5px; background: var(--muted); bottom: -.15rem; right: -.25rem; transform: rotate(45deg); }
.search input { display: block; width: 100%; border: 1px solid #9dafaa; border-radius: .6rem; padding: .62rem 1rem .62rem 2.5rem; background: #fff; color: var(--ink); min-height: 2.75rem; }
.search input::placeholder { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-block: 1.4rem; }
.filters button { min-height: 2.65rem; border-radius: 2rem; border: 1px solid #b7c8c0; padding: .4rem 1rem; background: white; color: var(--ink); font-size: .875rem; cursor: pointer; }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { color: white; background: #225d50; border-color: #225d50; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.case {
  --case-color: #467f6d;
  --tag-bg: #e4f3ea;
  --tag-text: #285a46;
  min-width: 0;
  min-height: 25.25rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--case-color);
  border-radius: .6rem;
  padding: 1.1rem;
  background: #fff;
  overflow-wrap: anywhere;
}
.case[data-category="hardware"] { --case-color: #a27535; --tag-bg: #faf0d9; --tag-text: #694711; }
.case[data-category="vendor"] { --case-color: #70639e; --tag-bg: #eee9fa; --tag-text: #4f3c78; }
.case[data-category="breach"] { --case-color: #955f67; --tag-bg: #f8e9ec; --tag-text: #6a3843; }
.case[data-category="outage"] { --case-color: #45728a; --tag-bg: #e3eff6; --tag-text: #295367; }
.case-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.category { color: var(--tag-text); background: var(--tag-bg); border-radius: .28rem; padding: .25rem .55rem; font-size: .875rem; font-weight: 650; }
.case time { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.case h3 { margin: .9rem 0 .6rem; font-size: 1.2rem; letter-spacing: -.03em; line-height: 1.48; }
.case p { margin: 0 0 .85rem; font-size: 1rem; line-height: 1.72; color: #3b5559; }
details { margin-top: auto; }
summary { color: var(--accent); font-size: .9rem; font-weight: 650; cursor: pointer; padding: .55rem 0; }
details[open] summary { margin-bottom: .4rem; }
.case h4 { margin: 0 0 .35rem; font-size: .875rem; }
.checks { margin: 0 0 .8rem; padding-inline-start: 1.2rem; line-height: 1.65; }
.checks li + li { margin-top: .35rem; }
.sources { border-top: 1px solid var(--line); margin-top: .45rem; padding-top: .75rem; }
.sources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem .75rem; font-size: .875rem; line-height: 1.65; }
.notice { padding: 1rem; background: white; border: 1px solid var(--line); border-radius: .6rem; }
.footer { border-top: 1px solid var(--line); padding-block: 1.15rem 1.65rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1.5rem; font-size: .875rem; color: var(--muted); }

@media (max-width: 58rem) {
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 39rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 3.75rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 28rem; }
  .hero-graphic { position: absolute; width: 13rem; right: -5.5rem; top: -4.5rem; opacity: .55; }
  .archive { padding-block: 2rem; }
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case { min-height: auto; }
}
