:root {
  --bg: #fbf8f1;
  --text: #0e0f10;
  --accent: #48cae4;
  --muted: rgba(14, 15, 16, 0.74);
  --faint: rgba(14, 15, 16, 0.56);
  --border: rgba(14, 15, 16, 0.12);
  --border-strong: rgba(14, 15, 16, 0.18);
  --link-underline: rgba(14, 15, 16, 0.25);
  --focus: rgba(72, 202, 228, 0.9);
  --marker: rgba(72, 202, 228, 0.32);

  --maxw: 44rem;
  --padx: clamp(1.25rem, 4vw, 2.25rem);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --lh: 1.55;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: var(--lh);
  letter-spacing: -0.01em;
}

/* keep copy calm and intentional */
body,
button,
input,
textarea {
  font-size: 16px;
}

@media (min-width: 52rem) {
  body,
  button,
  input,
  textarea {
    font-size: 17px;
  }
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: rgba(72, 202, 228, 0.95);
}

a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.55;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: var(--padx);
  top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 120ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0%);
}

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 7vh, 4rem) var(--padx) 3.5rem;
}

.header {
  margin-bottom: clamp(1.5rem, 5vh, 2.5rem);
}

.hero-title {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.05;
}

.marker {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.marker::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.08em;
  top: 57%;
  height: 48%;
  background: var(--marker);
  border-radius: 999px;
  transform: rotate(-1.7deg);
  z-index: -1;
}

.hero-subtitle {
  margin: 0 0 0.75rem;
  max-width: 36rem;
  color: var(--muted);
}

.hero-meta {
  margin: 0;
  color: var(--faint);
  font-size: 0.95em;
}

.main {
  display: block;
}

.section {
  padding: clamp(1.5rem, 5vh, 2.25rem) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-title {
  margin: 0 0 0.9rem;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.section-title,
.hero-title,
.hero-subtitle,
.hero-meta,
.prose,
.note,
.project-name,
.project-desc,
.project-meta,
.credential-label,
.credential-value,
.socials,
.footer-text {
  text-wrap: pretty;
}

.hero-title {
  hyphens: none;
}

.prose,
.project-desc,
.project-meta,
.note,
.hero-subtitle {
  hyphens: auto;
}

.prose {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.note {
  margin: 0 0 1rem;
  color: var(--faint);
}

.projects {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.project {
  padding: 0;
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-head a {
  color: inherit;
}

.project-name {
  font-weight: 600;
  color: var(--text);
}

.project-links {
  white-space: nowrap;
  color: var(--faint);
  font-size: 0.95em;
}

.project-desc {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.project-meta {
  margin: 0.25rem 0 0;
  color: var(--faint);
  font-size: 0.95em;
}

.credentials {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.credential {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
}

@media (max-width: 32rem) {
  .credential {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.credential-label {
  color: var(--faint);
}

.credential-value {
  color: var(--muted);
}

.socials {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  color: var(--muted);
}

.socials a {
  text-decoration-color: var(--link-underline);
}

.socials a:hover {
  text-decoration-color: rgba(72, 202, 228, 0.95);
}

.footer {
  margin-top: clamp(2.25rem, 7vh, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.footer-text {
  margin: 0;
  color: var(--faint);
  font-size: 0.95em;
}

/* intentionally no auto dark mode: keep the cream background + black text */


