:root {
  /* Theme Colors - Beige/Cream palette matching the logo */
  --bg-color: #f5f0e8;
  /* Warm cream background */
  --text-color: #3d3731;
  --card-bg: #faf7f2;
  /* Lighter cream for buttons */
  --card-hover: #ffffff;
  --border-color: #3d3731;
  --shadow-color: #3d3731;

  /* Dimensions */
  --border-width: 2px;
  --shadow-offset: 4px;
  --radius: 50px;
  /* Pill shape */

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #2a2520;
    --text-color: #f5f0e8;
    --card-bg: #3d3731;
    --card-hover: #4a433d;
    --border-color: #f5f0e8;
    --shadow-color: #000000;
  }
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 3rem 1rem;
  transition: background-color 0.3s ease;
}

.profile {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px 0px var(--shadow-color);
  background-color: #fff;
}

.profile-name {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.profile-bio {
  font-size: 1rem;
  font-weight: 500;
  max-width: 350px;
  line-height: 1.4;
}

.links {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.link-card {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: var(--card-bg);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0px 0px var(--shadow-color);
  position: relative;
  top: 0;
  left: 0;
}

.link-card:hover,
.link-card:focus-visible {
  background-color: var(--card-hover);
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0px 0px var(--shadow-color);
}

.link-card:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px var(--shadow-color);
}

.link-icon {
  width: 24px;
  height: 24px;
  margin-right: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.link-title {
  flex-grow: 1;
  text-align: center;
}

/* Footer */
footer {
  margin-top: auto;
  padding-top: 3rem;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.8;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  background-color: #e8e0d5;
  /* Slightly darker than bg */
  padding: 4px;
  border-radius: 50px;
  margin-bottom: 2rem;
  position: relative;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.toggle-btn {
  background: none;
  border: none;
  padding: 10px 30px;
  border-radius: 40px;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.toggle-btn.active {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

/* Shop Grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.shop-grid.hidden,
.links.hidden {
  display: none;
}

.product-card {
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1;
  background-color: #f5f0e8;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 1rem;
  text-align: center;
}

.product-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.product-price {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .toggle-container {
    background-color: #3d3731;
  }

  .toggle-btn.active {
    background-color: #4a433d;
    color: #f5f0e8;
  }

  .product-card {
    background-color: #3d3731;
  }

  .product-title {
    color: #f5f0e8;
  }

  .product-price {
    color: #aaa;
  }
}