@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

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

html {
  scroll-behavior: smooth;
}

:root {
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cream: #f9f6f3;
  --warm-white: #faf7f2;
  --olive: #7a7a4a;
  --olive-dark: #5a5a35;
  --tan: #c4a882;
  --tan-light: #e8dcc8;
  --brown-light: #9a7055;
  --text-dark: #3a3020;
  --text-mid: #6b5a40;
  --text-light: #9a8a70;
  --border: #d5c5a5;
}

body {
  min-height: 100vh;
  background: var(--cream);
  color: var(--text-mid);
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

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

.home-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--text-light);
  font-size: 19px;
  font-weight: 300;
  animation: fadeUp 0.9s ease forwards;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.top-nav a:hover {
  color: var(--olive-dark);
}

/* ===================== Global site header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
}

.site-header-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text-light);
}

.site-nav a {
  color: var(--text-light);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--olive-dark);
}

.site-nav a.active {
  color: var(--text-dark);
}

.site-logo {
  display: inline-flex;
  flex: none;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 22px;
  color: var(--text-dark);
  transition: color 0.2s ease;
}

.site-logo:hover {
  color: var(--olive-dark);
}

@media (max-width: 600px) {
  .site-header-inner {
    flex-wrap: wrap;
    padding: 14px 18px 10px;
    gap: 4px 16px;
  }

  /* nav drops to its own line under the logo and wraps, so it never
     runs off the right edge on a phone */
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    font-size: 15px;
  }

  .site-logo img {
    width: 44px;
    height: 44px;
  }
}

/* belt-and-suspenders: never allow sideways scrolling on small screens */
@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
}

.logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
}

.writing-img {
  width: 70%;
  margin: 0 auto;
  display: block;
}

.header-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 60px;

  animation: fadeUp 0.9s ease 0.15s both;
}

.header-image img {
  width: 20%;
  display: block;
  margin: -50px auto 0;
}

.header-image.small {
  max-width: 600px;
  margin-top: 20px;
}

.header-image.large {
  max-width: 600px;
  margin-top: 70px;
  margin-bottom: 20px;
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
  animation: fadeUp 0.9s ease 0.3s both;
}

.about-art .diamond-hover-wrap {
  width: 100%;
}

.about-art canvas {
  width: 100%;
}

.about-art-caption {
  margin-top: 12px;
  text-align: center;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 13px;
  font-style: italic;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-light);
}

/* smaller about-me text for the card */
.about-section .about-text p:not(.section-label):not(.cursive-line) {
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--tan-light);
  overflow: hidden;
}

.about-photo img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  display: block;
}

.about-text {
  padding-top: 8px;
}

.section-label {
  margin-bottom: 16px;
  color: var(--olive);
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about-text h1,
.post h1 {
  color: var(--text-dark);
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-weight: 500;
  line-height: 1.1;
}

.about-text h1 {
  margin-bottom: 22px;
  font-size: 36px;
}

.cursive-line {
  margin-bottom: 10px;
  margin-top: 0px;
  color: var(--olive);
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 30px;
  line-height: 1.5;
}

.cursive-line-blog{
  margin-bottom: 10px;
  margin-top: 0px;
  color: var(--olive);
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 20px;
  line-height: 1.5;
}

.about-text p:not(.section-label):not(.cursive-line),
.post p:not(.cursive-line-blog){
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text-dark);
}

.blog-page,
.post-page {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 52px;
  color: var(--text-light);
  font-size: 16px;
  letter-spacing: 0.05em;
}

.back-link svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.back-link:hover {
  color: var(--olive-dark);
}

.blog-header {
  text-align: center;
}

.blog-header h1 {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 42px;
  font-style: italic;
  font-weight: 700;
}

.blog-list {
  width: 100%;
}

.blog-section-label {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 56px 0 4px;
}

.blog-entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.blog-entry-img {
  order: -1;
}

.blog-entry:last-child {
  border-bottom: 1px solid var(--border);
}

.blog-entry:hover .blog-entry-title {
  color: var(--olive-dark);
}

