/* =========================================
   NAMEHERE — VELVET ART ARCHIVE
   Complete stylesheet
   ========================================= */

:root {
  color-scheme: dark;

  --bg: #100d10;
  --surface: #191217;
  --surface-raised: #23171e;
  --surface-hover: #30202a;

  --accent: #d9bd91;
  --accent-hover: #f0d6ad;

  --rose: #b87583;
  --rose-dark: #75404e;
  --burgundy: #35141f;

  --text: #f2e9e1;
  --text-muted: #b9a8ad;

  --border: #49333d;
  --border-highlight: #74505d;

  --shadow: 0 18px 48px rgb(0 0 0 / 28%);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;

  --page-width: 1400px;
}

/* RESET AND GLOBAL STYLES */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-color: var(--rose-dark) var(--bg);
}

body {
  margin: 0;
  background:
    radial-gradient(
      ellipse at 50% -15%,
      rgb(117 64 78 / 17%),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
}

body.overlaywindows-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

[hidden] {
  display: none !important;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 76px;
  padding: 0 7%;

  background: rgb(16 13 16 / 94%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 400px;
}

.brand-mark {
  display: grid;
  width: 200px;
  height: 31px;
  place-items: center;

  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  position: relative;
  padding: 27px 0;

  color: var(--text-muted);
  transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  position: absolute;
  right: 0;
  bottom: 17px;
  left: 0;

  height: 1px;
  background: var(--accent);
  content: "";
}

/* TYPOGRAPHY */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 22px;

  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
}
/* HERO */

.hero {
  position: relative;

  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  gap: 6%;

  max-width: var(--page-width);
  min-height: 610px;
  margin: auto;
  padding: 70px 7% 90px;

   background:
    linear-gradient(
      115deg,
      rgb(53 20 31 / 48%),
      transparent 70%
    );

  border-bottom: 1px solid var(--border);
}

.hero-copy {
  position: relative;
  transform: translateY(-80px);
  z-index: 2;
}

.hero h1,
.section-heading h2,
.about-heading h2 {
  margin: 0;

  color: var(--accent);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.015em;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero h1 em,
.section-heading h2 em,
.about-heading h2 em {
  color: var(--accent);
  font-weight: 400;
}

.hero-headings {

  color: var(--text-muted);
  font-size: 30px;
  margin-top: -5%;
}

.hero-description {
  max-width: 390px;
  margin: 25px 0 30px;

  color: var(--text-muted);
  line-height: 1.9;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 25px;

  padding: 14px 19px;

  border: 1px solid rgb(217 189 145 / 65%);
  font-size: 12px;

  transition:
    background 250ms ease,
    color 250ms ease;
}

.hero-button:hover {
  background: var(--accent);
  color: var(--bg);
}

.hero-button span {
  font-size: 18px;
}

.top-art {
  position: relative;
  height: 440px;
  min-height: 350px;
  overflow: hidden;

  background: transparent;
}

.top-art img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: saturate(0.7);
  animation: revealImage 1s ease both;

  -webkit-mask-image: linear-gradient(
    to bottom,
    black 60%,
    rgb(0, 0, 0, 0.6) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 60%,
    rgb(0, 0, 0, 0.47) 78%,
    transparent 100%
  );

}

.top-art-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    0deg,
    rgb(8 8 8 / 70%),
    transparent 55%
    
  );

  pointer-events: none;
  display: none;
}

