/* ==========================================================================
   GLOBAL FONTS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Cormorant+Garamond:wght@400;500;600&display=swap');


/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #fafafa;
  color: #222;
  line-height: 1.6;
  min-height: 100%;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}


/* ==========================================================================
   FORM ELEMENTS
   ========================================================================== */

.form-control {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: #0077cc;
  box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.2);
  outline: none;
}


/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 2rem 0;
}


/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; /* unified choice */
  margin-bottom: 0.5rem;
}

h4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}


/* ==========================================================================
   GRID SYSTEM (Artists / Artworks)
   ========================================================================== */

.artist-grid,
.artwork-grid {
  display: grid;
  gap: 1.5rem;
}

.artist-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.artwork-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}


/* ==========================================================================
   CMS PAGE CONTENT (Used for About, Contact, etc.)
   ========================================================================== */

.page-content {
  width: min(900px, 90%);
  margin: 4rem auto;
  padding: 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);

  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
}

/* Headings */
.page-content h1,
.page-content h2,
.page-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.page-content h1 { font-size: 2.4rem; }
.page-content h2 { font-size: 1.9rem; }
.page-content h3 { font-size: 1.5rem; }

/* Paragraphs */
.page-content p {
  margin-bottom: 1.25rem;
}

/* Images */
.page-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: block;
}

/* Lists */
.page-content ul,
.page-content ol {
  margin: 1rem 0 1.5rem 2rem;
  padding-left: 1rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* Links */
.page-content a {
  color: #333;
  text-decoration: underline;
}

.page-content a:hover {
  color: #000;
}

/* Blockquotes */
.page-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

/* Clean spacing for Quill <br> */
.page-content br {
  line-height: 1.5;
}


/* ==========================================================================
   OPTIONAL CMS COMPONENTS
   ========================================================================== */

.page-hero {
  margin-bottom: 2rem;
}

.page-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
}

.page-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 2rem 0;
}

.page-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.page-content iframe {
  width: 100%;
  border: 0;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
