:root {
  color-scheme: light;
  --paper: #ffffff;
  --ground: #f5f6f2;
  --ink: #202827;
  --muted: #5b6663;
  --line: #ced5d1;
  --teal: #0d716d;
  --teal-soft: #dcefed;
  --gold: #a76f0b;
  --gold-soft: #f8edcf;
  --coral: #b34f3d;
  --blue: #335f89;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
  border-radius: 3px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: none;
}

.index-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.index-nav {
  display: flex;
  width: min(100% - 40px, 1120px);
  min-height: 64px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.index-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-decoration: none;
}

.index-brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 3px;
  background: var(--ink);
  color: #fff;
  font-size: 0.77rem;
}

.index-nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  font-size: 0.84rem;
  font-weight: 800;
  scrollbar-width: none;
  white-space: nowrap;
}

.index-nav-links::-webkit-scrollbar {
  display: none;
}

.index-nav-links a {
  text-decoration: none;
}

.index-nav-links a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.index-language {
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 5px 8px;
}

.index-main {
  width: min(100% - 40px, 1000px);
  margin: 0 auto;
}

.index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding: 70px 0 42px;
}

.index-eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.index-hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 3.35rem;
  font-weight: 700;
  line-height: 1.08;
}

.index-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.index-owner {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.index-count {
  min-width: 136px;
  border-left: 4px solid var(--gold);
  padding-left: 18px;
}

.index-count strong,
.index-count span {
  display: block;
}

.index-count strong {
  font-family: Georgia, serif;
  font-size: 2.65rem;
  line-height: 1;
}

.index-count span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.index-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 0.84rem;
  font-weight: 850;
}

.index-jump a {
  color: var(--teal);
  text-underline-offset: 4px;
}

.index-content {
  padding: 20px 0 72px;
}

.index-group {
  padding-top: 38px;
}

.group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 12px;
}

.group-heading h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.65rem;
}

.group-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

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

.index-entry {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.entry-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 850;
  line-height: 1.5;
}

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

.entry-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.45;
}

.entry-body h3 a {
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.entry-body h3 a:hover {
  color: var(--teal);
  text-decoration-color: currentColor;
}

.entry-detail,
.entry-summary {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.entry-summary {
  line-height: 1.75;
}

.entry-actions,
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.81rem;
  font-weight: 850;
}

.entry-actions a,
.source-links a {
  color: var(--teal);
  text-underline-offset: 3px;
}

.press-entry {
  grid-template-columns: 120px minmax(0, 1fr);
}

.press-medium {
  display: inline-block;
  margin-top: 7px;
  border-radius: 3px;
  padding: 3px 6px;
  background: var(--teal-soft);
  color: #155e5a;
  font-size: 0.7rem;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.app-entry {
  grid-template-columns: 74px minmax(0, 1fr);
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(32, 40, 39, 0.13);
}

.writing-entry {
  grid-template-columns: 40px minmax(0, 1fr);
}

.writing-number {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.writing-entry .entry-summary {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}

.index-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.82rem;
}

.index-footer p {
  margin: 0;
}

.index-footer a {
  color: var(--teal);
  font-weight: 850;
}

@media (max-width: 760px) {
  .index-nav {
    width: min(100% - 24px, 1120px);
    gap: 12px;
  }

  .index-brand span:last-child {
    display: none;
  }

  .index-nav-links {
    gap: 13px;
  }

  .index-nav-links a:not([aria-current="page"]):not(.index-home-link):not(.index-language) {
    display: none;
  }

  .index-main {
    width: min(100% - 28px, 1000px);
  }

  .index-hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 44px 0 30px;
  }

  .index-hero h1 {
    font-size: 2.35rem;
  }

  .index-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .index-count strong {
    font-size: 2rem;
  }

  .index-entry,
  .press-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .app-list {
    grid-template-columns: 1fr;
  }

  .app-entry {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 16px;
  }

  .writing-entry {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
  }

  .group-heading h2 {
    font-size: 1.35rem;
  }
}
