
  :root{
    --ink:        #000000;
    --wall:       #f8f8f8;
    --wall-2:     #efefef;
    --brass:      #ababa9;
    --brass-dim:  #84651d;
    --line:       #3c3c3cb6;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  }

  @import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

  *{ box-sizing: border-box; }

  body{
    margin:0;
    background: var(--wall);
    background-image:
      radial-gradient(ellipse at top, var(--wall-2), var(--wall) 60%);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
  }

  p {
    font-family: "Times New Roman", Times, serif;
  
  }


  ::-webkit-scrollbar {
      display: none;
  }

  a {
    color: black;
  }

  header{
    display: flex;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 2rem;
  }

  header h1{
    margin: 0;
    white-space: nowrap;   /* keeps the title from wrapping if space gets tight */
    font-family: 'Times New Roman', Times, serif
  }

  header .link{
    font-size: 0.68rem;
    color: var(--ink);
  }


  nav{
    display: flex;
    flex: 1;                  /* nav takes all remaining width after the h1 */
    justify-content: center;  /* centers the links within that remaining space */
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;          /* lets tags drop to a second line on narrow screens instead of overflowing */
  }

  header h1::after{
    display:block;
    width: 40px;
    height: 1px;
    margin: 0.9rem auto 0;
  }

  header a{ text-decoration:none;  }

  .tag{
    display:inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    opacity: 0.55;
    padding: 0.4rem 0.85rem;
    margin: 0.15rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .tag.active{
    border: 3px solid var(--line);
  }

  .tag:hover{
    opacity: 1;
    border-color: var(--brass-dim);
    color: var(--brass);
  }

  /* ---- Pinterest-style masonry grid ---- */

  .wall{
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
  }

  /* a collection: an outlined cluster of related paintings, labeled like a museum case */
  .collection{
    position: relative;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.75rem 1.1rem 1.1rem;
    margin-bottom: 3rem;
  }

  .collection-label{
    position: absolute;
    top: -0.65rem;
    left: 1.1rem;
    background: var(--wall);
    padding: 0.15rem 0.7rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brass);
    border: 1px solid var(--brass-dim);
    border-radius: 999px;
  }

  .gallery{
    column-count: 2;   /* always exactly two paintings side by side */
    column-gap: 5rem;
    row-gap: 5rem;
  }

  .frame{
    display:block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 5rem;
    text-decoration:none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .frame:hover{
    transform: translateY(-2px);
    border-color: var(--brass-dim);
  }

  .mat{
    width: 100%;
    overflow: hidden;
    background: #0e0c08;
  }

  .mat img{
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: saturate(0.94);
  }

  .frame:hover .mat img{
    transform: scale(1.03);
    filter: saturate(1.05);
  }

  /* little text under each painting */
  .plaque{
    display:flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem 0.65rem;
    line-height: 1.25;
  }

  .plaque .num{
    font-family: var(--font-body);
    font-size: 0.62rem;
    color: var(--brass-dim);
    letter-spacing: 0.04em;
  }

  .plaque .title{
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    flex: 1;
  }

  .plaque .meta{
    display:block;
    width: 100%;
    font-size: 0.68rem;
    color: var(--ink);
    opacity: 0.45;
    margin-top: -0.15rem;
  }

  .plaque{ flex-wrap: wrap; }

  .spacer{ height: 1px; }

  /* ---- scroll rail ---- */

  .rail-wrap{
    position: fixed;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 0.6rem;
    z-index: 10;
  }

  .rail-hint{
    writing-mode: vertical-rl;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.35;
  }

  .rail-track{
    width: 2px;
    height: 140px;
    background: var(--line);
    border-radius: 2px;
    overflow:hidden;
  }

  .rail-fill{
    width: 100%;
    height: 0%;
    background: var(--brass);
  }

  footer{
    text-align:center;
    padding:1rem 1rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.35;
    border-top: 1px solid var(--line);
  }

  @media (max-width: 480px){
    .gallery{ column-count: 2; column-gap: 0.6rem; padding: 1.5rem 0.75rem 3rem; }
    .rail-wrap{ display:none; }
  }


  .featured{
  max-width: 640px;
  margin: 2rem auto;
  padding: 0 1.25rem;
}

.featured-mat{
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-mat img{
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;   /* keeps full painting visible, no cropping, no stretching */
  display: block;
}

.featured .plaque{
  padding: 0.75rem 0;
}

.featured p a{
  color: var(--brass, inherit);
  text-decoration: none;
}
