:root {
  --color-ink: #E5E5E5;
  --color-paper: #0A0A0A;
  --color-accent: #C43E27;
  --color-gold: #D4AF37;
  /* --font-serif: "Noto Serif KR", serif; */
  --font-sans: "Crimson Pro", "Noto Serif KR", serif;
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}


@layer layout {
	img {
	    --fit: cover;
	    object-fit: var(--fit);
	    min-width: calc(var(--size) * 1px);
	    width: calc(var(--size) * 1px);
	    aspect-ratio: var(--ratio);
	    border-radius: calc(var(--round) * 1px);
	}
	em {
	    font-size: 15px;
	    width: fit-content;
	    letter-spacing: 0.2em;
	    font-weight: bold;
	    color: #080809;
	    margin-bottom: 0.75rem;
	    background: #cfcece;
	    padding: 5px 5px 3px;
	    border-radius: 5px;
	}

	input {
	    min-height: 44px;
	}
	/*
	input[type="search"] {
	    cursor: pointer;
	    background: url('data: image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path stroke="%23000" fill="none" stroke-linecap="round" stroke-width="2.5" d="M11 16c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5Zm7.59 2.59-4.06-4.06"/></svg>') no-repeat 15px center;
	    border-radius: 16px;
	    padding: 0 0 0 54px;
	    margin: auto; 
	    height: 54px;
	    width: 54px;
	    font-weight: bold;
	    outline: 0;
	    --focusColor: #fff;
	}
	[type=search]:not(:focus,:placeholder-shown) {
		color:#222;
	}
	[type=search]:is(:focus,:not(:placeholder-shown)) {
		cursor:text;
		height:32px;
		width: calc(100% - 166px);
		font-size:1rem !important;
		border-radius: 15px;
		z-index:1;
		background-position-x: 10px;
		padding-left: 44px;
		transition: background-position-x .2s .3s, padding .4s .3s, border-radius .2s, width .5s;
		background-color:var(--focusColor);
		margin: 4px 15px;
	}
    */
	
	
	@property --loading-opacity {
	    syntax: '<number>';
	    inherits: false;
	    initial-value: 1;
	}
	
	body .loading {
	    overflow: hidden !important;
	    /* background-color: transparent !important; */
	    background-image: 
	        linear-gradient(110deg, 
	            transparent 0%,
	            rgba(243, 243, 246, calc(var(--loading-opacity) * 0.9)) 50%, 
	            transparent 55%
	        ),
	        linear-gradient(
	            rgba(255, 255, 255, var(--loading-opacity)), 
	            rgba(255, 255, 255, var(--loading-opacity))
	        ),
	        var(--src, none) !important;
	    background-size: 300% 100%, cover, var(--fit) !important;
	    background-position: 150% 0, 0 0, center;
	    background-repeat: no-repeat !important;
	    color: transparent !important;
	}
	@keyframes loading {
	    0% { background-position: 150% 0, 0 0, center; }
	    100% { background-position: -150% 0, 0 0, center; }
	}
	body .loading:not(.loaded) {
	    animation: loading 1.5s infinite linear !important;
	}
	body .loaded {
	    transition: --loading-opacity 0.2s ease-in-out !important;
	    --loading-opacity: 0;
	}
	::placeholder {
		font-weight: bold;
	}
}

body {
  background-color: var(--color-paper);
  color: var(--color-ink);
  /* font-family: var(--font-sans); */
  /* -webkit-font-smoothing: antialiased; */
  background-image: radial-gradient(circle at 50% -20%, #1A0D0B 0%, #0A0A0A 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  height: 44px;
  min-width: 44px;
}

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

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Typography Extensions */

.font-serif-italic {/* font-family: var(--font-serif); *//* font-style: italic; */}

.tracking-widest { tracking-widest: 0.3em; }

/* Layout Utilities */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Navigation */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height var(--transition-smooth), background-color var(--transition-smooth);
  padding: 0 calc(50vw - min(50vw, 640px) + 10px);
  height: 90px;
}

header.scrolled {
  background: #0a0a0a;
  height: 70px;
}

.logo-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-svg {
  width: 48px;
  height: 48px;
  transition: transform var(--transition-smooth);
}

.logo-container:hover .logo-svg {
  transform: scale(1.1);
}

/* Hero Slider */

.hero {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  /* overflow-x: auto; */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-bottom: 18rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--color-paper), rgba(10, 10, 10, 0.4), transparent);
}

.hero-gradient-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-paper), transparent, rgba(10, 10, 10, 0.2));
}

.hero-content {
  position: relative;
  z-index: 10;
  /* max-width: 1280px; */
  /* margin: 0 auto; */
  padding: 0 calc(50vw - min(50vw, 640px) + 10px);
  width: 100%;
}

.badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-paper);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.05em;
  margin: 20px 0 30px;
}

.hero-title .italic { font-style: italic; }

.hero-title .text-accent {/* color: var(--color-accent); */}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-paper);
}

.btn-primary:hover {
  background: rgba(196, 62, 39, 0.9);
}

.btn-secondary {
  border: 1px solid rgba(229, 229, 229, 0.2);
  background: rgba(10, 10, 10, 0.1);
  backdrop-filter: blur(8px);
}

/* Filters */

.filters {
  position: sticky;
  top: 0;
  z-index: 60;
  margin: -100px auto 100px;
  max-width: fit-content;
}

.filter-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  align-items: center;
  height: 70px;
  /* margin: 0 108px 0 68px; */
}

.filter-btn {
  min-width: fit-content;
  padding: 0 20px;
  border-radius: 22px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: bold;
  white-space: nowrap;
  background: rgb(21 21 21);
  color: rgba(229, 229, 229, 0.6);
  transition: all 0.3s;
}

.filter-btn[aria-pressed=true] {
  background: #fff;
  color: var(--color-paper);
}

/* Archive List */

.archive {
  /* padding: 0 3rem 6rem; */
}

.archive-item {
  display: flex;
  gap: 10px;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(229, 229, 229, 0.05);
  transition: all 0.3s;
  align-items: flex-start;
}

.archive-img-wrapper {
  overflow: hidden;
  border-radius: 1rem;
  background: rgba(229, 229, 229, 0.1);
  position: relative;
}

.archive-item img {
  min-width: 60px;
  max-width: 20vw;
  --size: 220;
  --ratio: 1;
  transition: transform 1s;
  --round: 15;
  background-color: rgb(229 229 229 / .1);
}

.archive-item:hover .archive-img-wrapper img {
  transform: scale(1.05);
}

.archive-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.archive-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.archive-desc {
  color: rgba(229, 229, 229, 0.5);
  line-height: 1.6;
  margin-bottom: 10px;
  /* overflow: hidden;
  text-overflow: ellipsis;
  max-height: 80px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; */
}

.archive-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.archive-price {
  color: #fff;
  font-weight: 600;
}

/* Footer */

footer {
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  padding: 6rem 3rem 3rem;
  border-top: 1px solid rgba(229, 229, 229, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 6rem;
}

.footer-brand {
  grid-column: span 2;
}

.footer-links h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 12px;
  color: rgba(229, 229, 229, 0.7);
  transition: color 0.3s;
}

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

.newsletter-form {
  display: flex;
  border-bottom: 1px solid rgba(229, 229, 229, 0.2);
  padding-bottom: 0.5rem;
}

.newsletter-form input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  width: 100%;
  font-size: 14px;
}

/* Mobile Adjustments */

@media (max-width: 430px) {
	.archive-title {font-size: 1.5rem;}
	.archive-item {gap: 10px;}
	.archive-item img {--size: 110;}
	.hero-title { font-size: 3rem; }
}
