/* ===================================================================
   carynvainioart.com — recreated from the Squarespace original.
   Headings: Cormorant (closest Google match to Orpheus Pro)
   Body:     EB Garamond (closest Google match to Adobe Garamond Pro)
   =================================================================== */

:root {
  --font-heading: "Cormorant", "Times New Roman", serif;
  --font-body: "EB Garamond", Garamond, Georgia, serif;
  --black: #000;
  --white: #fff;
  --gray-dark: #414141;
  --gray-light: #f4f4f4;
  --red: #c02b2b;
  --pad-x: 4vw;
  --header-h: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.21rem; /* ~19.4px, matches original */
  line-height: 1.6;
  background: var(--white);
  color: var(--black);
}

body.theme-dark {
  background: var(--black);
  color: var(--white);
}

body.theme-gray {
  background: var(--gray-dark);
  color: var(--white);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.15;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 1.6rem var(--pad-x);
  min-height: var(--header-h);
}

.site-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 2.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: baseline;
  gap: 1.55rem;
}

.site-nav a,
.site-nav .nav-folder-title {
  font-size: 1.21rem;
  text-decoration: none;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav .nav-folder-title:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* "My Work" dropdown */
.nav-folder {
  position: relative;
}

.nav-folder-menu {
  display: none;
  position: absolute;
  top: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.9rem 1.4rem;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
  z-index: 20;
  min-width: 10rem;
  text-align: center;
}

/* Invisible strip over the gap so hover isn't lost between title and menu */
.nav-folder-menu::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 9px;
}

/* Caret pointing up at the nav title */
.nav-folder-menu::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top: none;
  border-bottom: 9px solid var(--white);
}

body.theme-dark .nav-folder-menu,
body.theme-gray .nav-folder-menu {
  background: #111;
  color: var(--white);
  box-shadow: 0 1px 8px rgba(255, 255, 255, 0.1);
}

body.theme-dark .nav-folder-menu::after,
body.theme-gray .nav-folder-menu::after {
  border-bottom-color: #111;
}

.nav-folder:hover .nav-folder-menu,
.nav-folder:focus-within .nav-folder-menu {
  display: block;
}

.nav-folder-menu a {
  display: block;
  padding: 0.35rem 0;
}

.header-social {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-social svg,
.contact-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-social {
  display: flex;
  gap: 1.1rem;
  margin-top: 2rem;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

@media (max-width: 880px) {
  .menu-toggle {
    display: block;
  }

  .site-nav,
  .header-social {
    display: none;
  }

  body.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    padding: 3rem var(--pad-x);
    background: var(--white);
    z-index: 30;
  }

  body.theme-dark.nav-open .site-nav {
    background: var(--black);
  }

  body.theme-gray.nav-open .site-nav {
    background: var(--gray-dark);
  }

  body.nav-open .site-nav a,
  body.nav-open .site-nav .nav-folder-title {
    font-size: 1.6rem;
  }

  .nav-folder-menu {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    background: none !important;
    color: inherit !important;
    padding: 0.4rem 0 0 1.2rem;
    text-align: left;
  }

  .nav-folder-menu::before,
  .nav-folder-menu::after {
    display: none;
  }
}

/* ------------------------------------------------------------------
   Sections / general layout
   ------------------------------------------------------------------ */

.section {
  padding: 5rem var(--pad-x);
}

.section--bright {
  background: var(--white);
  color: var(--black);
}

.section--light-gray {
  background: var(--gray-light);
  color: var(--black);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 880px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------
   Home — full-viewport artwork with header and caption overlaid
   ------------------------------------------------------------------ */

body.overlay-header .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
}

.home-hero {
  position: relative;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
}

.home-caption {
  padding: 11.5rem var(--pad-x) 2rem;
}

.home-caption .work-title {
  font-style: italic;
}

/* ------------------------------------------------------------------
   Collection pages (Paintings / Printmaking)
   ------------------------------------------------------------------ */

.page-banner {
  position: relative;
  min-height: 405px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  /* top padding clears the overlaid header, keeping the title just below center */
  padding: var(--header-h) var(--pad-x) 2rem;
}

/* white wash fading the banner artwork, same idea as the About hero fade */
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
}

.page-banner h1 {
  position: relative;
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 400;
}

.collection-embed {
  padding: 3.5rem var(--pad-x);
}

/* ------------------------------------------------------------------
   Motherhood
   ------------------------------------------------------------------ */

.motherhood-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.motherhood-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.motherhood-hero-inner {
  position: relative;
  max-width: 56rem;
  padding: 6rem var(--pad-x) 7rem;
}

.motherhood-hero h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  margin-bottom: 1.6rem;
}

.motherhood-hero .series-meta {
  margin-bottom: 1.6rem;
}

