/* =========================================================
   APHELION ARTS — CLEAN SITE STYLES
   ---------------------------------------------------------
   How to edit this file:
   1. Change site-wide colors, spacing, and fonts in :root.
   2. Page sections are grouped in the same order as the HTML.
   3. Reusable pieces use clear names: .site-header, .hero,
      .content-grid, .site-footer, etc.
   ========================================================= */

/* ---------- 1. Site-wide design tokens ---------- */
:root {
  --color-ink: #050505;
  --color-paper: #eeeeee;
  --color-gallery: #cfcfcf;
  --color-navy: #182d43;
  --color-navy-transparent: rgba(24, 45, 67, 0.82);
  --color-contact-panel: #0d071f;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", serif;
  --page-max-width: 1480px;
  --content-max-width: 1380px;
  --space-page-x: clamp(1.25rem, 3vw, 2.75rem);
  --header-hero-height: 190px;
  --nav-height: 50px;
  --footer-height: 96px;
}

/* ---------- 2. Browser reset / base behavior ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- 3. Shared header: hero image + menu bar ---------- */
.site-header {
  /* Swap this one file to change the cosmic strip everywhere. */
  background-image: url("../assets/images/hero-cosmic.png");
  background-size: cover;
  background-position: center;
  color: white;
}

.hero {
  min-height: var(--header-hero-height);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem var(--space-page-x);
}

/* Home page has no large white title inside the image in the mockup. */
.hero--home { min-height: 275px; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.25rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-nav {
  min-height: var(--nav-height);
  background: var(--color-navy-transparent);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 var(--space-page-x);
}

/* The details/summary pattern keeps this menu usable without JS. */
.menu { position: relative; }
.menu__button {
  list-style: none;
  cursor: pointer;
  color: white;
  font-size: 1.35rem;
}
.menu__button::-webkit-details-marker { display: none; }
.menu__list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.75rem);
  z-index: 10;
  min-width: 190px;
  margin: 0;
  padding: 0.75rem 0;
  background: white;
  color: var(--color-ink);
  border: 1px solid #ddd;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  list-style: none;
}
.menu__list a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
}
.menu__list a:hover,
.menu__list a:focus { background: var(--color-paper); }

/* ---------- 4. Shared page shell and footer ---------- */
.page-main {
  min-height: calc(100vh - var(--header-hero-height) - var(--nav-height) - var(--footer-height));
  background: var(--color-paper);
}

.page-main--gallery { background: var(--color-gallery); }

.site-footer {
  min-height: var(--footer-height);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: var(--color-navy);
  color: white;
  text-align: center;
}
.site-footer p { margin: 0; }

/* ---------- 5. Home page ---------- */
.home-intro {
  min-height: 540px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space-page-x);
}
.home-intro__title {
  margin: 0 0 6rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.25rem);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.home-intro__text { margin: 0; }

/* ---------- 6. Two-column content pages ---------- */
.content-grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  min-height: 625px;
  padding: clamp(3rem, 6vw, 5rem) var(--space-page-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.content-grid__copy { text-align: center; }
.content-grid__image img {
  width: min(100%, 730px);
  margin-inline: auto;
  object-fit: cover;
}

/* ---------- 7. Art page mosaic ---------- */
.art-mosaic {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--space-page-x);
}
.art-mosaic__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: white;
}
.art-card {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.art-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}
.art-card--text { background: var(--color-paper); }
.art-card--large { min-height: 360px; }

/* ---------- 8. Portfolio thumbnail grid ---------- */
.portfolio-grid {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 2.75rem var(--space-page-x);
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 2rem;
}
.portfolio-item {
  aspect-ratio: 1 / 1;
  background: white;
  overflow: hidden;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 9. Contact page ---------- */
.contact-panel {
  width: min(100%, 570px);
  min-height: 540px;
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 4rem);
  background: var(--color-contact-panel);
  color: white;
  display: grid;
  align-content: center;
  gap: 1rem;
}
.contact-panel h2 { margin: 0 0 1rem; text-align: center; font-weight: 400; }
.form-row { display: grid; gap: 0.35rem; }
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid #5a526b;
  background: white;
  color: var(--color-ink);
  font: inherit;
  padding: 0.65rem 0.75rem;
}
.form-row textarea { min-height: 8rem; resize: vertical; }
.form-row--hidden { display: none; }
.button {
  border: 0;
  background: white;
  color: var(--color-contact-panel);
  font: inherit;
  padding: 0.75rem 1rem;
  cursor: pointer;
}
.button:hover,
.button:focus { opacity: 0.9; }
.form-note { font-size: 0.95rem; opacity: 0.82; }

/* ---------- 10. Responsive layout ---------- */
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; min-height: auto; }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
  .art-mosaic__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.05rem; }
  .hero__title, .home-intro__title { font-size: 3rem; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