.top-art-caption {
  position: absolute;
  right: 22px;
  bottom: 21px;
  left: 22px;

  display: flex;
  justify-content: space-between;
  gap: 10px;

  color: white;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.top-art-caption span:last-child {
  color: rgb(255 255 255 / 75%);
  letter-spacing: 0;
}

.hero-index {
  position: absolute;
  bottom: 32px;
  left: 7%;

  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.17em;
}

@keyframes revealImage {
  from {
    opacity: 0.4;
    transform: scale(1.04);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ARCHIVE SECTION */

.archive-section {
  max-width: var(--page-width);
  margin: auto;
  padding: 75px 7% 105px;

  border-top: 1px solid var(--border);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;

  margin-bottom: 35px;
}

.section-heading .eyebrow {
  margin-bottom: 13px;
}

.section-heading h2,
.about-heading h2 {
  font-size: clamp(38px, 4.5vw, 55px);
  line-height: 1.15;
}

/* ARTWORK RECORDS */

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.art-record {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  gap: 0;

  min-width: 0;
  height: 430px;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 5px;

  background: linear-gradient(
    135deg,
    var(--surface-raised),
    var(--surface)
  );

  box-shadow: var(--shadow);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;

  animation: recordReveal 350ms ease both;
}

.art-record:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 20px 54px rgb(0 0 0 / 38%);
}

@keyframes recordReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ARTWORK IMAGE PANEL */

.record-image {
  display: flex;
  flex-direction: column;

  min-width: 0;
  min-height: 0;
  padding: 14px;

  background: #0a080a;
  border-right: 1px solid var(--border);
}

.image-open {
  position: relative;

  display: block;
  flex: 1;

  width: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;

  border: 0;
  background: #0b0b0a;

  cursor: zoom-in;
}

.image-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78);

  transition:
    transform 550ms ease,
    filter 350ms ease;
}

.art-record:hover .image-open img {
  transform: scale(1.025);
  filter: saturate(1);
}

.image-caption {
  flex-shrink: 0;
  margin: 11px 0 0;
  padding: 0;

  background: rgb(16 13 16 / 88%);
  color: var(--text-muted);

  font-size: 9px;
  letter-spacing: 0.14em;
}

/* ARTWORK INFORMATION PANEL */

.record-info {
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 25px;

  background:
    radial-gradient(
      ellipse at top right,
      rgb(117 64 78 / 10%),
      transparent 55%
    ),
    var(--surface);

  scrollbar-width: thin;
  scrollbar-color: var(--rose-dark) transparent;
}

.record-info::-webkit-scrollbar {
  width: 6px;
}

.record-info::-webkit-scrollbar-track {
  background: transparent;
}

.record-info::-webkit-scrollbar-thumb {
  background: var(--rose-dark);
  border-radius: 10px;
}

.record-title {
  margin: 18px 0 7px;

  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.25;
}

.record-category {
  margin: 0;

  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.record-divider {
  height: 1px;
  margin: 21px 0;
  background: var(--border);
}

.record-field {
  margin: 0 0 21px;
  padding-bottom: 0;
}

.record-field h4 {
  margin: 0 0 6px;

  color: var(--rose);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.record-field p {
  margin: 0;

  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-line;
}

.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.record-tags span {
  padding: 5px 8px;

  border: 1px solid var(--border-highlight);
  border-radius: 3px;
  background: var(--burgundy);

  color: var(--accent);
  font-size: 10px;
}

.record-field a {
  color: var(--accent);
  transition: color 200ms ease;
}

.record-field a:hover {
  color: var(--accent-hover);
}

.record-actions {
  display: flex;
  align-items: center;
  gap: 15px;

  margin-top: 24px;
  padding-top: 17px;

  border-top: 1px solid var(--border);
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--accent);
  font-size: 11px;

  transition: color 200ms ease;
}

.text-button:hover {
  color: var(--accent-hover);
}

/* ABOUT */

.about-section {
  display: grid;
  grid-template-columns: auto 1.2fr 1.2fr;
  align-items: start;
  gap: 35px;

  max-width: var(--page-width);
  margin: auto;
  padding: 85px 7%;

  border-top: 1px solid var(--border);
  background: rgb(25 18 23 / 70%);
}

.about-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;

  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 24px;
}

.about-heading .eyebrow {
  margin-bottom: 15px;
}

.about-copy {
  color: var(--text-muted);
  line-height: 1.9;
}

.about-copy p {
  margin: 0 0 18px;
}

