:root {
  --ink: #181a19;
  --muted: #626864;
  --line: #d9dedb;
  --paper: #f8f9f7;
  --accent: #28624e;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  display: flex;
  max-width: var(--content);
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 28px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand { font-size: 17px; font-weight: 700; }

nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

nav a:hover, nav a:focus-visible, .text-link:hover, .text-link:focus-visible {
  color: var(--accent);
}

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

main, footer {
  max-width: var(--content);
  padding-right: 28px;
  padding-left: 28px;
  margin: 0 auto;
}

.hero {
  display: flex;
  min-height: calc(100vh - 76px);
  max-width: 940px;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0 110px;
}

.label {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 34px;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 650;
  line-height: 1.4;
}

h3 { margin-bottom: 12px; font-size: 21px; }

.lead {
  max-width: 710px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  width: fit-content;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
}

.text-link span { margin-left: 8px; }

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 80px;
}

.body-copy { padding-top: 43px; }
.body-copy p, .contact > p:last-child, .work-list p { color: var(--muted); }
.body-copy p:last-child { margin-bottom: 0; }

.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.work-list article {
  min-height: 270px;
  padding: 30px 30px 0 0;
  border-right: 1px solid var(--line);
}

.work-list article + article { padding-left: 30px; }
.work-list article:last-child { border-right: 0; }

.work-list span {
  display: block;
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.work-list p { margin-bottom: 0; font-size: 15px; }
.contact { min-height: 360px; }
.contact > p:last-child { margin-bottom: 0; font-size: 17px; }
.contact .text-link { display: inline-block; margin-top: 18px; }

footer {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

footer p { margin: 0; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.inline-link {
  color: var(--accent);
}

.inline-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-email {
  display: inline-block;
  padding: 12px 0;
  border-bottom: 1px solid currentColor;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.legal-page {
  max-width: 820px;
  padding: 110px 0 130px;
}

.legal-page > h1 {
  font-size: clamp(42px, 6vw, 68px);
}

.page-lead {
  margin-bottom: 72px;
  color: var(--muted);
  font-size: 18px;
}

.legal-page section {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.legal-page section h2 {
  margin-bottom: 20px;
  font-size: 25px;
}

.legal-page section p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  padding-left: 1.4em;
  margin: 20px 0;
}

.updated {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .site-header, main, footer { padding-right: 20px; padding-left: 20px; }
  .site-header { min-height: 68px; }
  nav { gap: 18px; }
  .hero { min-height: calc(100vh - 68px); padding: 64px 0 80px; }
  h1 { font-size: 44px; }
  .section { padding: 78px 0; }
  .two-column, .work-list { grid-template-columns: 1fr; }
  .two-column { gap: 12px; }
  .body-copy { padding-top: 0; }

  .work-list article, .work-list article + article {
    min-height: auto;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .work-list article:last-child { border-bottom: 0; }
  .work-list span { margin-bottom: 20px; }
  footer { min-height: 84px; }
  .legal-page { padding: 78px 0 96px; }
}

@media (max-width: 480px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  nav { width: 100%; justify-content: space-between; }
  .hero { min-height: auto; }
  h1 { font-size: 38px; }
  .lead { font-size: 16px; }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 4px 16px;
  }
}
