:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --heading: #111111;
  --muted: #767671;
  --faint: #a5a49e;
  --border: #edece7;
  --card-hover-bg: #fafaf8;
  --hover-border: #d8d6d0;
  --link: #3a3a38;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', 'Noto Serif JP', serif;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ---- site nav ---- */
.site-nav-wrap {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-nav {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .brand {
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  color: var(--heading);
  letter-spacing: 0.01em;
}

.site-nav .crumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.15s ease;
}

.site-nav .crumb:hover {
  color: var(--heading);
}

/* ---- page shell ---- */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.page-career {
  padding-bottom: 96px;
}

/* ---- masthead ---- */
.masthead {
  margin-bottom: 44px;
}

.masthead-lg {
  margin-bottom: 56px;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.eyebrow .sep {
  color: var(--hover-border);
  margin: 0 8px;
}

.name {
  font-size: 38px;
  font-weight: 500;
  font-style: italic;
  color: var(--heading);
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.page-title {
  font-size: 32px;
  font-weight: 500;
  font-style: italic;
  color: var(--heading);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* ---- social links row (masthead) ---- */
.social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.social-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted);
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--link);
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.social-list a:hover {
  color: var(--heading);
  border-color: var(--hover-border);
}

/* ---- index / link cards ---- */
.index {
  padding: 40px 0;
}

.card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.link-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--hover-border);
}

.link-card:focus-visible {
  outline: 2px solid var(--hover-border);
  outline-offset: 2px;
}

.link-card .card-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.link-card .category {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.link-card .date {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
  flex-shrink: 0;
}

.link-card .title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 6px;
}

.link-card .desc {
  display: block;
  font-family: 'Noto Serif JP', 'Source Serif 4', serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.7;
}

.link-card .url {
  display: block;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-align: right;
  margin-top: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- timeline (career / education) ---- */
.timeline-section {
  margin-bottom: 56px;
}

.timeline-section:last-child {
  margin-bottom: 0;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.timeline li {
  display: flex;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--border);
}

.timeline .period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--faint);
  width: 96px;
  flex-shrink: 0;
  padding-top: 4px;
}

.timeline .body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline .title {
  font-size: 17px;
  font-weight: 500;
  color: var(--heading);
}

.timeline .desc {
  font-family: 'Noto Serif JP', 'Source Serif 4', serif;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 520px) {
  .page {
    padding: 48px 20px 56px;
  }

  .name {
    font-size: 30px;
  }

  .timeline li {
    flex-direction: column;
    gap: 8px;
  }

  .timeline .period {
    width: auto;
    padding-top: 0;
  }
}
