/* ============================================
   Laura Licari — Personal Site
   Modern, minimal, mobile-first
   ============================================ */

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

:root {
  /* Light theme (default / daytime) */
  --color-bg: #f7f5f2;
  --color-bg-rgb: 247, 245, 242;
  --color-surface: rgba(0, 0, 0, 0.04);
  --color-surface-hover: rgba(0, 0, 0, 0.08);
  --color-text: #2c2c2c;
  --color-text-muted: rgba(44, 44, 44, 0.7);
  --color-accent: #6b5235;
  --color-accent-light: #5a4329;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-nav-bg: rgba(247, 245, 242, 0.9);
  --color-menu-bg: rgba(247, 245, 242, 0.97);
  --color-cta-bg: rgba(139, 109, 71, 0.08);
  --color-cta-bg-hover: rgba(139, 109, 71, 0.15);
  --font-sans: 'Merriweather', Georgia, serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme (evening) */
[data-theme="dark"] {
  --color-bg: #0a0a0a;
  --color-bg-rgb: 10, 10, 10;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-surface-hover: rgba(255, 255, 255, 0.1);
  --color-text: #f0ede8;
  --color-text-muted: rgba(240, 237, 232, 0.75);
  --color-accent: #d4b48a;
  --color-accent-light: #e8d0b0;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-nav-bg: rgba(10, 10, 10, 0.85);
  --color-menu-bg: rgba(10, 10, 10, 0.97);
  --color-cta-bg: rgba(201, 168, 124, 0.08);
  --color-cta-bg-hover: rgba(201, 168, 124, 0.15);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: var(--color-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Theme toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: var(--transition);
  padding: 0;
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  margin: 5px 0;
}

.nav__toggle--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav__toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---- Hero Section ---- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero__bg--loaded {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--color-bg-rgb), 0.15) 0%,
    rgba(var(--color-bg-rgb), 0.35) 50%,
    rgba(var(--color-bg-rgb), 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
  max-width: 800px;
}

.hero__content--split {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
  max-width: 960px;
}

.hero__text {
  flex: 1;
}

.hero__avatar-wrapper {
  flex-shrink: 0;
  position: relative;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s forwards;
}


.hero__avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 4px solid rgba(var(--color-bg-rgb), 0.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero__content--split {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.5rem;
  }

  .hero__avatar {
    width: 150px;
    height: 150px;
  }
}

.hero__greeting {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--color-text);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border: 1px solid var(--color-accent);
  background: var(--color-cta-bg);
  color: var(--color-accent-light);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

.hero__cta--secondary {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}

.hero__cta--secondary:hover {
  background: var(--color-cta-bg);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
}

.hero__cta:hover {
  background: var(--color-cta-bg-hover);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.hero__cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 2s infinite;
}

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

.page {
  min-height: 100vh;
}

.page__hero {
  position: relative;
  height: 55vh;
  min-height: 350px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(var(--color-bg-rgb), 0.1) 0%,
    rgba(var(--color-bg-rgb), 0.85) 100%
  );
}

.page__hero-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page__content {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 2rem 6rem;
}


/* ---- Resume / Work Section ---- */

.resume__updated {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem 0;
  line-height: 1.5;
  text-align: right;
  margin-right: calc(-1 * (50vw - 400px + 2rem));
  padding-right: 2rem;
}

@media (max-width: 860px) {
  .resume__updated {
    margin-right: 0;
    padding-right: 0;
  }
}

.resume__updated a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 124, 0.3);
  transition: border-color var(--transition);
}

.resume__updated a:hover {
  border-color: var(--color-accent);
}

.resume {
  font-size: 0.95rem;
  line-height: 1.7;
}

.resume__header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.resume__name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.resume__title {
  color: var(--color-accent);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.resume__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.resume__contact a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.resume__contact a svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.resume__contact a:hover {
  color: var(--color-accent);
}

.resume__section {
  margin-bottom: 2.5rem;
}

.resume__section-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 124, 0.2);
}

.resume__entry {
  margin-bottom: 1.5rem;
}

.resume__entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 0.25rem;
}

.resume__entry-title {
  font-weight: 600;
  font-size: 1rem;
}

.resume__entry-meta {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.resume__entry-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.resume__company-group {
  margin-bottom: 2rem;
}

.resume__role {
  margin-left: 1rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(201, 168, 124, 0.2);
}

.resume__role-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin-bottom: 0.15rem;
}

.resume__role-title {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}

.resume__role-dates {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.resume__role-location {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.35rem;
}

.resume__entry ul,
.resume__role ul {
  list-style: none;
  padding: 0;
}

.resume__entry li,
.resume__role li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.resume__entry li::before,
.resume__role li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.75rem;
}

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

.resume__skill {
  padding: 0.35rem 0.85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.resume__skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.resume__skills-category {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  gap: 1rem;
}

.resume__skills-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  padding-top: 0.4rem;
}

.resume__entry--compact {
  margin-bottom: 0.75rem;
}

.resume__entry--compact .resume__entry-subtitle {
  margin-bottom: 0;
}

/* Resume Downloads */
.resume__downloads {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.resume__downloads h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.resume__download-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.resume__download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.resume__download-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(-2px);
}

.resume__download-btn svg {
  width: 16px;
  height: 16px;
}

/* ---- Contact Section ---- */

.page--fullscreen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page__hero--full {
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.contact {
  text-align: center;
}

.contact__intro {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--color-accent);
  transition: var(--transition);
  margin-bottom: 1rem;
}

.contact__email:hover {
  color: var(--color-accent-light);
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.contact__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(var(--color-bg-rgb), 0.4);
  border-radius: 50%;
  background: rgba(var(--color-bg-rgb), 0.5);
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

.contact__social:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(-3px);
}

.contact__social svg {
  width: 20px;
  height: 20px;
}

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

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
}

/* ---- Animations ---- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .nav__links--open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
  }

  .page__content {
    padding: 2.5rem 1.25rem 4rem;
  }

  .resume__skills-category {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .resume__entry-header {
    flex-direction: column;
    gap: 0.125rem;
  }

  .resume__downloads {
    margin-top: 2rem;
  }

  .resume__download-links {
    flex-direction: column;
  }

  .resume__download-btn {
    justify-content: center;
  }

  .contact__socials {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero__name {
    font-size: 2.25rem;
  }

  .page__hero {
    height: 30vh;
    min-height: 220px;
  }

  .resume__contact {
    flex-direction: column;
    gap: 0.25rem;
  }
}
