:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --body: #333333;
  --muted: #777777;
  --line: #e5e5e5;
  --link: #1a56db;
  --accent: #f5a623;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.7;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

main.wrap {
  padding-top: 56px;
}

/* Headings */
h1 {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 16px;
}

.role {
  color: var(--muted);
  margin: 4px 0 0;
}

p {
  margin: 16px 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  color: var(--body);
  font-weight: 600;
}

/* Inline bracket links */
.links a {
  white-space: nowrap;
}

/* Header layout: text beside photo */
header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.intro {
  flex: 1;
  min-width: 0;
}

.intro p:first-of-type {
  margin-top: 4px;
}

/* Profile photo */
.photo {
  display: block;
  width: 190px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

@media (max-width: 600px) {
  header {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .photo {
    width: 100%;
    max-width: 260px;
  }
}

/* Lists of items (experience / projects / writing) */
.item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.item:first-of-type {
  border-top: 1px solid var(--line);
}

.item .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.item .title {
  color: var(--ink);
  font-weight: 700;
}

.item .date {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
}

.item .desc {
  margin: 6px 0 0;
}

.item .meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding: 24px 0 48px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  h1 { font-size: 26px; }
  .item .head { flex-direction: column; gap: 2px; }
}
