:root {
  --primary: #3273dc;
  --primary-hover: #276cda;
  --text: #4a4a4a;
  --strong: #363636;
  --muted: #7a7a7a;
  --line: #dbdbdb;
  --page: #f7f7f7;
  --surface: #ffffff;
  --soft: #f5f5f5;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.05), 0 0 1px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 300px;
  overflow-x: hidden;
  overflow-y: scroll;
  background: var(--page);
  font-size: 14px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select,
textarea {
  font-family: Ubuntu, Roboto, "Open Sans", "Microsoft YaHei", sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-weight: 400;
  line-height: 1.5;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--strong);
}

button {
  font: inherit;
}

code {
  padding: 0.15em 0.35em;
  color: #f14668;
  background: var(--soft);
  border-radius: 3px;
  font-family: "Source Code Pro", monospace, "Microsoft YaHei";
  font-size: 0.9em;
}

.container {
  width: min(100% - 2rem, 1152px);
  margin: 0 auto;
}

.navbar-main {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.navbar-container {
  display: flex;
  align-items: stretch;
  min-height: 4rem;
  overflow-x: auto;
}

.navbar-logo,
.navbar-icon,
.navbar-item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.navbar-logo {
  padding-right: 1rem;
}

.avatar-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #ffffff;
  background: #242424;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.avatar-mark.is-large {
  width: 8rem;
  height: 8rem;
  font-size: 1.8rem;
}

.navbar-menu {
  display: flex;
  flex: 1 0 auto;
  align-items: stretch;
  overflow-x: auto;
}

.navbar-item {
  padding: 1.25rem 0.75rem;
  color: var(--text);
  white-space: nowrap;
}

.navbar-item:hover,
.navbar-item.is-active {
  color: var(--primary);
}

.navbar-icon {
  justify-content: center;
  min-width: 3rem;
  color: var(--muted);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  margin: 0 0.5rem;
  padding: 0.2rem;
  background: var(--soft);
  border-radius: 4px;
}

.language-button {
  min-height: 1.9rem;
  padding: 0 0.55rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
}

.language-button:hover {
  color: var(--primary);
}

.language-button.is-active {
  color: #ffffff;
  background: var(--primary);
}

.section {
  padding: 1.5rem 0;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.card {
  overflow: visible;
  background: var(--surface);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.card + .card {
  margin-top: 1.5rem;
}

.card-content {
  padding: 1.5rem;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.title {
  margin: 0;
  color: var(--strong);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.125;
}

.article-subtitle {
  max-width: 44rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.25em;
  padding: calc(0.5em - 1px) calc(0.75em - 1px);
  color: var(--text);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  line-height: 1.5;
}

.button.is-primary {
  color: #ffffff;
  background: var(--primary);
}

.button.is-primary:hover {
  color: #ffffff;
  background: var(--primary-hover);
}

.button.is-light {
  background: var(--soft);
}

.button.is-light:hover {
  color: var(--primary);
}

.gallery-status {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.photo-gallery {
  min-height: 240px;
}

.photo-gallery.justified-gallery > a {
  overflow: hidden;
  border-radius: 4px;
  background: #eeeeee;
}

.photo-gallery.justified-gallery > a > .caption {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.1rem;
  min-height: 4.5rem;
  padding: 0.8rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 180ms ease;
}

.photo-gallery.justified-gallery > a:hover > .caption {
  opacity: 1;
}

.caption strong,
.caption small {
  display: block;
  color: #ffffff;
}

.caption strong {
  font-size: 1rem;
}

.caption small {
  opacity: 0.82;
  font-size: 0.78rem;
}

.empty-state {
  margin: 0;
  padding: 2rem 0;
  color: var(--muted);
}

.empty-inline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.widget .card-content {
  padding: 1.25rem;
}

.profile-widget {
  text-align: center;
}

.profile-avatar {
  display: flex;
  justify-content: center;
  margin: 0 0 0.75rem;
}

.profile-title {
  margin: 0;
  color: var(--strong);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.profile-subtitle,
.profile-location {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.profile-location {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: var(--strong);
  font-size: 1.25rem;
  font-weight: 600;
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.menu-label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.menu-list {
  display: grid;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5em 0.75em;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}

.menu-item:hover,
.menu-item.is-active {
  color: var(--primary);
  background: var(--soft);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag,
.tags {
  display: inline-flex;
  align-items: center;
}

.tag {
  min-height: 1.7rem;
  padding: 0 0.65rem;
  color: var(--text);
  background: var(--soft);
  border-radius: 4px;
  font-size: 0.85rem;
}

.tags .tag:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.tags .tag:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.tag.is-primary {
  color: #ffffff;
  background: var(--primary);
}

.widget-copy {
  margin: 0;
  color: var(--muted);
}

.lightbox-caption {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.lightbox-caption .caption-location {
  margin: 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.lightbox-caption h2 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
}

.lightbox-caption p {
  margin: 0.2rem 0;
}

.caption-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.caption-meta span {
  padding: 0.15rem 0.5rem;
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  font-size: 0.78rem;
}

.footer {
  padding: 2rem 0;
  color: var(--muted);
}

.footer .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
}

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

  .column-left {
    order: -1;
  }

  .profile-widget {
    text-align: left;
  }

  .profile-widget .card-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1rem;
    align-items: center;
  }

  .profile-avatar {
    grid-row: span 3;
    margin: 0;
  }

  .avatar-mark.is-large {
    width: 4rem;
    height: 4rem;
    font-size: 0.95rem;
  }

  .profile-location {
    justify-content: flex-start;
  }

  .profile-stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .section {
    padding: 1rem 0;
  }

  .card-content {
    padding: 1rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar .button {
    width: 100%;
  }

  .language-switcher {
    margin-left: auto;
  }

  .footer .container {
    align-items: flex-start;
    flex-direction: column;
  }
}
