/* ===== EASY SETTINGS: change these values to restyle the whole site ===== */
:root {
  --background: #ffffff;   /* page color */
  --text: #1a1a1a;         /* main text color */
  --soft-text: #666666;    /* lighter text */
  --line: #e6e6e6;         /* thin divider lines */
  --accent: #e8792b;       /* the one pop of color (button, hover) */
  --sidebar-width: 220px;  /* how wide the sidebar is */
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* keeps content clear of phone edges; leave as is */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ===== BASICS ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  display: flex;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
}
p { max-width: 60ch; color: var(--soft-text); font-size: 1.1rem; margin: 0 0 1rem; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 1rem; }
h2 { font-size: 1.8rem; letter-spacing: -0.02em; margin: 0 0 1.25rem; }

/* ===== SIDEBAR ===== */
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--sidebar-width);
  flex: none;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  background: var(--background);
}
.logo { display: block; margin-bottom: 2rem; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
nav { display: flex; flex-direction: column; gap: 0.5rem; }
nav a { color: var(--soft-text); text-decoration: none; }
nav a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer { padding: 2rem clamp(1.5rem, 6vw, 4rem) 3rem; display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; color: var(--soft-text); }
.site-footer a { color: var(--soft-text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .dot { color: var(--line); }

/* ===== PAGE SECTIONS ===== */
main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }section { padding: 4.5rem clamp(1.5rem, 6vw, 4rem); max-width: 1000px; border-bottom: 1px solid var(--line); }
.site-footer { margin-top: auto; }
section:last-child { border-bottom: 0; }
#home { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; }

/* ===== Portfolio Spacing ===== */
.portfolio-full { max-width: none; padding-left: 3rem; padding-right: 3rem; }

/* ===== Portfolio GRID ===== */
.grid { display: flex; gap: 1.5rem; align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 1.5rem; flex: 1; }
.grid figure { break-inside: avoid; margin-bottom: 1.5rem; }
figure img, .photo { display: block; width: 100%; height: auto; }
.photo { background: #f2f2f2; display: flex; align-items: center; justify-content: center; color: #aaaaaa; }
figcaption { padding-top: 0.5rem; font-size: 0.95rem; color: var(--soft-text); display: flex; flex-direction: column; gap: 0.15rem; }
figcaption .label-title { color: var(--text); font-weight: 600; }
figcaption .label-medium { font-style: italic; }
figcaption .label-dims { }
figcaption .label-year { }

/* ===== BUTTON ===== */
.btn { display: inline-block; padding: 0.7rem 1.3rem; background: var(--accent); color: #ffffff; font-weight: 600; text-decoration: none; border-radius: 4px; }
.btn:hover { opacity: 0.85; }

/* ===== PHONES: sidebar becomes a bar across the top ===== */
@media (max-width: 760px) {
  body { flex-direction: column; }
  aside { position: sticky; z-index: 5; height: auto; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: calc(0.8rem + env(safe-area-inset-top, 0px)) 1rem 0.8rem; }
  .logo { margin-bottom: 0.4rem; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 0.3rem 1rem; }
  section { padding: 3rem 1.5rem; }
  #home { min-height: auto; }
  .grid { flex-direction: column; gap: 0.75rem; }
  .col { width: 100%; gap: 0.75rem; }
  .portfolio-full { padding-left: 0.5rem; padding-right: 0.5rem; }
  #col-right { display: none; }
}

/* ===== CURRENT PAGE in the sidebar ===== */
nav a.current { color: var(--text); font-weight: 600; }

/* ===== CV PAGE (matches the layout of the PDF CV) ===== */
.cv { font-family: Helvetica, Arial, sans-serif; font-size: 0.95rem; line-height: 1.4; color: #000000; }
.cv-contact { max-width: none; margin: 0 0 2.5rem; text-align: center; font-size: 0.9rem; color: #000000; }
.cv-heading { margin: 2.2rem 0 1rem; font-size: 0.95rem; font-weight: 700; text-decoration: underline; }
.cv-row { display: flex; flex-wrap: wrap; column-gap: 0.6rem; margin-bottom: 0.7rem; }
.cv-year { flex: none; min-width: 2.6rem; font-weight: 700; }
.cv-title { flex: none; max-width: 100%; font-weight: 700; font-style: italic; }
.cv-title .upright { font-style: normal; }
.cv-details { flex: 1 1 14rem; }
.cv-download { max-width: none; margin-top: 2.5rem; font-size: 0.9rem; }
.cv-download a { color: #000000; }

/* ===== Gallery LIGHTBOX ===== */
figure img.cover { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; z-index: 100; }
.lightbox[hidden] { display: none; }
.lb-image { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; background: none; border: 0; color: #ffffff; font-size: 2.5rem; cursor: pointer; padding: 0.5rem 1rem; }
.lb-close { top: 1rem; right: 1.5rem; font-size: 2rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--accent); }

/* ===== Contact Icon Layout ===== */
.icon-row { display: flex; gap: 2.5rem; align-items: center; }

/* ===== SHOP ===== */
.product { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: flex-start; }
.product-photo { flex: 1 1 320px; margin: 0; min-width: 0; max-width: 100%; }

.order-note { font-size: 0.9rem; font-style: italic; color: var(--soft-text); margin-bottom: 1rem; }
.product-info { flex: 1 1 280px; }
.product-info .price { font-size: 1.3rem; font-weight: 600; color: var(--text); }
.product-photo { min-width: 0; max-width: 100%; }
.photo-frame { width: 100%; max-width: 100%; }
.photo-frame img.cover { width: 100%; max-width: 100%; height: auto; display: block; cursor: zoom-in; }

/* ===== SHOP CATEGORIES ===== */
.category-row { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem; }
.category-card { flex: 1 1 280px; text-decoration: none; color: var(--text); }
.category-card img { width: 100%; height: auto; display: block; margin-bottom: 0.8rem; }.category-card h3 { margin: 0 0 0.3rem; }
.category-card p { margin: 0; color: var(--soft-text); }
.category-card:hover img { opacity: 0.85; }

/* ===== SOLD BADGE ===== */
.photo-frame { position: relative; width: 100%; max-width: 100%; }
.photo-frame img.cover { width: 100%; max-width: 100%; height: auto; display: block; cursor: zoom-in; }
.sold-badge { display: none; }
.sold .sold-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85%;
  transform: translate(-50%, -50%) rotate(-25deg);
  background: transparent;
  color: var(--accent);
  text-align: center;
  padding: 1rem 0;
  border: 4px solid var(--accent);
  border-radius: 12px;
  font-weight: 800;
  font-size: clamp(3rem, 4vw, 3rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* ===== SITE CREDITS ===== */
.credits-page { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-bottom: none; max-width: none; width: 100%; }
.credits-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.credits-sub { font-size: 1.1rem; color: var(--soft-text); margin: 0; }