.blog-entry-title {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 27px;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.blog-entry-sub {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 14px;
}

.blog-entry-date {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.blog-entry-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .blog-entry {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-entry-img {
    order: -1;
  }
}

.post {
  text-align: left;
}

.post-date {
  color: var(--text-dark);
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: right;
}

.post h1 {
  margin: 12px 0 4px;
  color: var(--text-dark);
  font-size: 40px;
  font-weight: 800;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {

  .home-page,
  .blog-page,
  .post-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 9px;
    font-size: 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 9px;
  }

  .about-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-art {
    max-width: 260px;
    margin: 0 auto;
  }

  .about-text h1 {
    font-size: 30px;
  }

  .cursive-line {
    font-size: 25px;
    color: var(--olive);
  }

  .blog-header h1 {
    font-size: 34px;
    font-weight:300px;
  }

  .blog-date {
    margin-left: 250px;
    font-size: 14px;
    text-align: left;
  }

  .blog-title {
    font-size: 18px;
    margin-right: 250px;
  }
}

.site-footer {
  padding: 60px 10px 50px;
  text-align: center;
  position: sticky;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-light);
  font-style: italic;
  position: sticky;
}

.share-menu {
  position: relative;
  display: inline-block;
}

.share-trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 17px;
  color: var(--text-mid);
  cursor: pointer;
}

.share-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  min-width: 220px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 100;
}

.share-dropdown.active {
  display: block;
}

.share-dropdown a,
.share-dropdown button {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  color: var(--text-mid);
  text-decoration: none;
  cursor: pointer;
}

.share-dropdown a:hover,
.share-dropdown button:hover {
  background: var(--tan-light);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cursive-line {
  margin: 0;
}

/* ===================== Creations page ===================== */
 
.creations-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}
 
.creations-header {
  text-align: center;
  margin-bottom: 52px;
  animation: fadeUp 0.9s ease forwards;
}
 
.creations-header h1 {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-weight: 500;
  font-size: 42px;
  color: var(--text-dark);
  margin-top: 6px;
}
 
.creations-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 64px 0;
}
 
.creations-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  animation: fadeUp 0.7s ease both;
}
 
.creations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 110px);
  gap: 14px;
}
 
.creations-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--tan-light);
  display: block;
}
 
.creations-copy p.cursive-line {
  font-size: 28px;
}
 
.creations-copy h2 {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-weight: 300;
  font-size: 38px;
  color: var(--text-dark);
  margin-bottom: 18px;
  line-height: 1.1;
}
 
.creations-copy p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 26px;
  max-width: 380px;
}
 
.creations-view-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive-dark);
}
 
.creations-view-link svg {
  width: 32px;
  height: 13px;
  transition: transform 0.25s ease;
}
 
.creations-view-link:hover svg {
  transform: translateX(6px);
}
 
@media (max-width: 700px) {
  .creations-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }
 
  .creations-grid {
    order: 2;
    grid-template-rows: repeat(2, 80px);
  }
 
  .creations-copy {
    order: 1;
  }
 
  .creations-copy h2 {
    font-size: 32px;
  }
 
  .creations-header h1 {
    font-size: 34px;
  }
 
  .creations-divider {
    margin: 48px 0;
  }
}
 
/* ===================== Gallery pages ===================== */
 
.gallery-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 70px 24px 90px;
}
 
.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}
 
.gallery-header h1 {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 40px;
  color: var(--text-dark);
}
 
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
 
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--tan-light);
  display: block;
}
 
@media (max-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
 
  .gallery-header h1 {
    font-size: 32px;
  }
}

/* ===================== Games page ===================== */
.games-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 90px;
}

.games-header {
  text-align: center;
  margin-bottom: 44px;
  animation: fadeUp 0.9s ease forwards;
}

.games-header h1 {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 42px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.games-header p {
  font-size: 16px;
  color: var(--text-mid);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  animation: fadeUp 0.9s ease 0.15s both;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-width: 0; /* let the card shrink below the thumbnail's intrinsic width */
  padding: 34px 22px 30px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(58, 48, 32, 0.1);
  border-color: var(--olive);
}

.game-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  background: var(--tan-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--olive-dark);
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-icon-fallback svg {
  width: 44px;
  height: 44px;
}

.game-name {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 24px;
  color: var(--text-dark);
}

.game-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-mid);
  max-width: 240px;
}

/* games page: image title + card thumbnail */
.games-title-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 10px;
}

.game-thumb {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
}

.game-thumb img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   Reader bulletin board (Town Square comments + replies)
   Shared across posts — drop the .bulletin markup on any page
   and include comments.js. Threads are keyed by data-post.
   ============================================================ */
