:root {
  color-scheme: light;
  --bg: #ffffff;
  --footer: #24292e;
  --footer-line: #373c42;
  --text: #24292e;
  --muted: #4f565d;
  --line: #eeeeee;
  --accent: #245175;
  --max: 960px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 15px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: min(350px, 62vw);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 15px 58px;
}

.hero {
  margin-bottom: 24px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  font-size: 42px;
  margin: 0 0 26px;
  font-weight: 700;
}

h2 {
  font-size: 28px;
  margin-top: 36px;
}

h3 {
  font-size: 22px;
  margin-top: 28px;
}

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

.latest-posts li {
  margin: 0 0 26px;
}

.latest-post-image {
  margin-bottom: 8px;
}

.latest-post-image img {
  display: block;
  max-width: 768px;
  max-height: 768px;
}

.latest-post-title {
  display: inline-block;
  font-size: 16px;
}

.meta,
.latest-post-date {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin: 2px 0 8px;
}

.latest-post-excerpt {
  margin: 0;
  max-width: 930px;
}

.content {
  max-width: 930px;
  min-width: 0;
  overflow-wrap: break-word;
}

.content > :first-child {
  margin-top: 0;
}

.content pre,
.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.content pre {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  background: #f6f7f8;
  white-space: pre-wrap;
  word-break: break-word;
}

.content a {
  overflow-wrap: anywhere;
}

.content ol.wp-block-list[style*="font-size"] {
  font-size: 16px !important;
}

.content li.has-large-font-size {
  font-size: 36px !important;
  line-height: 1.7;
  font-weight: 700;
  margin-top: 10px;
}

.content figure {
  max-width: 100%;
  margin: 26px 0;
}

.content .wp-block-image {
  margin: 26px 0;
}

.content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 0;
}

.content .wp-block-gallery figure {
  margin: 0;
}

.content .wp-block-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content figcaption {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.content .wp-block-coblocks-author {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 620px;
  margin: 34px 0 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.content .wp-block-coblocks-author__avatar {
  flex: 0 0 96px;
  margin: 0;
}

.content .wp-block-coblocks-author__avatar-img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.content .wp-block-coblocks-author__content {
  min-width: 0;
}

.content .wp-block-coblocks-author__name {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.content .wp-block-coblocks-author__biography {
  margin: 0 0 10px;
  line-height: 1.5;
}

.content .wp-block-button {
  margin: 0;
}

.content .wp-block-button__link {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.4;
}

.content iframe {
  width: 100%;
  max-width: 100%;
}

.tmm_wrap {
  margin-top: 26px;
}

.tmm_member {
  max-width: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fbfcfa;
}

.tmm_photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.tmm_names {
  font-size: 20px;
  font-weight: 700;
}

.tmm_job {
  color: var(--muted);
  margin-bottom: 12px;
}

.tmm_scblock {
  display: flex;
  gap: 10px;
}

.tmm_sociallink img {
  width: 24px;
  height: 24px;
}

.site-footer {
  background: var(--footer);
  color: #ffffff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 15px;
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(140px, 1fr) minmax(140px, 1fr);
  gap: 56px;
}

.footer-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
}

.footer-summary {
  max-width: 310px;
}

.footer-heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid var(--footer-line);
}

.footer-bottom-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 15px;
  color: #e1e5e8;
  font-size: 14px;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 34px;
  }

  .latest-post-image img {
    max-width: 100%;
  }

  .content {
    max-width: 100%;
  }

  .content .wp-block-coblocks-author {
    align-items: flex-start;
    gap: 14px;
  }

  .content .wp-block-coblocks-author__avatar {
    flex-basis: 72px;
  }

  .content .wp-block-coblocks-author__avatar-img {
    width: 72px;
    height: 72px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
