/* ── Reset & base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: auto;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #faf9f7;
  color: #2c2a26;
  min-height: 100vh;
  min-width: 1024px;
  overflow-x: auto;
  display: block;
}

#site-shell {
  width: 1024px;
  min-width: 1024px;
  min-height: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #faf9f7;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Header ─────────────────────────────────────────────────── */
#site-header {
  text-align: center;
  padding: 2rem 1rem 1.2rem;
  border-bottom: 1px solid #e0ddd6;
  font-family: "Charlemagne Std";
  font-size: 36px;
  color: #8A6936;
}

#site-header h1 {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.04em;
}

#site-header .tagline {
  font-size: 0.9rem;
  color: #7a7670;
  margin-top: 0.3rem;
  font-style: italic;
}

/* ── Nav ────────────────────────────────────────────────────── */
#site-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e0ddd6;
  background: #f4f2ee;
}

#site-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5752;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

#site-nav a:hover { color: #2c2a26; text-decoration: none; }

#site-nav a.active {
  color: #2c2a26;
  border-bottom-color: #2c2a26;
}

/* ── Three-column body ──────────────────────────────────────── */
#site-body {
  display: flex;
  flex: 1;
}

/* Both panels hidden by default; shown only when they have content */
#left-panel,
#right-panel {
  width: 180px;
  flex-shrink: 0;
  border-right: 1px solid #e0ddd6;
  padding: 1.5rem 0.75rem;
  display: none;   /* router.js toggles this */
}

#right-panel {
  border-right: none;
  border-left: 1px solid #e0ddd6;
}

#left-panel.visible,
#right-panel.visible {
  display: block;
}

#content {
  flex: 1;
  padding: 2rem 2.5rem;
  min-width: 0;   /* prevent flex overflow */
}

/* ── Panel internals (gallery) ──────────────────────────────── */
.panel-heading {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9690;
  margin-bottom: 0.75rem;
}

.panel-list {
  list-style: none;
}

.panel-list li {
  margin-bottom: 0.3rem;
}

.panel-list a {
  display: block;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  font-size: 0.88rem;
  color: #4a4845;
  transition: background 0.12s;
}

.panel-list a:hover {
  background: #ece9e3;
  text-decoration: none;
}

.panel-list a.active {
  background: #e6e2da;
  color: #1a1917;
  font-style: italic;
}

/* ── Gallery: painting view ─────────────────────────────────── */
#painting-view {
  text-align: center;
}

#painting-view img {
  max-height: 60vh;
  margin: 0 auto 1rem;
  border: 1px solid #e0ddd6;
}

#painting-title {
  font-size: 1.1rem;
  font-weight: normal;
  font-style: italic;
  color: #4a4845;
}

/* ── General content styles ─────────────────────────────────── */
.page-title {
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 1.25rem;
}

.prose p {
  line-height: 1.75;
  color: #3d3b37;
  margin-bottom: 1rem;
  max-width: 60ch;
}

/* ── Footer ─────────────────────────────────────────────────── */
#site-footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #e0ddd6;
  font-size: 0.8rem;
  color: #9a9690;
  background: #f4f2ee;
}

#site-footer a { color: #7a7670; }
#site-footer a:hover { color: #2c2a26; }

/* ── Loading state ──────────────────────────────────────────── */
.loading {
  color: #b0ada8;
  font-style: italic;
  font-size: 0.9rem;
}

/* ── Painting metadata ──────────────────────────────────────── */
#painting-meta {
  margin-top: 1rem;
}

#painting-details {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
}

#painting-details li {
  font-size: 0.85rem;
  color: #5a5752;
}

.meta-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a9690;
  display: block;
  margin-bottom: 0.1rem;
}

/* ── Exhibitions page ───────────────────────────────────────── */
.exhibitions-outer {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.exhibitions-side {
  width: 192px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.exhibitions-photo {
  width: 100%;
  border: 1px solid #e0ddd6;
  display: block;
}

.forthcoming {
  margin-top: 1rem;
}

.forthcoming-title {
  font-size: 1rem;
  font-weight: normal;
  font-style: italic;
  color: #5a5752;
  margin-bottom: 0.75rem;
}

.forthcoming-event {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #3d3b37;
}

.forthcoming-event a {
  color: #4a7aab;
}

.exhibitions-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.exhibition-heading {
  font-size: 0.85rem;
  font-weight: bold;
  color: #2c2a26;
  margin-bottom: 0.5rem;
}

.exhibition-list {
  list-style: none;
  padding: 0;
}

.exhibition-list li {
  font-size: 0.88rem;
  color: #4a6741;
  line-height: 1.7;
}

.exhibition-prose {
  font-size: 0.88rem;
  color: #3d3b37;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ── Biography page ─────────────────────────────────────────── */
.bio-column {
  max-width: 75ch;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bio-column p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #2c2a26;
}

/* ── Contact page ───────────────────────────────────────────── */
.contact-card {
  position: relative;
  width: 700px;
  margin: 0 auto;
}

.contact-bg {
  width: 700px;
  display: block;
}

.contact-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 8.5rem 3rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.contact-address {
  margin-bottom: 0.85rem;
}

.contact-address p {
  font-size: 1rem;
  color: #c8a96e;
  line-height: 1.65;
}

.contact-address-line {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #c8a96e;
  line-height: 1.65;
}

.contact-note {
  font-size: 0.95rem;
  color: #c8a96e;
  line-height: 1.6;
}

/* ── Contact forms ──────────────────────────────────────────── */
.contact-forms {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form-card {
  flex: 1;
  background: #f4f2ee;
  border: 1px solid #e0ddd6;
  border-radius: 4px;
  padding: 1.75rem;
}

.form-card-title {
  font-family: "Charlemagne Std", Georgia, serif;
  font-size: 1.1rem;
  font-weight: normal;
  color: #8A6936;
  margin-bottom: 0.6rem;
}

.form-card-desc {
  font-size: 0.85rem;
  color: #7a7670;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.site-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-field label {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9a9690;
}

.form-field input,
.form-field textarea {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.9rem;
  color: #2c2a26;
  background: #ffffff;
  border: 1px solid #e0ddd6;
  border-radius: 3px;
  padding: 0.5rem 0.65rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #8A6936;
}

.form-field textarea {
  resize: vertical;
}

.form-btn {
  margin-top: 0.25rem;
  padding: 0.6rem 1.25rem;
  background: #8A6936;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}

.form-btn:hover {
  background: #70561e;
}

.form-privacy {
  font-size: 0.75rem;
  color: #b0ada8;
  margin-top: 0.25rem;
}

.form-status {
  font-size: 0.85rem;
  color: #4a6741;
  margin-top: 0.5rem;
}
