:root {
  --bg-color:      #FAF8F4;
  --surface:       #F3EDE4;
  --text-color:    #1A1A18;
  --text-muted:    #7C7870;
  --accent-color:  #1A1A18;
  --accent-warm:   #C4956A;
  --border-color:  rgba(26, 26, 24, 0.09);
  --header-bg:     rgba(250, 248, 244, 0.97);
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-sans:     'Inter', system-ui, sans-serif;
  --transition-smooth: 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast:   0.22s ease;
  --shadow-sm:  0 2px 12px rgba(26, 26, 24, 0.06);
  --shadow-md:  0 8px 32px rgba(26, 26, 24, 0.10);
  --shadow-lg:  0 28px 80px rgba(26, 26, 24, 0.13);
}

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

html { scroll-behavior: smooth; }

::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
  line-height: 1.72;
  font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.72;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
}

.italic {
  font-style: italic;
}

.text-center {
  text-align: center;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5%;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 100;
  background-color: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform var(--transition-smooth),
              background-color 0.4s ease,
              box-shadow 0.4s ease;
}

.header.scrolled {
  box-shadow: 0 1px 0 var(--border-color);
}

.announcement-bar {
  width: 100%;
  background-color: var(--surface);
  color: var(--text-muted);
  padding: 0.55rem 5%;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.announcement-bar a {
  color: inherit;
  text-decoration: none;
}
.announcement-socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: 1rem;
  border-left: 1px solid rgba(0,0,0,0.1);
  padding-left: 1rem;
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 5%;
  transition: padding var(--transition-smooth);
}
.header.scrolled .header-main {
  padding: 1rem 5%;
}

.logo-link {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
  transition: font-size var(--transition-smooth);
}

.header.scrolled .logo-link {
  font-size: 1.45rem;
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
}

.icon-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.icon-btn:hover {
  color: var(--text-color);
  opacity: 1;
}

/* Hero Section */
.hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #080806;
}

.hero img,
.hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  display: block;
}

.hero-content {
  position: absolute;
  bottom: 13%;
  left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 10;
  padding: 0 5%;
}

.hero-subtitle {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  margin-bottom: 1.5rem;
  font-weight: 500;
  opacity: 0.72;
}

.hero-title {
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  margin-bottom: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-shadow: 0 4px 48px rgba(0,0,0,0.18);
}

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2.6rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.72);
  transition: background var(--transition-fast),
              color var(--transition-fast),
              border-color var(--transition-fast);
}

.btn-primary {
  background-color: #fff;
  color: var(--text-color);
  border-color: #fff;
}

.btn-primary:hover {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.72);
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--text-color);
  opacity: 1;
}

/* Section specific styling */
.section-padding {
  padding: 7rem 0;
}

.section-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.view-all {
  position: relative;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-muted);
  padding-bottom: 0.25rem;
  transition: color var(--transition-fast);
}

.view-all::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-color);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.38s var(--transition-smooth);
}

.view-all:hover {
  color: var(--text-color);
  opacity: 1;
}

.view-all:hover::after {
  transform: scaleX(1);
}

/* Grid Layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Cards */
.curation-card {
  display: block;
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--surface);
}

.curation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--transition-smooth);
  will-change: transform;
}

.curation-card:hover img {
  transform: scale(1.06);
}

.curation-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,8,0.7) 0%, rgba(10,10,8,0) 52%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  color: #fff;
  transition: background 0.5s ease;
}

.curation-card:hover .curation-overlay {
  background: linear-gradient(to top, rgba(10,10,8,0.8) 0%, rgba(10,10,8,0.04) 62%);
}

.curation-tag {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  margin-bottom: 0.4rem;
  font-weight: 600;
  opacity: 0.72;
}

.curation-name {
  font-size: 1.7rem;
  line-height: 1.2;
}

/* Categories */
.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.94);
  transition: transform 1.1s var(--transition-smooth),
              filter 0.9s var(--transition-smooth);
  will-change: transform, filter;
}

.category-card:hover img {
  filter: grayscale(0%) brightness(1.02);
  transform: scale(1.05);
}

.category-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
  color: #fff;
  background: rgba(10,10,8,0.18);
  letter-spacing: 0.04em;
  transition: background var(--transition-fast),
              letter-spacing 0.4s var(--transition-smooth);
}

.category-card:hover .category-title {
  background: rgba(10,10,8,0.06);
  letter-spacing: 0.11em;
}

/* Footer */
.footer {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  background-color: var(--bg-color);
}

.footer-disclosure {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.footer-copyright {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  opacity: 0.55;
}

/* Overlays (Menu & Search) */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 248, 244, 0.99);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 2rem 5%;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-btn {
  align-self: flex-end;
  padding: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform 0.35s ease;
}

.close-btn:hover {
  color: var(--text-color);
  transform: rotate(90deg);
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 2rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-family: var(--font-serif);
}

.menu-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  opacity: 0.82;
  transition: transform 0.35s var(--transition-smooth),
              opacity 0.22s ease;
}

.menu-nav a:hover {
  transform: translateX(0.8rem);
  opacity: 1;
}

.search-input-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-input {
  width: 100%;
  max-width: 800px;
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-family: var(--font-serif);
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  padding-bottom: 1rem;
  outline: none;
  text-transform: uppercase;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-bottom-color: var(--text-color);
}

.search-input::placeholder {
  color: var(--border-color);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-3 { gap: 1.8rem; }
}

@media (max-width: 768px) {
  .header-main { padding: 1rem 5%; }
  .logo-link { font-size: 1.5rem; }
  .icon-btn span { display: none; }
  .hero-title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .hero-content { bottom: 10%; }
  .hero-subtitle { letter-spacing: 0.26em; }
  .section-padding { padding: 5rem 0; }
  .section-title { font-size: clamp(2rem, 7vw, 3rem); }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .curation-name { font-size: 1.35rem; }
  .category-title { font-size: 1.75rem; }
  .footer { padding: 4rem 0; }
  .footer-links { gap: 1.5rem; }
  .announcement-socials { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-content { bottom: 8%; padding: 0 6%; }
  .btn { padding: 0.85rem 1.8rem; font-size: 0.62rem; }
  .grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-padding { padding: 4rem 0; }
  .announcement-bar { font-size: 0.6rem; padding: 0.45rem 5%; }
  .curation-name { font-size: 1.2rem; }
}

/* ==========================================================================
   CUSTOM LINK-IN-BIO PAGE (links.html)
   ========================================================================== */
.links-page-body {
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 4rem 1rem;
}

.links-container {
    width: 100%;
    max-width: 500px;
    text-align: center;
    animation: fadeIn 0.8s ease forwards;
}

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

.links-profile {
    margin-bottom: 3rem;
}

.links-profile h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.links-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-link-btn {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-link-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.custom-link-btn.secondary-btn {
    background-color: transparent;
    border: none;
    text-decoration: underline;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.custom-link-btn.secondary-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: none;
    box-shadow: none;
}
