@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --pencil: #c0392b;
  --pencil-hover: #8e1f14;
  --faint: #9a9a9a;
  --line: #e8e8e8;
  --display: "Cormorant", Georgia, "Times New Roman", serif;
  --name: clamp(40px, 13.5vw, 108px);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --term-bg: #0d1117;
  --term-text: #c9d1d9;
  --term-dim: #8b949e;
  --term-prompt: #7ee787;
  --term-dir: #79c0ff;
  --term-tag: #d2a8ff;
  --term-border: transparent;
  --menu-bg: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --text: #ededed;
    --muted: #a0a0a0;
    --pencil: #e5685a;
    --pencil-hover: #ff9a8e;
    --faint: #707070;
    --line: #2a2a2a;
    --term-border: #2a2a2a;
    --menu-bg: #1a1a1a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color .15s, color .15s; }
a:hover { border-color: var(--text); }

.topbar { max-width: 720px; margin: 0 auto; padding: 24px 24px 0; }
.topbar nav { display: flex; justify-content: center; gap: 8px 28px; flex-wrap: wrap; font-size: 14px; }
.topbar nav a { color: var(--muted); border: none; }
.topbar nav a:hover { color: var(--text); }

main { max-width: 720px; margin: 0 auto; padding: 0 24px; }

section { padding: 56px 0 8px; scroll-margin-top: 16px; }

.hero { padding-top: 96px; }

.lockup { display: inline-block; max-width: 100%; }
h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--name);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  margin: 0;
}
.role {
  margin: .15em 0 0;
  max-width: none;
  font-family: var(--display);
  font-weight: 300;
  font-size: calc(var(--name) * .49);
  line-height: 1.1;
  letter-spacing: .15em;
  margin-right: -.15em;
  text-align: justify;
  text-align-last: justify;
  color: var(--muted);
}
section p.meta { font-family: var(--sans); font-size: 14px; color: var(--faint); margin: 28px auto 2px; }
section p.status { font-family: var(--sans); font-size: 17px; color: var(--muted); margin: 0 auto 24px; }

.icons { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 22px; }
.icons a { display: inline-flex; border: none; color: var(--pencil); padding: 4px; transition: color .15s, transform .15s; }
.icons a:hover { color: var(--pencil-hover); transform: rotate(-4deg); }
.icons svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; filter: url(#pencil); }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

h2 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.2; margin: 0 0 20px; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
h3 span { font-weight: 400; color: var(--muted); }

section p { margin: 0 auto 12px; max-width: 600px; font-family: var(--display); font-size: 20px; line-height: 1.6; }


.company { max-width: 560px; margin: 0 auto 32px; text-align: left; }
.company-top { display: flex; align-items: center; gap: 16px; }
@media (min-width: 640px) { .company-top { margin-left: -40px; } }
.company-lines { flex: 1; min-width: 0; display: grid; gap: 4px; }
.company-row { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.company-row h3 { margin: 0; font-size: 17px; font-weight: 700; }
.company-row .place { font-size: 14px; color: var(--faint); white-space: nowrap; }
.company-meta { font-size: 15px; color: var(--muted); }
.company-meta .when { font-size: 13px; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.role-item { margin-top: 22px; padding-left: 16px; border-left: 1px solid var(--line); }
.role-item .degree { margin: 0; }
.role-title { font-weight: 600; }
.mission { margin-top: 12px; }
.mission-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; }
.mission-title { font-style: italic; color: var(--text); }
.mission-head .when { font-size: 12px; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.role-item ul { list-style: none; margin: 6px 0 0; padding: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.role-item li { position: relative; padding-left: 14px; margin-bottom: 4px; }
.role-item li::before { content: "–"; position: absolute; left: 0; color: var(--faint); }
.school { max-width: 560px; margin: 0 auto 32px; text-align: left; }
.school-head { display: flex; align-items: center; gap: 12px; }
.school-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.school-head .place { margin-left: auto; font-size: 14px; color: var(--faint); white-space: nowrap; }
.logo { flex: none; display: flex; width: 54px; height: 38px; }
.logo-wide { width: 104px; height: 14px; }
.logo img { width: 100%; height: 100%; object-fit: contain; }
.degree { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin: 10px 0 0 66px; font-size: 15px; color: var(--text); }
.degree .when { font-size: 13px; letter-spacing: .08em; color: var(--faint); white-space: nowrap; }
.school ul { list-style: none; margin: 4px 0 0 66px; padding: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }

section p.mails { font-family: var(--sans); font-size: 16px; }

footer { max-width: 720px; margin: 72px auto 0; padding: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
footer p { margin: 0; }

.nav-dropdown { position: relative; }
.nav-trigger .caret { font-size: 10px; margin-left: 2px; }
.nav-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 170px; margin: 0; padding: 8px 0; list-style: none; text-align: left; z-index: 10;
  background: var(--menu-bg); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s;
}
.nav-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu { visibility: visible; opacity: 1; }
.topbar .nav-menu a { display: block; padding: 6px 16px; color: var(--muted); font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.topbar .nav-menu a:hover, .topbar .nav-menu a:focus-visible { color: var(--text); background: var(--line); }
a:focus-visible { outline: 2px solid var(--pencil); outline-offset: 3px; border-radius: 2px; }

.terminal {
  max-width: 600px; margin: 0 auto; padding: 22px 24px; text-align: left;
  background: var(--term-bg); color: var(--term-text); border: 1px solid var(--term-border); border-radius: 8px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
}
.terminal p { max-width: none; margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.terminal .prompt { color: var(--term-text); }
.terminal .ps1 { color: var(--term-prompt); }
.project { margin: 20px 0 22px; padding-left: 18px; scroll-margin-top: 24px; border-left: 2px solid transparent; transition: border-color .3s; }
.project:target { border-left-color: var(--term-prompt); }
.project-name { margin: 0 0 2px -18px; font-family: var(--mono); font-size: 14px; font-weight: 400; color: var(--term-dir); }
.terminal .project-meta { color: var(--term-dim); }
.terminal .project-desc { margin: 6px 0; color: var(--term-text); }
.terminal .project-tags { color: var(--term-tag); }
.project-link { color: var(--term-dir); border-bottom-color: transparent; }
.project-link:hover { border-bottom-color: var(--term-dir); }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: text-bottom; background: var(--term-text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

#about p {
  text-align: justify;
  hyphens: auto;
}

@media (max-width: 560px) {
  .hero { padding-top: 64px; }
  .degree, .school ul { margin-left: 0; }
  .school-head h3 { flex: 1; min-width: 0; }
  .terminal { padding: 18px 16px; }
  .topbar nav { gap: 8px 18px; }
}
