:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6d6d68;
  --line: #d9d9d4;
  --soft-line: #ecece7;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 22px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--soft-line);
}

.site-name {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 40px);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-nav a {
  padding: 6px 0;
}

.site-nav a:focus-visible,
.site-nav a:hover {
  color: var(--ink);
}

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(40px, 8vw, 96px);
  align-items: end;
  min-height: calc(100svh - 81px);
  padding: clamp(56px, 8vw, 104px) 0 72px;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 520px;
}

.intro-kicker,
.section-heading p,
.work-number,
.work-item span {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 20px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  font-weight: 400;
  line-height: 0.95;
}

.intro-lead {
  margin: 0;
  color: #252525;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 34rem;
}

.intro-media {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.intro-media img {
  width: 100%;
  height: clamp(420px, 66svh, 720px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1);
}

.profile,
.work,
.contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  padding: clamp(64px, 9vw, 112px) 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  align-content: start;
  gap: 10px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
  word-break: normal;
}

.profile-body {
  display: grid;
  gap: 42px;
}

.profile-body > p {
  margin: 0;
  max-width: 760px;
  color: #252525;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
}

.profile-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.profile-list div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-line);
}

dt {
  color: var(--muted);
  font-size: 0.84rem;
}

dd {
  margin: 0;
}

.notion-credential {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.35;
}

.notion-logo {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
}

.official-label {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}

.work-item {
  min-height: 230px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.work-item h3 {
  margin: 8px 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
}

.work-item p:not(.work-number) {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.contact {
  border-bottom: 0;
}

.linkedin-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  min-height: 46px;
  padding: 10px 18px 10px 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.linkedin-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
}

.linkedin-badge:focus-visible,
.linkedin-badge:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .intro,
  .profile,
  .work,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: 0;
    padding-top: 64px;
  }

  .intro-media {
    order: -1;
  }

  .intro-media img {
    height: min(56svh, 420px);
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  .site-footer {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding: 16px 0;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: 3.35rem;
  }

  .work-grid,
  .profile-list div {
    grid-template-columns: 1fr;
  }

  .profile-list div {
    gap: 4px;
  }

  .work-item {
    min-height: 210px;
  }

  .intro-media img {
    height: min(58svh, 360px);
  }
}