.about-copy .text-button {
  margin-top: 8px;
}

/* FOOTER */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 27px 7%;

  border-top: 1px solid var(--border);
  background: #0b090b;
  color: var(--text-muted);
  font-size: 11px;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  color: var(--text);
}

/* =========================================
   OVERLAY WINDOWS — FULL-SIZE IMAGE VIEWER
   ========================================= */

.overlaywindows {
  position: fixed;
  inset: 0;
  z-index: 100000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  background: rgb(8 6 8 / 94%);
  backdrop-filter: blur(12px);

  transition:
    opacity 250ms ease,
    visibility 250ms ease;
}

.overlaywindows.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.overlaywindows-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;

  background: rgb(0 0 0 / 30%);
  cursor: zoom-out;
}

.overlaywindows-content {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;

  width: min(100%, 1100px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;

  padding: 22px;

  border: 1px solid var(--border);
  border-radius: 5px;

  background: var(--surface);
  box-shadow: 0 24px 80px rgb(0 0 0 / 55%);

  transform: translateY(12px);
  transition: transform 250ms ease;
}

.overlaywindows.is-open .overlaywindows-content {
  transform: translateY(0);
}

.overlaywindows-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;

  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;

  padding: 0;

  border: 1px solid var(--border-highlight);
  border-radius: 3px;

  background: var(--bg);
  color: var(--text);

  font-size: 28px;
  line-height: 1;

  cursor: pointer;

  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.overlaywindows-close:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
  color: var(--accent);
}

.overlaywindows-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 0;
  max-height: calc(100vh - 240px);

  overflow: auto;
  background: #0a080a;
}

.overlaywindows-image-wrap img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: calc(100vh - 260px);

  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;

  box-shadow: 0 12px 60px rgb(0 0 0 / 40%);
}

.overlaywindows-image-placeholder {
  max-width: 520px;
  margin: 0;
  padding: 30px;

  color: var(--text-muted);
  text-align: center;
}

.overlaywindows-details {
  width: 100%;
  padding-top: 20px;
}

.overlaywindows-details .eyebrow {
  margin-bottom: 8px;
}

.overlaywindows-details h2 {
  margin: 0 0 8px;

  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 400;
  line-height: 1.25;
}

.overlaywindows-details #overlaywindows-description {
  margin: 0;

  color: var(--text-muted);
  line-height: 1.8;
}

/* TABLETS */

