:root {
  --brand-color: #457dd9;
  --primary-text: #333;
  --secondary-text: #999;
  --lighter-gray: #f6f6f6;
  --light-gray: #e6e6e6;
  --mid-gray: #ccc;
  --dark-gray: #444;
  --darker-gray: #1a1a1a;
  --white: #fff;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  --container: 1200px;
  --content: 720px;
  --gap: 3.6rem;
}

@media (max-width: 767px) {
  :root {
    --gap: 2rem;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--primary-text);
  font-family: var(--font-sans);
  font-size: 1.6rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  opacity: 0.8;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--darker-gray);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.site-header,
.site-footer,
.cover,
.social-links,
.feed-wrap,
.page-heading,
.article {
  width: min(100% - var(--gap) * 2, var(--container));
  margin: 0 auto;
}

.site-header {
  height: 100px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 2.8rem;
}

.brand {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2.8rem;
  justify-content: flex-start;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav a {
  color: var(--darker-gray);
}

.cover {
  width: min(100% - var(--gap) * 2, var(--content));
  margin-top: 48px;
  text-align: center;
}

.cover-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 32px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: -2rem;
  margin-bottom: 2rem;
}

.social-links a {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #666;
}

.social-links a:hover {
  color: #1a1a1a;
  opacity: 1;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.feed-wrap {
  display: grid;
  grid-template-columns: 1fr min(var(--content), 100%) 1fr;
  padding: 6rem 0 8rem;
}

.feed-wrap.compact {
  padding-top: 3.8rem;
}

.feed {
  grid-column: 2;
}

.feed-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 1.5rem 0;
  border-top: 1px solid var(--light-gray);
  line-height: 1;
  overflow: hidden;
}

.feed-item:last-child {
  border-bottom: 1px solid var(--light-gray);
}

.feed-calendar {
  display: flex;
  gap: 0.4rem;
  min-width: 45px;
  margin-right: 1.5rem;
  color: var(--brand-color);
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}

.feed-title {
  flex: 1 1 auto;
  margin: 0;
  padding-right: 1rem;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-meta {
  color: var(--secondary-text);
  font-size: 1.4rem;
  white-space: nowrap;
  transition: margin 0.2s ease-in-out;
}

.feed-link {
  position: absolute;
  right: 0;
  color: var(--secondary-text);
  font-size: 1.8rem;
  transform: translateX(2.2rem);
  transition: transform 0.2s ease-in-out;
}

.feed-item:hover .feed-title {
  opacity: 0.8;
}

.feed-item:hover .feed-meta {
  margin-right: 1.8rem;
}

.feed-item:hover .feed-link {
  transform: translateX(0);
}

.page-heading {
  max-width: var(--content);
  padding-top: 6rem;
  text-align: center;
}

.page-heading h1 {
  font-size: 4rem;
  line-height: 1.2;
}

.article {
  display: grid;
  grid-template-columns: 1fr min(var(--content), 100%) 1fr;
  padding: 6rem 0 8rem;
}

.article-header,
.article-body {
  grid-column: 2;
}

.article-header {
  margin-bottom: 5.6rem;
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 2.6rem;
  color: var(--secondary-text);
  font-size: 1.3rem;
  line-height: 1.4;
}

.single-meta {
  margin-bottom: 2.4rem;
  color: var(--secondary-text);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.article-header h1 {
  margin-bottom: 2.8rem;
  font-size: 4rem;
  line-height: 1.35;
  word-break: break-word;
}

.article-header p {
  color: var(--secondary-text);
  font-size: 1.8rem;
  line-height: 1.65;
}

.article-body {
  font-size: 1.7rem;
  line-height: 2.1;
  word-break: break-word;
}

.article-body > * + * {
  margin-top: 1.6em;
}

.article-body h2 {
  margin-top: 2.4em;
  margin-bottom: 0.8em;
  font-size: 1.6em;
  line-height: 1.4;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4em;
}

.article-body code {
  padding: 0.25em 0.35em;
  border-radius: 3px;
  background: var(--lighter-gray);
  color: var(--brand-color);
  font-size: 0.9em;
}

.article-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
}

.page-article {
  padding-top: 3.8rem;
}

.form-frame {
  grid-column: 2;
  width: 100%;
  overflow: hidden;
}

.form-frame iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
}

.site-footer {
  padding: 2.8rem 0 4.2rem;
  color: var(--secondary-text);
  font-size: 1.4rem;
  text-align: center;
}

@media (max-width: 767px) {
  .site-header {
    height: 64px;
  }

  .brand {
    font-size: 2.2rem;
  }

  .nav {
    gap: 1.6rem;
    justify-content: flex-end;
  }

  .cover {
    margin-top: 30px;
  }

  .feed-wrap {
    padding: 3rem 0 4.8rem;
  }

  .feed-meta {
    display: none;
  }

  .feed-title {
    white-space: normal;
  }

  .feed-link {
    display: none;
  }

  .page-heading h1,
  .article-header h1 {
    font-size: 2.6rem;
  }

  .article {
    padding: 3rem 0 4.8rem;
  }
}
