/* =========================================
   Peter Wedlake — Personal Website
   Cherry Blossom Theme
   ========================================= */

:root {
  --cream:       #FDFAF9;
  --petal-pale:  #F9E8EC;
  --blush:       #F2C4CE;
  --sakura:      #D4849A;
  --deep-rose:   #9B5D6E;
  --mauve:       #7A4558;
  --text:        #2C2420;
  --text-muted:  #7A6B65;
  --border:      #EDD5DA;
}

@font-face {
  font-family: 'PP New Editorial';
  src: local('PP New Editorial'), local('PPNewEditorial');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Montreal Neue';
  src: local('PP Montreal Neue'), local('PPMontrealNeue');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PP Montreal Neue', 'Inter', system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  font-weight: 300;
  overflow-x: hidden;
}

header h1,
header .title,
h2,
h3,
.job .job-header h3 {
  font-family: 'PP New Editorial', 'Cormorant Garamond', Georgia, serif;
}

/* ---- Floating Petals ---- */

.petal-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -30px;
  border-radius: 100% 0 100% 0;
  opacity: 0;
  animation: petalFall linear infinite;
}

.petal:nth-child(1) { left:  7%; width: 10px; height: 14px; background: #F2C4CE; animation-duration:  9s; animation-delay:  0s;   }
.petal:nth-child(2) { left: 18%; width: 12px; height: 16px; background: #F9D0DA; animation-duration: 12s; animation-delay:  2s;   }
.petal:nth-child(3) { left: 31%; width:  8px; height: 11px; background: #D4849A; animation-duration:  8s; animation-delay:  5s;   }
.petal:nth-child(4) { left: 45%; width: 11px; height: 15px; background: #F2C4CE; animation-duration: 14s; animation-delay:  0.5s; }
.petal:nth-child(5) { left: 57%; width:  9px; height: 13px; background: #F9D0DA; animation-duration: 10s; animation-delay:  3s;   }
.petal:nth-child(6) { left: 68%; width: 13px; height: 17px; background: #F2C4CE; animation-duration:  9s; animation-delay:  7s;   }
.petal:nth-child(7) { left: 79%; width: 10px; height: 14px; background: #D4849A; animation-duration: 13s; animation-delay:  1s;   }
.petal:nth-child(8) { left: 88%; width:  8px; height: 11px; background: #F9E8EC; animation-duration: 11s; animation-delay:  4s;   }
.petal:nth-child(9) { left: 95%; width: 12px; height: 16px; background: #F2C4CE; animation-duration: 15s; animation-delay:  6s;   }

@keyframes petalFall {
  0%   { top: -30px; opacity: 0;   transform: translateX(0px)  rotate(0deg);   }
  10%  {             opacity: 0.7;                                              }
  80%  {             opacity: 0.45;                                             }
  100% { top: 100vh; opacity: 0;   transform: translateX(40px) rotate(360deg); }
}

/* ---- Navigation ---- */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 249, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  padding: 0.85rem 2rem;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--sakura);
}

/* ---- Header ---- */

header {
  text-align: center;
  padding: 5rem 2rem 3.5rem;
  position: relative;
  z-index: 1;
}

.blossom {
  margin-bottom: 1.25rem;
  opacity: 0.92;
}

header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 300;
  letter-spacing: 0.07em;
  color: var(--text);
  line-height: 1.1;
}

header .title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--deep-rose);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

.profile-photo {
  width: clamp(180px, 30vw, 280px);
  height: clamp(180px, 30vw, 280px);
  display: block;
  margin: 0 auto 2rem;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(212, 132, 154, 0.15);
  object-fit: cover;
  object-position: center 20%;
}

.contact-bar {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.linkedin-btn {
  background-color: var(--blush) !important;
  color: var(--text) !important;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.linkedin-btn:hover {
  background-color: var(--sakura) !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(212, 132, 154, 0.3);
}

.contact-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-bar a:hover {
  color: var(--sakura);
}

.contact-bar .dot {
  color: var(--blush);
}

header::after {
  content: '';
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--blush), var(--sakura), var(--blush));
  margin: 2.5rem auto 0;
  border-radius: 2px;
}

/* ---- Main ---- */

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.5rem 2rem 5rem;
  position: relative;
  z-index: 1;
}

/* ---- Sections ---- */

section {
  margin-bottom: 3.5rem;
  padding-top: 1.5rem;
}

section h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-blossom {
  color: var(--sakura);
  font-size: 0.95rem;
}

/* ---- Summary ---- */

#summary p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 300;
}

/* ---- Jobs ---- */

.job {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--petal-pale);
}

.job:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.job h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.promoted {
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

.employer {
  font-size: 0.8rem;
  color: var(--deep-rose);
  font-weight: 400;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.date {
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.2rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.job ul {
  list-style: none;
  padding: 0;
}

.job ul li {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.45rem;
  font-weight: 300;
}

.job ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--sakura);
}

/* ---- Education ---- */

.edu-item h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.degree {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  font-weight: 300;
}

/* ---- Skills ---- */

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--petal-pale);
  border: 1px solid var(--border);
  color: var(--deep-rose);
  font-size: 0.76rem;
  padding: 0.35rem 0.95rem;
  border-radius: 20px;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.skill-tag:hover {
  background: var(--blush);
  border-color: var(--sakura);
}

/* ---- Footer ---- */

footer {
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

footer p {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

footer a {
  color: var(--sakura);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  text-decoration: underline;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .nav-inner {
    gap: 1.2rem;
    padding: 0.7rem 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  header {
    padding: 3rem 1.5rem 2.5rem;
  }

  main {
    padding: 0 1.5rem 3rem;
  }

  .job-header {
    flex-direction: column;
    gap: 0.15rem;
  }

  .date {
    font-size: 0.73rem;
  }
}