@media (max-width: 950px) {
  .site-header {
    padding-right: 5%;
    padding-left: 5%;
  }

  .hero {
    gap: 4%;
    padding-right: 5%;
    padding-left: 5%;
  }

  .top-art {
    height: 370px;
  }

  .archive-section {
    padding-right: 5%;
    padding-left: 5%;
  }

  .art-record {
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  }

  .record-info {
    padding: 19px;
  }

  .about-section {
    grid-template-columns: auto 1fr;
    padding-right: 5%;
    padding-left: 5%;
  }

  .about-copy {
    grid-column: 2;
  }

  .overlaywindows {
    padding: 12px;
  }

  .overlaywindows-content {
    max-height: calc(100vh - 24px);
    padding: 16px;
  }

  .overlaywindows-image-wrap {
    max-height: calc(100vh - 220px);
  }

  .overlaywindows-image-wrap img {
    max-height: calc(100vh - 240px);
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .site-header {
    min-height: 66px;
    padding: 0 4%;
  }

  .brand {
    gap: 7px;
    font-size: 12px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
    font-size: 15px;
  }

  .main-nav {
    gap: 12px;
  }

  .nav-link {
    padding: 23px 0;
    font-size: 11px;
  }

  .nav-link.active::after {
    bottom: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 58px 5% 70px;
  }

  .hero h1 {
    font-size: clamp(48px, 12vw, 68px);
  }

  .top-art {
    height: 310px;
    min-height: 270px;
  }

  .hero-index {
    bottom: 22px;
    left: 5%;
    font-size: 8px;
  }

  .archive-section {
    padding: 55px 4% 70px;
  }

  .section-heading h2 {
    font-size: 39px;
  }

  .archive-list {
    gap: 24px;
  }

  .art-record {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .record-image {
    height: 330px;
    padding: 10px;

    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .record-info {
    max-height: none;
    overflow: visible;
    padding: 20px;
  }

  .record-title {
    font-size: 28px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 23px;
    padding: 50px 5%;
  }

  .about-copy {
    grid-column: auto;
  }

  .site-footer {
    flex-wrap: wrap;
    padding: 24px 5%;
  }

  .site-footer p {
    order: 3;
    width: 100%;
  }

  .overlaywindows {
    padding: 10px;
  }

  .overlaywindows-content {
    max-height: calc(100vh - 20px);
    padding: 12px;
  }

  .overlaywindows-close {
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
  }

  .overlaywindows-image-wrap {
    max-height: calc(100vh - 200px);
  }

  .overlaywindows-image-wrap img {
    max-height: calc(100vh - 220px);
  }

  .overlaywindows-details {
    padding-top: 14px;
  }
}

/* ACCESSIBILITY: REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


img {
  -webkit-user-drag: none;
  user-select: none;
}

.hero {
  position: relative;
  overflow: visible;
}

.hero-copy {
  position: relative;
  height: 400px;
  box-sizing: border-box;
  overflow: visible;
  /* Keep your existing background image here */
}

.hero-copy p {
  max-height: 120px;
  overflow: hidden;
}

.hero-character {
  position: absolute;
  width: 240px;  /* Controls the image size */
  height: auto;  /* Keeps its proportions */
  transform: scaleX(-1);
  right: -120px;
  bottom: -100px;
  right: -120px;
  bottom: -100px;
  z-index: 2;
  pointer-events: none;
  /* Fade the bottom edge */
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 60%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 60%,
    transparent 100%
  );
}

.about-section a {
  color: #4444e5;
  text-decoration: underline;
}

.about-section a:visited {
  color: #aaadee;
}

.about-section a:hover {
  color: #6c6cdc;
}

.text-image-open:link {
  color: #4444e5;
  text-decoration: underline;
}

.text-image-open:visited {
  color: #aaadee;
}

.text-image-open:hover {
  color: #6c6cdc;
}

#overlaywindows-title.text-viewer-small-title {
  font-size: 16px;
}


.about-copy {
  border-left: 10px dotted rgba(255, 255, 255, 0.2);
  border-right: 0px solid rgba(255, 255, 255, 0.2);
  padding-left: 32px;
  padding-right: 32px;
}


#overlaywindows-description {
  white-space: pre-line;
}

.art-record .record-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-copy {
  max-height: 350px;
  overflow-y: auto;
  padding-right: 12px;
}

.aboutimglast {
  overflow: hidden;
}

.aboutimglast img {
  width: 100%;
  height: auto;
  max-width: none;
  transform: scale(1.25);
  transform-origin: center;
  translate: 0 50px;

  -webkit-mask-image: linear-gradient(
    to bottom,
    black 20%,
    transparent 75%
  );

  mask-image: linear-gradient(
    to bottom,
    black 20%,
    transparent 75%
  );
}


.icon-row {
    display: flex;
    justify-content: center; /* Center the entire row */
    align-items: center;
    gap: 25px;               /* More space between squares */
    flex-wrap: wrap;
}

.icon-square {
    width: 80px;
    height: 80px;
    background-color: #222;
    border: 2px solid #555;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center;     /* Center horizontally */

    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.icon-square img {
    width: 40%;              /* Smaller icon */
    height: 40%;
    object-fit: contain;
}

/* Hidden text by default */
.icon-label {
    position: absolute;
    bottom: 10px;
    color: white;
    font-size: 12px;

    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Show text when hovering */
.icon-square:hover .icon-label {
    opacity: 1;
}
