@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&family=Caveat:wght@500;600;700&display=swap");

@font-face {
  font-family: "Nina Handwriting";
  src: url("nina-handwriting.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

:root {
  --background: #fffaf7;
  --surface: #ffffff;
  --ink: #332b35;
  --muted: #716775;
  --coral: #ed7379;
  --coral-dark: #c94f5d;
  --peach: #ffe9df;
  --pink: #fff0f1;
  --lavender: #f1ebf7;
  --border: #e9dfe3;
  --shadow: 0 18px 50px rgb(83 53 70 / 9%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

section,
#experience {
  scroll-margin-top: 100px;
}

:focus-visible {
  outline: 3px solid var(--coral-dark);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1200px, calc(100% - 48px));
  min-height: 92px;
  margin: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: var(--coral);
  color: white;
  font-family: "DM Serif Display", serif;
  font-size: 19px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.site-header nav a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover,
.project-copy > a:hover {
  color: var(--coral-dark);
}

.menu-button {
  display: none;
}

/* Shared typography and buttons */

.handwritten {
  font-family: "Nina Handwriting", "Caveat", cursive;
  font-weight: 600;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--coral-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  background: var(--coral);
  color: white;
  box-shadow: 0 10px 22px rgb(237 115 121 / 24%);
}

.button.primary:hover {
  background: var(--coral-dark);
}

.button.secondary {
  border-color: var(--border);
  background: white;
}

.button.light {
  background: white;
  color: var(--coral-dark);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
  width: min(1200px, calc(100% - 48px));
  min-height: 610px;
  margin: auto;
  padding: 55px 0 90px;
}

.hero-copy {
  max-width: 690px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(65px, 8vw, 112px);
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 span {
  color: var(--coral);
}

.hero h1 em {
  margin-top: 4px;
  color: var(--ink);
  font-size: 0.69em;
  font-style: normal;
}

.hero-intro {
  max-width: 530px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

.hero-note {
  position: relative;
  width: min(100%, 420px);
  justify-self: end;
}

.portrait-card {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 46% 46% 22px 22px;
  background: white;
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}

.portrait {
  width: 100%;
  height: 100%;
  border-radius: 46% 46% 15px 15px;
  object-fit: cover;
  object-position: center 35%;
}

.sparkle {
  position: absolute;
  z-index: 1;
  top: 5%;
  left: -10%;
  color: var(--coral);
  font-size: 58px;
}

/* Projects */

.section {
  width: min(1200px, calc(100% - 48px));
  margin: auto;
}

.projects {
  padding: 65px 0 95px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 35px;
}

.section-heading h2,
.story h2 {
  margin: 0;
  font-size: clamp(55px, 7vw, 82px);
}

.section-heading > p {
  max-width: 260px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.project-grid {
  display: grid;
  gap: 25px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.project-card.somani {
  background: var(--lavender);
}

.project-card.billy {
  background: var(--peach);
}

.project-copy {
  min-width: 0;
  padding: clamp(30px, 5vw, 65px);
}

.project-number {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.project-copy h3 {
  margin: 0 0 15px;
  font-family: "DM Serif Display", serif;
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 400;
  line-height: 1.1;
}

.project-copy p {
  max-width: 480px;
  margin: 0;
  color: #554d58;
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 11px;
  border: 1px solid rgb(65 48 65 / 13%);
  border-radius: 100px;
  background: rgb(255 255 255 / 65%);
  font-size: 11px;
  font-weight: 700;
}

.project-copy > a {
  display: inline-flex;
  gap: 8px;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Somani and Project Screens */

.somani-screens,
.project-screens {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  min-width: 0;
  height: 100%;
  min-height: 420px;
  padding: 45px 20px 0;
}

.project-screenshot {
  flex: 0 1 220px;
  min-width: 0;
  max-width: 45%;
  overflow: hidden;
  border: 6px solid #302a34;
  border-bottom: 0;
  border-radius: 27px 27px 0 0;
  background: white;
  box-shadow: 0 14px 32px rgb(48 35 54 / 19%);
}

.project-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.project-screenshot:nth-child(2) {
  transform: translateY(20px);
}

/* Skills / Tools */

.tools {
  padding: 53px 24px;
  background: var(--pink);
  text-align: center;
}

.tools h2 {
  margin: 0 0 24px;
  font-size: clamp(48px, 6vw, 70px);
}

.tools ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 850px;
  margin: auto;
  padding: 0;
  list-style: none;
}

.tools li {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: white;
  font-size: 13px;
  font-weight: 600;
}

/* About and Experience */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 110px);
  padding-top: 110px;
  padding-bottom: 110px;
}

.story-copy {
  max-width: 530px;
}

.story-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}

.timeline {
  display: grid;
  align-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.timeline li:first-child {
  border-top: 1px solid var(--border);
}

.timeline li > span {
  color: var(--coral-dark);
  font-size: 12px;
  font-weight: 700;
}

.timeline strong {
  font-size: 16px;
}

.timeline p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Contact and Footer */

.contact {
  padding: 75px max(24px, calc((100vw - 1200px) / 2));
  background: var(--coral);
  color: white;
}

.contact > p {
  margin: 0 0 24px;
  font-size: clamp(55px, 8vw, 100px);
}

.contact > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact span {
  font-size: 15px;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1200px, calc(100% - 48px));
  margin: auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 12px;
}

/* Media Queries */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr 0.65fr;
    min-height: 0;
    gap: 25px;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-copy {
    padding-bottom: 20px;
  }

  .somani-screens,
  .project-screens {
    min-height: 0;
    max-height: 440px;
    padding-top: 20px;
  }

  .project-screenshot {
    max-width: 36%;
  }

  .story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header,
  .hero,
  .section,
  footer {
    width: min(100% - 36px, 1200px);
  }

  .site-header {
    min-height: 76px;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .site-header nav {
    justify-content: center;
    order: 3;
    width: 100%;
    gap: 18px;
  }

  .site-header nav a {
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 65px 0 75px;
  }

  .hero h1 {
    font-size: clamp(64px, 13vw, 85px);
  }

  .hero-note {
    width: min(72%, 300px);
    justify-self: center;
  }

  .sparkle {
    left: -17%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .section-heading > p {
    max-width: none;
  }

  .projects {
    padding-top: 35px;
    padding-bottom: 75px;
  }

  .project-card {
    border-radius: 22px;
  }

  .project-copy {
    padding: 30px 25px 18px;
  }

  .project-number {
    margin-bottom: 12px;
  }

  .somani-screens,
  .project-screens {
    max-height: 370px;
    padding: 18px 10px 0;
  }

  .project-screenshot {
    max-width: 43%;
    border-width: 4px;
    border-radius: 19px 19px 0 0;
  }

  .story {
    gap: 30px;
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .contact {
    padding: 65px 24px;
  }

  footer {
    flex-direction: column;
    gap: .35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
