* {
  box-sizing: border-box;
}

:root {
  --paper: #fbfaf7;
  --ink: #161616;
  --soft-ink: #525252;
  --line: #dad4c9;
  --moss: #4c6a54;
  --clay: #8e3f2f;
  --white: #ffffff;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 16px 18px;
  background: var(--paper);
}

.brand {
  font-family: "Ramaraja", serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.nav_toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.menu_tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu_icon {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.menu_icon span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 8px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.sr_only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.links_list {
  grid-column: 1 / -1;
  display: none;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.links_list a {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}

.links_list a:hover,
.links_list a:focus-visible {
  border-color: var(--ink);
}

.nav_toggle:checked + .menu_tab + .links_list {
  display: flex;
}

.nav_toggle:checked + .menu_tab {
  background: var(--ink);
}

.nav_toggle:focus-visible + .menu_tab {
  outline: 3px solid rgba(76, 106, 84, 0.25);
  outline-offset: 3px;
}

.nav_toggle:checked + .menu_tab .menu_icon span {
  background: var(--white);
}

.nav_toggle:checked + .menu_tab .menu_icon span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav_toggle:checked + .menu_tab .menu_icon span:nth-child(2) {
  opacity: 0;
}

.nav_toggle:checked + .menu_tab .menu_icon span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.about_layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 34px 18px 46px;
  border-top: 1px solid var(--line);
}

.photo_side,
.resume_side {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 24px;
}

.photo_side {
  display: flex;
  flex-direction: column;
}

.section_label {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--moss);
  font-size: 0.92rem;
  font-weight: 800;
}

.main_heading {
  margin: 0 0 16px;
  font-family: "Ramaraja", serif;
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 0.95;
}

.intro_text {
  margin: 0 0 16px;
  color: var(--soft-ink);
  font-size: 1.04rem;
  line-height: 1.7;
}

.photo_card {
  margin-top: 16px;
}

.rowan {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
}

.resume_panel {
  display: grid;
  gap: 0;
}

.resume_block {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.resume_block:first-child {
  padding-top: 0;
}

.resume_block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resume_block h3 {
  margin: 0 0 10px;
  font-family: "Ramaraja", serif;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.resume_block p {
  margin: 0 0 8px;
  color: var(--soft-ink);
  line-height: 1.65;
}

.resume_block strong {
  color: var(--ink);
}

.resume_list {
  margin: 0;
  padding-left: 20px;
  color: var(--soft-ink);
  line-height: 1.65;
}

.resume_list li + li {
  margin-top: 8px;
}

.small_text {
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: min(100%, 1400px);
  margin: 0 auto;
  padding: 26px 18px 36px;
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
}

.footer_identity {
  display: grid;
  gap: 6px;
}

.footer_identity p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.footer_identity span {
  line-height: 1.5;
}

.footer_links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer a {
  width: fit-content;
  color: var(--clay);
  font-weight: 800;
}

@media (min-width: 390px) {
  .brand {
    font-size: 2rem;
  }
}

@media (min-width: 720px) {
  .topbar {
    display: flex;
    justify-content: space-between;
    padding: 18px 26px;
  }

  .brand {
    font-size: 2.8rem;
  }

  .menu_tab {
    display: none;
  }

  .links_list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-top: 0;
  }

  .links_list a {
    background: transparent;
  }

  .about_layout {
    padding: 46px 26px 54px;
  }

  .main_heading {
    font-size: 4rem;
  }

  .footer {
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: start;
    padding-right: 26px;
    padding-left: 26px;
  }

  .footer_links {
    justify-content: flex-end;
  }
}

@media (min-width: 980px) {
  .about_layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 22px;
  }

  .photo_side,
  .resume_side {
    padding: 32px;
  }
}

@media (min-width: 1280px) {
  .topbar {
    width: min(100%, 1640px);
    padding-right: clamp(24px, 2vw, 48px);
    padding-left: clamp(24px, 2vw, 48px);
  }
}