.motherhood-hero p + p {
  margin-top: 1.1rem;
}

.work-entry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4rem;
  align-items: start;
  padding: 3.5rem 0;
}

.work-entry + .work-entry {
  margin-top: 2rem;
}

.work-entry .work-title {
  font-style: italic;
}

.work-entry .work-desc {
  margin-top: 1.6rem;
}

@media (max-width: 880px) {
  .work-entry {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ------------------------------------------------------------------
   About — statement over a faded full-bleed forest photo
   ------------------------------------------------------------------ */

.about-hero {
  position: relative;
  background: var(--gray-dark);
  color: var(--white);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  filter: saturate(0.65);
}

.about-hero-inner {
  position: relative;
  max-width: 44rem;
  padding: 11rem var(--pad-x) 4.5rem;
}

.about-hero h1 {
  font-size: clamp(2.2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

.about-hero p + p {
  margin-top: 1.1rem;
}

.section-heading {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 400;
  margin-bottom: 2rem;
}

.exhibitions p {
  max-width: 38rem;
  margin-bottom: 1.4rem;
}

/* ------------------------------------------------------------------
   Forms (contact + newsletter) — thin-outline Squarespace look
   ------------------------------------------------------------------ */

.form-field {
  margin-bottom: 1.4rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-field .required {
  font-size: 0.85em;
  opacity: 0.7;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  background: var(--white);
  color: var(--black);
  border: 1px solid #c9c9c9;
  border-radius: 0;
}

.form-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.75;
}

/* ------------------------------------------------------------------
   Newsletter ("Get Updates") — appears on every page
   ------------------------------------------------------------------ */

.newsletter {
  background: var(--black);
  color: var(--white);
  padding: 5rem var(--pad-x) 3.5rem;
}

.newsletter h2 {
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 400;
  margin-bottom: 1.8rem;
}

.newsletter p {
  max-width: 41rem;
}

.newsletter-form {
  margin-top: 2.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  width: 17.5rem;
  max-width: 100%;
  padding: 0.95rem 1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  border: none;
  border-radius: 0;
}

.newsletter-success {
  margin-top: 2.4rem;
  font-size: 1.15rem;
  font-style: italic;
}

.newsletter .fine-print {
  margin-top: 2.6rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ------------------------------------------------------------------
   Follow
   ------------------------------------------------------------------ */

.follow-intro {
  text-align: center;
  padding: 4.5rem var(--pad-x) 3rem;
}

.follow-intro h1 {
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 400;
  margin-bottom: 1.6rem;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 0 var(--pad-x) 5rem;
}

.follow-grid a {
  display: block;
}

.follow-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (max-width: 880px) {
  .follow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------------
   Prints & Small Works shop
   ------------------------------------------------------------------ */

.shop {
  padding: 3rem var(--pad-x) 4rem;
}

.shop-title {
  text-align: center;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 3rem;
}

.shop-section {
  margin-bottom: 5rem;
}

.shop-section h2 {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.shop-intro {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
}

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

.shop-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 1rem;
}

.shop-item-title {
  font-size: 1.05rem;
}

.shop-item-price {
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.shop-item-sold {
  color: var(--red);
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

.shop-item-note {
  color: var(--red);
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 0.2rem;
}

@media (max-width: 880px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shop-item-link {
  text-decoration: none;
  display: block;
}

.shop-item-link:hover img {
  opacity: 0.9;
}

/* ------------------------------------------------------------------
   Product detail page
   ------------------------------------------------------------------ */

.product-page {
  padding: 2.5rem var(--pad-x) 5rem;
}

.product-breadcrumb {
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.product-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 4rem;
  align-items: start;
}

.product-gallery-col img {
  width: 100%;
}

.product-thumbs {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.product-thumb {
  width: 5.5rem;
  padding: 0;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
}

.product-thumb.is-active {
  border-color: var(--black);
}

.product-info h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.product-page-price {
  font-size: 1.3rem;
  margin-bottom: 1.8rem;
}

.product-shipping {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: -1.4rem 0 1.8rem;
}

.product-availability {
  color: var(--red);
  font-weight: 700;
  margin: -1rem 0 1.8rem;
}

.product-desc {
  margin-bottom: 1.1rem;
  max-width: 34rem;
}

.product-purchase {
  margin-top: 1.4rem;
  text-decoration: none;
}

.product-sold {
  font-size: 1.2rem;
  margin-top: 1.4rem;
}

.product-coming-soon {
  margin-top: 1.4rem;
  font-style: italic;
  opacity: 0.85;
}

@media (max-width: 880px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ------------------------------------------------------------------
   Thanks page
   ------------------------------------------------------------------ */

.thanks {
  text-align: center;
  padding: 8rem var(--pad-x);
}

.thanks h1 {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 400;
  margin-bottom: 1.4rem;
}
