/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Arvo:wght@400;700&family=Montserrat:wght@400;700&display=swap');

@view-transition {
  navigation: auto; /* enables cross-document transitions */
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .24s;
  animation-timing-function: ease;
}

:root {
  --cream: #F2EEE6;
  --lilac: #F5DBFC;
  --gray: #666666;
  --black: #000000;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--black);
  background: var(--cream);
}

/* Background for desktop */
@media (min-width: 768px) {
  body {
    background: url('./assets/Portfolio Background.png') center/cover fixed no-repeat;
  }
}

.main-panel {
  background: var(--cream);
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

@media (min-width: 1024px) {
  .main-panel {
    height: 870px;
    min-height: 0;
    margin-top: 20%;
    margin-bottom: 20%;
    border-radius: 0;
  }
}

/* Header */
header h1 {
  font-family: 'Arvo', serif;
  font-size: 2.5rem;
  line-height: 1.2;
}

header p {
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Cards */
.cards {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: none;
  border-bottom: 1px solid #ddd;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
  padding: 1.5rem;
}

.card:hover {
  background: #f9f9f9;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card h2 {
  font-family: 'Arvo', serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card svg {
  flex-shrink: 0;
  margin-left: 1rem;
}

.card p {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

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

.card-chips span {
  background: var(--lilac);
  color: var(--black);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

/* Footer links */
footer {
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  
}

.footer-links a {
  position: relative;
  color: var(--black);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: var(--black);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

/* See also */
.see-also {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.see-also img {
  height: 28px;
  width: auto;
}
