/* =========================
   Base / Reset
========================= */

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

:root {
  --page-bg: #ffffff;
  --text: #111111;
  --accent: #e53935;
  --border: #111111;
  --muted: #444444;
  --max-width: 1380px;
  --outer-pad: 14px;
  --inner-pad: 22px;
  --rule-thickness: 3px;
  --transition: 0.2s ease;
}

/* =========================
   Layout Shell
========================= */

.page-shell {
  min-height: 100vh;
  padding: var(--outer-pad);
}

.site-frame {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--page-bg);
  padding: 18px 12px 42px;
}

/* =========================
   Header
========================= */

.site-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 var(--inner-pad);
  margin-bottom: 36px;
}

.brand-small {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
}

.main-nav a {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent);
}

.main-nav a.active {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-divider {
  font-weight: 700;
}

/* =========================
   Hero
========================= */

.hero {
  padding: 0 var(--inner-pad);
  margin-bottom: 54px;
}

.eyebrow {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.eyebrow-accent {
  color: var(--accent);
}

.eyebrow-main {
  color: var(--text);
}

.hero h1 {
  font-size: clamp(2.3rem, 8vw, 5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.rule {
  width: 100%;
  border-top: var(--rule-thickness) solid var(--border);
}

.hero-subtext {
  margin-top: 14px;
  font-size: 1.5rem;
  color: var(--muted);
}

/* =========================
   Section Heading
========================= */

.work-section {
  padding: 0 var(--inner-pad);
  margin-bottom: 72px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* =========================
   Projects
========================= */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 18px;
}

.project-card {
  min-width: 0;
}

.project-link {
  display: block;
}

.project-image-wrap {
  position: relative;
  background: #dcdcdc;
  overflow: hidden;
}

.project-image-wrap img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-link:hover .project-image-wrap img,
.project-link:focus-visible .project-image-wrap img {
  transform: scale(1.04);
}

.project-tag {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.28rem 0.48rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta {
  padding-top: 12px;
}

.project-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.project-title-row h3 {
  font-size: 1.75rem;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0;
  transition: color var(--transition);
}

.arrow {
  flex-shrink: 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 700;
  transform: translateY(-2px);
  transition: color var(--transition);
}

.project-meta p {
  font-size: 1.25rem;
  line-height: 1.45;
  color: #222;
  margin-bottom: 0;
  max-width: 60ch;
}

.project-link:hover .project-title-row h3,
.project-link:focus-visible .project-title-row h3 {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-link:hover .arrow,
.project-link:focus-visible .arrow {
  color: var(--accent);
}

/* =========================
   Philosophy
========================= */

.philosophy-section {
  padding: 42px var(--inner-pad) 0;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.philosophy-label p {
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.philosophy-content {
  max-width: 850px;
}

.philosophy-lead {
  font-size: clamp(1.15rem, 3vw, 2rem);
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 12px;
}

.philosophy-content ul {
  padding-left: 1.35rem;
  margin-bottom: 0;
}

.philosophy-content li {
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

/* =========================
   Footer
========================= */

.site-footer {
  padding: 56px var(--inner-pad) 8px;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================
   Tablet
========================= */

@media (min-width: 768px) {
  .site-frame {
    padding: 22px 18px 48px;
  }

  .site-header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
  }

  .main-nav {
    justify-content: flex-end;
  }

  .section-heading {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
  }

  .section-heading h2 {
    white-space: nowrap;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .philosophy-section {
    grid-template-columns: 140px 1fr;
    align-items: start;
    gap: 32px;
    margin-top: 56px;
    padding-top: 56px;
  }
}

/* =========================
   Desktop
========================= */

@media (min-width: 1100px) {
  :root {
    --outer-pad: 16px;
    --inner-pad: 28px;
  }

  .site-frame {
    padding: 14px 10px 52px;
  }

  .hero {
    margin-bottom: 64px;
  }

  .work-section {
    margin-bottom: 84px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 18px;
  }

  .project-title-row h3 {
    font-size: 2rem;
  }

  .philosophy-label {
    padding-top: 4px;
  }
}

/* =========================
   Resume Page
========================= */

.resume-page {
  padding: 0 var(--inner-pad);
}

.resume-section {
  margin-bottom: 4rem;
}

.resume-section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.resume-section-heading h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.resume-entry {
  margin-bottom: 2.5rem;
}

.resume-entry-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.resume-entry-top h2 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.1;
  font-weight: 800;
}

.resume-entry-top h2 span {
  font-weight: 400;
}

.resume-role,
.resume-degree {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.resume-date {
  margin-bottom: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.resume-note,
.resume-coursework {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #333;
}

.resume-bullets {
  margin: 0;
  padding-left: 1.4rem;
}

.resume-bullets li {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

@media (min-width: 768px) {
  .resume-entry-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1.5rem;
  }

  .resume-date {
    text-align: right;
    white-space: nowrap;
  }
}

/* =========================
   About Page
========================= */

.about-page {
  padding: 0 var(--inner-pad);
}

.about-hero {
  margin-bottom: 4rem;
}

.about-section-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about-section-heading h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.about-image-wrap {
  display: flex;
  justify-content: flex-start;
}

.about-image {
  width: min(280px, 70vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.about-content {
  max-width: 760px;
}

.about-lead {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 2.5rem;
  }

  .about-image {
    width: 240px;
  }
}

@media (min-width: 1100px) {
  .about-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 3rem;
  }

  .about-image {
    width: 280px;
  }
}

.cat-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cat-photo {
  width: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* =========================
   Placeholder Pages
========================= */

.placeholder-page {
  padding: 0 var(--inner-pad);
}

.placeholder-section {
  max-width: 760px;
  margin: 4rem auto 6rem;
}

.placeholder-eyebrow {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.placeholder-section h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.placeholder-message {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 50ch;
}

.placeholder-link {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: color var(--transition);
}

.placeholder-link:hover,
.placeholder-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}