/* ========================================
   Art Flood - Design System
   Accent Blue: #146efe
   Warm, minimal, craft-forward
   ======================================== */

:root {
  --color-primary: #146efe;
  --color-primary-light: #eaf1ff;
  --color-primary-dark: #0b4abf;
  --color-text: #2d2926;
  --color-text-light: #6b6560;
  --color-bg: #fffaf5;
  --color-bg-soft: #f5f0eb;
  --color-bg-dark: #1a1714;
  --color-bg-blue: #146efe;
  --color-border: #e8e2db;
  --color-white: #ffffff;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  --max-width: 1200px;
  --max-width-wide: 1400px;
  --nav-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 3.5rem; letter-spacing: -0.01em; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }

p {
  color: var(--color-text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.container--wide {
  max-width: var(--max-width-wide);
}

.section {
  padding: 100px 0;
}

.section--soft {
  background: var(--color-bg-soft);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.15s;
}

.nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav__links a.active {
  color: var(--color-primary);
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- Hero ---- */
.hero {
  padding: 140px 0 100px;
  text-align: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero p {
  margin: 0 auto 40px;
  font-size: 1.125rem;
}

/* ---- Hero Image (full-width) ---- */
.hero-image {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ---- Gallery Grid ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery--two-col {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
  aspect-ratio: 4/5;
  cursor: pointer;
}

.gallery__item img,
.gallery__item svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img,
.gallery__item:hover svg {
  transform: scale(1.03);
}

.gallery__item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  color: var(--color-white);
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery__item:hover .gallery__item-info {
  opacity: 1;
}

.gallery__item-info h3 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.gallery__item-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

/* ---- Featured Piece (large single image) ---- */
.featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.featured__image {
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-bg-soft);
}

.featured__image img,
.featured__image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__text h4 {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.featured__text h2 {
  margin-bottom: 16px;
}

.featured__text p {
  margin-bottom: 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-family: var(--font-body);
}

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

.btn--primary:hover {
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn--outline:hover {
  background: transparent;
}

.btn--subtle {
  background: transparent;
  color: var(--color-text);
  padding: 0;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  border-bottom: 1px solid var(--color-text);
  border-radius: 0;
}

.btn--subtle:hover {
  /* color set by JS color cycle */
}

/* ---- Email Signup ---- */
.signup {
  text-align: center;
  padding: 100px 0;
  background: var(--color-bg-soft);
}

.signup h2 {
  margin-bottom: 12px;
}

.signup p {
  margin: 0 auto 32px;
}

.signup__form {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.signup__form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
}

.signup__form input[type="email"]:focus {
  border-color: var(--color-primary);
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: center;
}

.about-grid img,
.about-grid svg {
  width: 100%;
}

.about-grid h2 {
  margin-bottom: 20px;
}

.about-grid p {
  margin-bottom: 18px;
}

/* ---- Journal / Blog ---- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.journal-card {
  overflow: hidden;
  background: var(--color-white);
  transition: transform 0.3s;
}

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

.journal-card__image {
  aspect-ratio: 3/2;
  background: var(--color-bg-soft);
  overflow: hidden;
}

.journal-card__image img,
.journal-card__image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.journal-card:hover .journal-card__image img,
.journal-card:hover .journal-card__image svg {
  transform: scale(1.03);
}

.journal-card__body {
  padding: 20px 24px 24px;
}

.journal-card__date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.journal-card__body h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.journal-card__body p {
  font-size: 0.9rem;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--color-white);
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ---- Color Block Sections ---- */
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section--dark .btn--outline {
  color: var(--color-white);
  border-color: var(--color-white);
}

.section--dark a {
  color: var(--color-white);
}

.section--blue {
  background: var(--color-bg-blue);
  color: var(--color-white);
}

.section--blue h1,
.section--blue h2,
.section--blue h3,
.section--blue h4 {
  color: var(--color-white);
}

.section--blue p {
  color: rgba(255, 255, 255, 0.8);
}

.section--blue .btn--outline {
  color: var(--color-white);
  border-color: var(--color-white);
}

.section--blue a {
  color: var(--color-white);
}

/* ---- Full Bleed Image ---- */
.full-bleed {
  width: 100%;
  overflow: hidden;
}

.full-bleed img,
.full-bleed svg {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

/* ---- Split Section (image + text, edge to edge) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.split__image {
  overflow: hidden;
}

.split__image img,
.split__image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
}

.split__content h2 {
  margin-bottom: 16px;
}

.split__content p {
  margin-bottom: 24px;
}

/* ---- Marquee / Big Text ---- */
.big-text {
  text-align: center;
  padding: 80px 32px;
}

.big-text h2 {
  font-size: 3rem;
  max-width: 800px;
  margin: 0 auto;
}

/* ---- Three-up Columns ---- */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.three-up__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.three-up__item img,
.three-up__item svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.three-up__item:hover img,
.three-up__item:hover svg {
  transform: scale(1.03);
}

.three-up__label {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
}

.three-up__label h3 {
  color: var(--color-white);
  font-size: 1.75rem;
}

.three-up__label p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ---- Process Strip ---- */
.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.process-strip__step h4 {
  margin-bottom: 8px;
}

.process-strip__step p {
  font-size: 0.85rem;
  margin: 0 auto;
  max-width: 240px;
}

.process-strip__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1;
}

/* ---- Divider ---- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--color-border);
  margin: 48px auto;
}

/* ---- Footer ---- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer p {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer__links a:hover {
  /* color set by JS color cycle */
}

/* ---- Journal Post ---- */
.post {
  padding: 32px 0 0;
}

.post .btn--subtle {
  margin-bottom: 48px;
  display: inline-block;
}

.post__header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.post__date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.post__header h1 {
  font-size: 3rem;
}

.post__hero {
  max-width: 900px;
  margin: 0 auto 48px;
  overflow: hidden;
}

.post__hero img,
.post__hero svg {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post__body {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.post__body p {
  margin-bottom: 20px;
  max-width: 100%;
}

.post__body h2 {
  font-size: 1.75rem;
  margin: 48px 0 20px;
}

.post__image {
  margin: 40px 0;
}

.post__image img,
.post__image svg {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.post__caption {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 10px;
  font-style: italic;
}

/* ---- Journal card as link ---- */
a.journal-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ---- Piece Detail ---- */
.piece {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}

.piece__image-main {
  overflow: hidden;
  background: var(--color-bg-soft);
  margin-bottom: 16px;
}

.piece__image-main img,
.piece__image-main svg {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.piece__image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.piece__image-thumb {
  overflow: hidden;
  background: var(--color-bg-soft);
}

.piece__image-thumb img,
.piece__image-thumb svg {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.piece__image-thumb:hover img,
.piece__image-thumb:hover svg {
  transform: scale(1.03);
}

.piece__details h4 {
  color: var(--color-primary);
  margin-bottom: 12px;
}

.piece__details h1 {
  font-size: 2.75rem;
  margin-bottom: 0;
}

.piece__details p {
  margin-bottom: 16px;
}

.piece__specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.piece__specs div {
  display: flex;
  gap: 16px;
}

.piece__specs dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  min-width: 100px;
}

.piece__specs dd {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ---- Gallery as links ---- */
a.gallery__item {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ---- Logo Color Cycle ---- */
.nav__logo {
  user-select: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .hero { padding: 80px 0 48px; }
  .section { padding: 64px 0; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 32px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gallery__item {
    aspect-ratio: 1;
  }

  .gallery__item-info {
    opacity: 1;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  }

  .featured {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .split__image {
    aspect-ratio: 16/9;
  }

  .split__content {
    padding: 48px 32px;
  }

  .three-up {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .three-up__item {
    aspect-ratio: 16/9;
  }

  .process-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .big-text h2 {
    font-size: 2rem;
  }

  .full-bleed img,
  .full-bleed svg {
    height: 300px;
  }

  .post__header h1 {
    font-size: 2rem;
  }

  .post__body h2 {
    font-size: 1.4rem;
    margin: 32px 0 16px;
  }

  .piece {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .piece__details h1 {
    font-size: 2rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .signup { padding: 64px 0; }

  .signup__form {
    flex-direction: column;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-image img,
  .hero-image svg {
    height: 280px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.85rem; }

  .gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery__item {
    aspect-ratio: 4/5;
  }
}
