@font-face {
  font-family: "LINE Seed JP";
  src: url("/assets/fonts/line-seed-jp-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #f4f2ed;
  --ink: #171714;
  --muted: #68665f;
  --line: #d7d3ca;
  --accent: #7d2927;
  --content: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "LINE Seed JP", Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

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

.site-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  max-width: 1280px;
  min-height: 100vh;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  padding: 54px 24px 40px 30px;
  flex-direction: column;
  align-items: flex-start;
}

.brand {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 0;
  filter: grayscale(1) contrast(1.05);
  object-fit: cover;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sidebar nav {
  display: flex;
  margin-top: 47px;
  flex-direction: column;
  gap: 10px;
}

.sidebar nav a {
  width: fit-content;
  color: var(--muted);
  text-decoration: none;
}

.sidebar nav a:hover,
.sidebar nav a[aria-current="page"] {
  color: var(--ink);
}


.main {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  padding: 76px 56px 36px 64px;
  flex-direction: column;
}

.main > :not(footer) {
  width: 100%;
  max-width: var(--content);
}

.hero,
.page-header {
  margin-bottom: 62px;
}

.hero {
  padding-top: 9px;
}

.eyebrow {
  margin: 0 0 18px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lede {
  max-width: 650px;
  margin-bottom: 0;
  color: #383732;
  font-size: 19px;
  line-height: 1.5;
}

.lede-wide {
  max-width: 800px;
  margin-bottom: 0;
  color: #383732;
  font-size: 19px;
  line-height: 1.5;
}


.home-rows {
  border-top: 1px solid var(--ink);
}

.home-row {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 32px;
  padding: 26px 0 29px;
  border-bottom: 1px solid var(--line);
}

.home-row h2,
.blog-category > h2 {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-row p {
  max-width: 580px;
  margin-bottom: 14px;
  font-size: 16px;
}

.home-row ul {
  margin: 19px 0 0;
  padding: 0;
  list-style: none;
}

.home-row li {
  position: relative;
  margin-top: 7px;
  padding-left: 17px;
  color: #44423c;
}

.home-row li::before {
  position: absolute;
  left: 0;
  content: "–";
  color: var(--accent);
}

.page-header h1 {
  max-width: 680px;
}

.page-header.compact {
  margin-bottom: 72px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 48px 32px;
}

.member {
  min-width: 0;
  text-align: center;
}

.member-photo {
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--line);
  filter: grayscale(1);
  object-fit: cover;
}

.member-body h2 {
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.member-role {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.member-body > p:not(.member-role) {
  max-width: 180px;
  margin-right: auto;
  margin-left: auto;
  color: #44423c;
  font-size: 13px;
}

.social-links {
  display: flex;
  margin: 15px 0 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  list-style: none;
}

.social-links a {
  color: var(--muted);
  font-size: 12px;
}

.blog-category {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 68px;
}

.post-list {
  border-top: 1px solid var(--ink);
}

.post-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.post-list-item span {
  font-size: 17px;
}

.post-list-item time {
  padding-top: 3px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.post {
  max-width: 760px !important;
}

.post-header {
  margin-bottom: 54px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ink);
}

.back-link {
  display: inline-block;
  margin-bottom: 46px;
  text-decoration: none;
}

.post-header h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.post-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.prose {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
}

.prose h2 {
  margin: 46px 0 13px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.prose p {
  margin-bottom: 20px;
}

footer {
  display: flex;
  width: 100%;
  max-width: var(--content);
  margin-top: auto;
  padding-top: 90px;
  padding-bottom: 5px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 780px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    position: static;
    display: flex;
    width: 100%;
    height: auto;
    padding: 22px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }


  .brand img {
    width: 48px;
    height: 48px;
  }


  .sidebar nav {
    margin: 0;
    flex-direction: row;
    gap: 16px;
  }


  .main {
    min-height: calc(100vh - 93px);
    padding: 58px 24px 28px;
  }

  .hero,
  .page-header {
    margin-bottom: 52px;
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 560px) {
  h1 {
    font-size: 42px;
  }


  .home-row,
  .blog-category {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .post-list-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .post-list-item time {
    padding-top: 0;
  }

  footer {
    padding-top: 68px;
  }
}
