:root {
  color-scheme: light;
  --bg: #fffaf0;
  --surface: #ffffff;
  --ink: #231f20;
  --muted: #5d5852;
  --accent: #f06f3c;
  --accent-dark: #b64b24;
  --bubble: #f8e8c8;
  --shadow: 0 18px 45px rgba(35, 31, 32, 0.12);
  --radius: 28px;
  --content: 760px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 111, 60, 0.12), transparent 30rem),
    radial-gradient(circle at 90% 20%, rgba(66, 135, 245, 0.1), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  line-height: 1.65;
}

main {
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0 1.5rem;
}

section {
  margin: clamp(1.75rem, 5vw, 3.25rem) 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 31, 32, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  min-height: 220px;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 11vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.65rem, 5vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

p,
ul {
  color: var(--muted);
}

p:last-child,
ul:last-child {
  margin-bottom: 0;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.45rem;
}

a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-color: rgba(240, 111, 60, 0.38);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

#pf {
  width: clamp(8.5rem, 26vw, 11.25rem);
  height: clamp(8.5rem, 26vw, 11.25rem);
  object-fit: cover;
  border: 8px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 18px 35px rgba(35, 31, 32, 0.22);
  transform: rotate(2deg);
}

#arrow {
  position: absolute;
  right: clamp(7.4rem, 22vw, 11rem);
  top: 37%;
  width: clamp(4.2rem, 15vw, 7rem);
  fill: var(--accent);
  transform: rotate(-10deg);
}

.speech {
  display: flex;
  margin: clamp(1.25rem, 5vw, 2.6rem) 0;
}

.speech:nth-of-type(odd) {
  justify-content: flex-end;
}

.bubble {
  position: relative;
  max-width: min(100%, 430px);
  padding: 1rem 1.25rem;
  background: var(--bubble);
  border: 2px solid rgba(35, 31, 32, 0.08);
  border-radius: 24px;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(35, 31, 32, 0.1);
}

.bubble .arrow {
  position: absolute;
  bottom: -0.55rem;
  left: 2rem;
  width: 1.15rem;
  height: 1.15rem;
  background: inherit;
  border-right: 2px solid rgba(35, 31, 32, 0.08);
  border-bottom: 2px solid rgba(35, 31, 32, 0.08);
  transform: rotate(45deg);
}

.speech:nth-of-type(odd) .bubble .arrow {
  right: 2rem;
  left: auto;
}

.resume-link,
.last-updated {
  text-align: center;
}

.resume-link {
  margin-bottom: 24px;
}

.last-updated {
  font-size: 0.85rem;
  opacity: 0.35;
}

@media (max-width: 620px) {
  main {
    width: min(calc(100% - 1rem), var(--content));
    padding-top: 1rem;
  }

  section {
    border-radius: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  h1 {
    max-width: 7ch;
  }

  #pf {
    order: -1;
  }

  #arrow {
    right: 50%;
    top: 46%;
    transform: translateX(105%) rotate(32deg);
  }

  .speech,
  .speech:nth-of-type(odd) {
    justify-content: center;
  }

  .bubble {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

