/* kyubuns.dev */

:root {
  --ink: #271353;
  --ink-soft: #4a3e6a;
  --muted: #776d8c;
  --line-strong: rgba(39, 19, 83, 0.22);
  --paper: #f7f4ec;
  --surface: #fffefa;
  --green: #b0d88b;
  --green-soft: #cbe5b3;
  --green-pale: #eff7e6;
  --green-mid: #8cc463;
  --green-deep: #5d9a37;
  --yellow: #ffdb80;
  --yellow-soft: #ffe7ac;
  --yellow-pale: #fff7df;
  --lavender: #f3e9ff;
  --red: #c72260;
  --display: FFCubeWebProLight, "Avenir Next", "Helvetica Neue", sans-serif;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--green-pale);
  font-family: var(--display);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.pill:hover { background: var(--yellow-soft); }
.pill:active { background: var(--yellow); }
.pill-primary { background: var(--yellow); }
.pill .arrow { font-family: var(--font); font-size: 0.8em; opacity: 0.7; }

/* ---------------------------------------------------------------------- home */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--yellow-soft);
}

.stage {
  display: grid;
  place-items: center;
  padding: 56px var(--gutter) 64px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 26px, transparent 26px 52px),
    var(--green);
}

.profile-card {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 36px;
  background: var(--surface);
  border-radius: 28px;
}

.avatar {
  display: block;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--yellow-soft);
}

.avatar img { display: block; width: 100%; height: 100%; }

.identity p { margin: 0; }

.kana {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--ink-soft);
}

.name {
  margin: 0;
  font-family: var(--display);
  font-weight: normal;
  font-size: clamp(3rem, 8vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.role {
  margin-top: 6px !important;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.tagline {
  margin-top: 16px !important;
  padding-top: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.contact {
  margin-top: 14px !important;
  font-size: 0.8125rem;
  color: var(--muted);
}

.contact a { color: var(--ink-soft); text-underline-offset: 3px; }

.recent {
  position: relative;
  padding: 44px var(--gutter) 40px;
}

.recent-inner { max-width: 1040px; margin: 0 auto; }

.recent-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}

.recent h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: normal;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.recent-head a {
  font-family: var(--display);
  font-size: 1.0625rem;
  text-underline-offset: 4px;
}

.recent ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent li a {
  display: grid;
  gap: 6px;
  height: 100%;
  padding: 16px 18px 18px;
  background: var(--surface);
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.6;
  text-decoration: none;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.recent li a:hover { background: var(--yellow-pale); }

.recent time {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 760px) {
  .profile-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    gap: 20px;
    padding: 28px 22px 26px;
    border-radius: 22px;
  }
  .avatar { width: 152px; border-radius: 18px; }
  .links { justify-content: center; gap: 10px; }
  .pill { padding: 6px 16px; }
  .stage { padding-top: 32px; padding-bottom: 44px; }
  .recent ol { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ------------------------------------------------------------- inner pages */






/* --- resume --- */

.resume {
  max-width: 920px;
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}

.resume-hero {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.resume-hero img { border-radius: 20px; display: block; }

.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.resume-hero h1 {
  margin: 2px 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.3;
}

.resume-hero h1 span { font-family: var(--display); font-weight: normal; }

.resume-links { display: flex; flex-wrap: wrap; gap: 8px; }
.resume-links .pill { min-height: 36px; padding: 2px 14px; font-size: 0.9375rem; }

.resume-body h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 56px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-size: 1.375rem;
  font-weight: 800;
}

.resume-body h3::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: none;
  background: var(--green-mid);
  border-radius: 3px;
  transform: rotate(45deg);
}

.resume-body h4 { margin: 0; font-size: 1rem; }

.resume-body .item {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid rgba(39, 19, 83, 0.1);
  line-height: 1.6;
}

.resume-body > h3:first-child { margin-top: 40px; }

.resume-body h3 + .item { border-top: 0; padding-top: 4px; }

.item-when { font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.item-title { font-weight: 800; }

.item-title a {
  text-decoration: underline;
  text-decoration-color: var(--green-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.item-title a:hover { color: var(--red); text-decoration-color: var(--red); }

.item-kind {
  justify-self: end;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--lavender);
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.resume-body ul {
  margin: 4px 0 16px calc(6.5em + 18px);
  padding-left: 1.1em;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.resume-body ul li::marker { color: var(--green-deep); }
.resume-body li a { text-underline-offset: 3px; }

.resume-body h3 + ul,
.resume-body h4:not(.item) + ul { margin-left: 0; font-size: 0.9375rem; }

@media (max-width: 640px) {
  .resume { padding-top: 32px; }
  .resume-hero { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; }
  .resume-body .item { grid-template-columns: minmax(0, 1fr) auto; }
  .item-when { grid-column: 1 / -1; }
  .resume-body ul { margin-left: 0; }
}

/* --- 404 --- */

.notfound { text-align: center; }
.notfound .profile-card { display: block; width: min(100%, 520px); padding: 40px 28px; }
.notfound-code { margin: 0; font-family: var(--display); font-size: 5.5rem; line-height: 1; }
.notfound .links { justify-content: center; }

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