.bulletin {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  border-top: 1px solid var(--border);
}
.bulletin-title {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.bulletin .bulletin-sub {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 22px;
}

.board-form { margin-bottom: 30px; }
.board-name,
.board-email,
.board-text,
.note-reply-form input,
.note-reply-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 16px;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  outline: none;
}
.board-name,
.board-email { margin-bottom: 10px; }
.board-text,
.note-reply-form textarea { resize: vertical; line-height: 1.5; }
.board-name:focus,
.board-email:focus,
.board-text:focus,
.note-reply-form input:focus,
.note-reply-form textarea:focus { border-color: var(--olive); }

.board-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}
.board-msg,
.r-msg { font-size: 13px; color: var(--brown-light); margin-right: auto; }
.board-submit {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--olive);
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.board-submit:hover { background: var(--olive-dark); }
.board-submit.small { padding: 7px 16px; font-size: 12px; }
.board-submit[disabled] { opacity: 0.5; cursor: default; }

.board-notes { display: flex; flex-direction: column; gap: 16px; }
.bulletin .board-empty { font-style: italic; color: var(--text-light); }

.note {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 14px;
  margin: 0;
  box-shadow: 0 4px 14px rgba(58, 48, 32, 0.06);
}
.note::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 1px 3px rgba(58, 48, 32, 0.3);
}
.bulletin .note-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0 0 8px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bulletin .note-by { font-size: 13px; color: var(--text-mid); font-style: italic; margin: 0; }
.bulletin .note-date { color: var(--text-light); }

.note-replies {
  margin: 12px 0 6px;
  padding-left: 16px;
  border-left: 2px solid var(--tan-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reply .note-text { font-size: 14.5px; margin-bottom: 5px; }
.reply .note-by { font-size: 12px; }
/* nested reply threads: tighten indentation each level so deep threads
   stay readable and don't run off-screen on narrow viewports */
.note-replies .note-replies { margin: 10px 0 2px; padding-left: 12px; }
.reply .note-reply-btn { padding-top: 4px; }

.note-reply-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 0 0;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--olive);
}
.note-reply-btn:hover { color: var(--olive-dark); text-decoration: underline; }
.note-reply-form { margin-top: 10px; }
.note-reply-form input { margin-bottom: 8px; }

.board-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.board-pager:empty { display: none; }
.board-page {
  min-width: 34px;
  padding: 6px 10px;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 15px;
  color: var(--text-mid);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.board-page:hover { border-color: var(--olive); color: var(--olive-dark); }
.board-page.active {
  color: var(--cream);
  background: var(--olive);
  border-color: var(--olive);
  cursor: default;
}
.board-page-arrow { font-size: 18px; line-height: 1; padding-top: 4px; padding-bottom: 4px; }

@media (max-width: 600px) {
  .bulletin { padding: 40px 18px 18px; }
}

/* ============================================================
   Trading Post — services + commissions, with photo galleries
   ============================================================ */
.trading-page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px 90px;
}
.trading-header {
  text-align: center;
  margin-bottom: 8px;
}
.trading-title-img {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 12px;
}
.trading-title {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 700;
  font-size: 42px;
  color: var(--text-dark);
}
.trading-intro {
  font-size: 16px;
  color: var(--text-light);
  margin-top: 8px;
}

