/* ==========================================================================
   Emily Kenas — main.css
   Design tokens pulled from the original Squarespace site.css:
   - Logo/nav typeface: Verdana/Geneva, uppercase, wide letter-spacing
   - Layout: centered column, 900px max-width, 50px outer padding
   - Divider: 1px solid #ddd under header
   - Nav links: #999 → #111 on hover/active
   ========================================================================== */

:root {
  --max-width: 900px;
  --outer-padding: 50px;
  --outer-padding-mobile: 20px;

  --font-display: "Verdana", "Geneva", sans-serif;
  --font-body: "Verdana", "Geneva", sans-serif;

  --color-text: #222;
  --color-muted: #999;
  --color-active: #111;
  --color-link: #0085bd;
  --color-link-hover: #60a5dd;
  --color-divider: #ddd;
  --color-bg: #fff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6em;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; border: 0; }

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover { color: var(--color-link-hover); }

p { margin: 17px 0; padding: 0; }

/* ---------- Layout shell ---------- */

#canvas {
  max-width: var(--max-width);
  margin: 10px auto 0;
  padding: 0 var(--outer-padding) var(--outer-padding);
}

@media (max-width: 767px) {
  #canvas { padding: 0 var(--outer-padding-mobile) var(--outer-padding-mobile); }
}

.page-divider {
  border-bottom: 1px solid var(--color-divider);
}

/* ---------- Header / logo / nav ---------- */

#header {
  margin-bottom: 38px;
  padding-top: 40px;
  text-align: center;
}

#logo {
  margin: 0 0 10px;
}

.logo,
.logo a {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-active);
  line-height: 1.2em;
}

#topNav {
  margin-top: 10px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.main-nav li {
  margin: 0 14px;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-muted);
}

.main-nav a:hover,
.main-nav li.current-menu-item a {
  color: var(--color-active);
}

/* Mobile nav toggle link — hidden on desktop */
#mobileMenuLink {
  display: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 15px;
  cursor: pointer;
}
#mobileMenuLink a { color: var(--color-muted); }

#mobileNav {
  height: 0;
  overflow: hidden;
  transition: height .25s ease-in-out;
}
#mobileNav.open { height: auto; }
#mobileNav .wrapper {
  padding: 0 0 1em;
  border-bottom: 1px solid var(--color-divider);
}
#mobileNav .main-nav ul {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (max-width: 767px) {
  #topNav { display: none; }
  #mobileMenuLink { display: block; }
  .logo, .logo a { font-size: 28px; letter-spacing: 3px; }
  #header { padding-top: 25px; margin-bottom: 20px; }
}

/* ---------- Homepage hero ---------- */

.home-hero {
  display: block;
  width: 100%;
}
.home-hero img {
  width: 100%;
  height: auto;
}

/* ---------- Standard text pages (About / CV) ---------- */

.page-content-wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.page-content-wrap p { font-size: 15px; line-height: 1.6em; }
.page-content-wrap.wide { max-width: 700px; }

/* ---------- Gallery grid ---------- */

.artwork-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
  padding: 20px 0 60px;
}

.artwork-item {
  width: calc(100% / 3 - 20px);
  margin: 0 10px 30px;
}

.artwork-item a {
  display: block;
  cursor: pointer;
}

.artwork-item img {
  width: 100%;
  height: auto;
  display: block;
}

.artwork-meta {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5em;
  color: var(--color-text);
}
.artwork-meta .artwork-title { display: block; font-weight: bold; }
.artwork-meta .artwork-detail { display: block; color: var(--color-muted); }

@media (max-width: 900px) {
  .artwork-item { width: calc(50% - 20px); }
}
@media (max-width: 540px) {
  .artwork-item { width: 100%; margin-left: 0; margin-right: 0; }
  .artwork-grid { margin: 0; }
}

/* ---------- Lightbox ---------- */

.ek-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .25s ease;
}
.ek-lightbox-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.ek-lightbox-inner {
  max-width: 92vw;
  max-height: 88vh;
  text-align: center;
}
.ek-lightbox-inner img {
  max-width: 92vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0,0,0,.4);
}
.ek-lightbox-caption {
  margin-top: 16px;
  color: #fff;
  font-size: 13px;
  line-height: 1.6em;
}
.ek-lightbox-caption .artwork-title { display: block; font-weight: bold; letter-spacing: .5px; text-transform: uppercase; }
.ek-lightbox-caption .artwork-detail { display: block; color: #ccc; }

.ek-lightbox-close,
.ek-lightbox-prev,
.ek-lightbox-next {
  position: absolute;
  color: #ccc;
  background: none;
  border: 0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 12px;
}
.ek-lightbox-close:hover,
.ek-lightbox-prev:hover,
.ek-lightbox-next:hover { color: #fff; }
.ek-lightbox-close { top: 10px; right: 10px; font-size: 32px; }
.ek-lightbox-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.ek-lightbox-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Contact form ---------- */

.ek-contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.ek-contact-form .field { margin-bottom: 20px; }
.ek-contact-form label {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}
.ek-contact-form input[type="text"],
.ek-contact-form input[type="email"],
.ek-contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  border: 1px solid var(--color-divider);
  background: #fff;
  color: var(--color-text);
}
.ek-contact-form textarea { min-height: 160px; resize: vertical; }
.ek-contact-form button[type="submit"] {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 30px;
  background: var(--color-active);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.ek-contact-form button[type="submit"]:hover { background: #333; }
.ek-form-message {
  margin-bottom: 20px;
  padding: 12px 16px;
  font-size: 14px;
}
.ek-form-message.success { background: #eef7ee; color: #2a6a2a; }
.ek-form-message.error { background: #fbeaea; color: #a33; }
/* honeypot */
.ek-hp { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer ---------- */

#footer {
  max-width: var(--max-width);
  margin: 50px auto 0;
  padding: 30px var(--outer-padding) 40px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--color-muted);
  text-transform: uppercase;
  font-family: var(--font-display);
}
