:root {
  color: #20201e;
  background: #f5f3ef;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; }

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid #d7d4cd;
}

.brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-decoration: none;
}

nav { display: flex; gap: 20px; }

nav a,
footer a {
  color: #6b6963;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  text-decoration: none;
}

nav a:hover,
footer a:hover,
.text-link:hover { color: #e24d2b; }

.hero {
  display: grid;
  align-content: center;
  min-height: 68vh;
  padding-block: 96px;
}

.eyebrow {
  margin: 0 0 19px;
  color: #e24d2b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 810px;
  margin-bottom: 28px;
  font-size: clamp(3.3rem, 8.2vw, 7.6rem);
  line-height: 1.02;
}

.lead {
  max-width: 490px;
  margin-bottom: 40px;
  color: #5b5954;
  font-size: 1rem;
  line-height: 1.9;
}

.text-link {
  width: fit-content;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.section {
  display: grid;
  grid-template-columns: minmax(180px, 0.4fr) 1fr;
  gap: 32px;
  padding-block: 110px;
  border-top: 1px solid #d7d4cd;
}

.section-heading h2,
.about h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.empty-state {
  padding: 26px 0;
  border-block: 1px solid #d7d4cd;
}

.empty-state p { margin-bottom: 8px; }

.muted { color: #77746d; font-size: 0.9rem; }

.post-list { border-top: 1px solid #d7d4cd; }

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 94px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid #d7d4cd;
  text-decoration: none;
  transition: color 180ms ease, padding-inline 180ms ease;
}

.post-card:hover { padding-inline: 12px; color: #e24d2b; }
.post-card time { color: #77746d; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.7rem; }
.post-card strong { font-size: 1rem; font-weight: 500; letter-spacing: -0.02em; }
.post-card span:not(.post-arrow) { grid-column: 2; color: #77746d; font-size: 0.84rem; line-height: 1.65; }
.post-arrow { grid-column: 3; grid-row: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.74rem; }

.tool-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 29px 0;
  border-block: 1px solid #d7d4cd;
  text-decoration: none;
  transition: color 180ms ease, padding-inline 180ms ease;
}

.tool-card:hover { padding-inline: 12px; color: #e24d2b; }

.tool-number,
.tool-arrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.tool-content { display: grid; gap: 10px; }
.tool-content strong { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em; }
.tool-content span { color: #6b6963; font-size: 0.9rem; line-height: 1.7; }

.about { grid-template-columns: minmax(180px, 0.4fr) 1fr; }
.about > p:last-child { max-width: 450px; color: #5b5954; line-height: 1.9; }

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 24px 42px;
  color: #6b6963;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

@media (max-width: 640px) {
  .site-header, main, footer { width: min(100% - 32px, 1120px); }
  .site-header { min-height: 68px; }
  nav { gap: 13px; }
  .hero { min-height: 60vh; padding-block: 72px; }
  .section,
  .about { grid-template-columns: 1fr; gap: 25px; padding-block: 74px; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .post-card { grid-template-columns: 1fr auto; gap: 8px; }
  .post-card time { grid-column: 1; }
  .post-card strong { grid-column: 1; }
  .post-card span:not(.post-arrow) { grid-column: 1; }
  .post-arrow { grid-column: 2; grid-row: 2; }
}
