* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #e4eef0 0, #f5f8f8 16rem, #edf3f4 100%) fixed;
  color: #203039;
  line-height: 1.6;
}

a {
  color: #086f78;
}

a:visited {
  color: #086f78;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(115deg, #102f3a, #185262);
  border-bottom: 3px solid #d39a3a;
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-brand {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.site-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-menu a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  color: #d9eef0;
  text-decoration: none;
}

.site-menu a:hover,
.site-menu a:focus {
  background: #286474;
  color: #ffffff;
  text-decoration: none;
}

.site-menu a.menuactive {
  background: #f2d49a;
  color: #17343d;
}

.site-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.content-shell {
  background: #ffffff;
  border: 1px solid #c7d8dc;
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(22, 61, 72, 0.07);
}

h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
  color: #17343d;
}

h2,
h3 {
  margin-top: 0;
  color: #214b56;
}

.page-meta {
  margin: -0.3rem 0 1.2rem;
  color: #61767d;
  font-size: 0.95rem;
}

.home-hero {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #c7d8dc;
}

.home-intro {
  max-width: 44rem;
  color: #4c636b;
}

.home-intro p {
  margin-bottom: 0;
}

.home-sections {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-section-card {
  border: 1px solid #c7d8dc;
  border-radius: 10px;
  background: #f5f9fa;
  padding: 1rem 1.1rem;
}

.home-section-card:hover {
  border-color: #91b6bd;
}

.home-section-card h2 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.home-section-card h2 a {
  text-decoration: none;
}

.home-section-summary {
  margin: 0 0 0.9rem;
  color: #4c636b;
  font-size: 0.92rem;
}

.list-block + .list-block {
  margin-top: 1.75rem;
}

.list-heading {
  margin: 1.5rem 0 0.85rem;
  font-size: 1.15rem;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clean-list li {
  margin-bottom: 0.7rem;
  border-bottom: 1px solid #d8e3e5;
  padding-bottom: 0.45rem;
}

.clean-list li:last-child {
  margin-bottom: 0;
}

.compact-list li {
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
}

.entry-line {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.date {
  font-size: 0.9rem;
  color: #61767d;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  min-width: 90px;
}

.entry-link {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.section-inline-line {
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.section-inline-summary {
  color: #61767d;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.section-entry .entry-link {
  flex: 0 0 auto;
}

.section-entry {
  min-width: 0;
}

@media (max-width: 700px) {
  .section-inline-line {
    flex-wrap: wrap;
  }

  .section-inline-summary {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

.home-section-card .entry-line {
  gap: 0.5rem;
}

.home-section-card .date {
  min-width: 72px;
  font-size: 0.8rem;
}

.home-section-card .entry-link {
  font-size: 0.86rem;
  line-height: 1.3;
}

.entry-link:hover,
.entry-link:focus {
  text-decoration: underline;
}

.section-link {
  margin: 0.85rem 0 0;
}

.section-link a {
  font-size: 0.95rem;
  font-weight: 600;
}

.empty-state {
  color: #61767d;
  border-bottom: 0;
  padding-bottom: 0;
}

.search-intro {
  max-width: 42rem;
  color: #4c636b;
}

#search {
  margin-top: 1.5rem;
}

@media (max-width: 820px) {
  .home-sections {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  max-width: 960px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
  text-align: center;
  color: #61767d;
}

.site-footer a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

article pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 0.75rem 0.9rem;
  border: 1px solid #2b5661;
  border-radius: 8px;
  background: #102a33;
  color: #e3f1ef;
  font-size: 0.9rem;
  line-height: 1.4;
}

article :not(pre) > code {
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  background: #e6eff1;
  color: #214b56;
  font-size: 0.92em;
}

article blockquote {
  margin: 1.2rem 0;
  padding: 0.15rem 1rem;
  border-left: 4px solid #d39a3a;
  color: #4c636b;
  background: #fbf8ef;
}

article table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.94rem;
}

article th,
article td {
  padding: 0.45rem 0.65rem;
  border: 1px solid #c7d8dc;
  text-align: left;
  vertical-align: top;
}

article th {
  background: #e6eff1;
  color: #214b56;
}

:focus-visible {
  outline: 3px solid rgba(211, 154, 58, 0.65);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .site-header-inner,
  .site-main,
  .site-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .content-shell {
    padding: 1.25rem;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
  }

  .site-menu {
    width: 100%;
    justify-content: flex-start;
  }
}