.trade-service {
  display: grid;
  grid-template-columns: minmax(0, 300px) 1fr;
  grid-template-areas:
    "head gallery"
    "desc gallery";
  column-gap: 36px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.trade-service:first-of-type {
  border-top: none;
}
.trade-head {
  grid-area: head;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 10px;
}
.trade-name {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  color: var(--text-dark);
}
.trade-price {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 18px;
  color: var(--olive);
}
.trade-price-closed {
  color: var(--text-light);
  font-style: italic;
}
.trade-desc {
  grid-area: desc;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
}
.trade-desc p { margin-bottom: 8px; }
.trade-warn {
  font-style: italic;
  color: var(--brown-light);
  font-size: 14.5px;
}

/* Gallery sits to the right of the text. Default: masonry (natural proportions,
   no cropping) for photography + calligraphy. */
.trade-gallery {
  grid-area: gallery;
  columns: 2 180px;
  column-gap: 12px;
}
.trade-gallery img {
  width: 100%;
  display: block;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  break-inside: avoid;
  cursor: zoom-in;
}
/* Cropped, uniform galleries — all tiles the same size via object-fit. */
.trade-gallery--crop {
  columns: auto;
  display: grid;
  gap: 12px;
}
.trade-gallery--crop img { margin: 0; object-fit: cover; }
.trade-gallery--glass { grid-template-columns: repeat(3, 1fr); }
.trade-gallery--glass img { aspect-ratio: 4 / 3; }     /* match sg1/sg2 landscape */
.trade-gallery--square { grid-template-columns: repeat(2, 1fr); }
.trade-gallery--square img { aspect-ratio: 1 / 1; }
.trade-gallery--photos { grid-template-columns: repeat(3, 1fr); }
.trade-gallery--photos img { aspect-ratio: 1 / 1; }   /* 6x6-style square crop */
/* push a lone tile into the right-hand column */
.trade-gallery--right img { grid-column: 2; }    /* square paintings */

/* Inquiries */
.trade-inquiries {
  text-align: center;
  padding: 48px 0 8px;
  border-top: 1px solid var(--border);
}
.trade-inquiries p {
  font-size: 16px;
  color: var(--text-mid);
  margin: 10px auto 18px;
  max-width: 460px;
}
.trade-email-btn {
  display: inline-block;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 17px;
  color: var(--cream);
  background: var(--olive);
  padding: 11px 26px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.trade-email-btn:hover { background: var(--olive-dark); }
.trade-email-btn { border: none; cursor: pointer; }

.inquiry-form {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.inquiry-input {
  width: 100%;
  box-sizing: border-box;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 16px;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 13px;
  outline: none;
}
.inquiry-input:focus { border-color: var(--olive); }
.inquiry-note { resize: vertical; line-height: 1.5; }
.inquiry-msg {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--brown-light);
  min-height: 18px;
}
.inquiry-form .trade-email-btn { align-self: center; margin-top: 4px; }

/* Trades — same shape as Inquiries, plus photo item slots */
.trades-note {
  font-style: italic;
  font-size: 15px !important;
  color: var(--brown-light) !important;
  margin-top: -6px !important;
}
.trade-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trade-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 13px;
  background: #fff;
}
.trade-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.trade-item-label {
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 15px;
  color: var(--text-mid);
  letter-spacing: 0.02em;
}
.trade-item-remove {
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 14px;
  font-style: italic;
  color: var(--brown-light);
  padding: 2px 4px;
}
.trade-item-remove:hover { color: var(--olive-dark); text-decoration: underline; }
.trade-item-file {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.trade-item-file input[type="file"] { display: none; }
.trade-item-filename {
  flex: 1;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 15px;
  color: var(--text-mid);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.trade-item-file:hover .trade-item-filename { border-color: var(--olive); color: var(--olive-dark); }
.trade-item-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
}
.trade-add-btn {
  align-self: flex-start;
  border: 1px solid var(--olive);
  background: none;
  cursor: pointer;
  font-family: 'EB Garamond', 'Times New Roman', Times, serif;
  font-size: 15px;
  color: var(--olive-dark);
  padding: 8px 16px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, color 0.15s ease;
}
.trade-add-btn:hover { background: var(--olive); color: var(--cream); }

/* Click-to-enlarge lightbox */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(30, 22, 14, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.photo-lightbox.open { display: flex; }
.photo-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #faf7f2;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  z-index: 2;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 40px; height: 40px; font-size: 26px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 640px) {
  .trading-title { font-size: 34px; }
  .trade-service {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "desc"
      "gallery";
    row-gap: 6px;
  }
  .trade-gallery { margin-top: 14px; }
}

/* ============================================================
   Salon writing helpers — inline links + hover footnotes.
   Usage:
     <a class="salon-link" href="...">a link</a>
     <span class="footnote"><sup class="footnote-marker" tabindex="0">1</sup>
       <span class="footnote-box">The note text.</span></span>
   ============================================================ */
.salon-link {
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--text-light);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.salon-link:hover,
.salon-link:focus {
  color: var(--olive);
  text-decoration-color: var(--olive);
}

.footnote {
  position: relative;
  display: inline;
}
.footnote-marker {
  color: var(--text-light);
  font-size: 0.72em;
  vertical-align: super;
  line-height: 0;
  padding: 0 1px;
  cursor: help;
  transition: color 0.15s ease;
}
.footnote-marker::before { content: '['; }
.footnote-marker::after { content: ']'; }
.footnote-marker:hover { color: var(--text-mid); }
.footnote-marker:focus { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 2px; }
.footnote-box {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 260px;
  background: var(--warm-white);
  color: var(--text-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(58, 48, 32, 0.14);
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.5;
  font-style: normal;
  text-align: left;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}
.footnote:hover .footnote-box,
.footnote:focus-within .footnote-box {
  opacity: 1;
  visibility: visible;
}
/* little pointer under the box */
.footnote-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--warm-white);
}
