:root {
  --bg: #f3efe8;
  --surface: #f7f3ed;
  --ink: #1f1713;
  --muted: #5b463c;
  --line: rgba(31, 23, 19, 0.18);
  --line-strong: rgba(31, 23, 19, 0.28);
  --overlay: rgba(8, 8, 10, 0.96);
  --max: 1480px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

h1, h2, h3, p { margin: 0; }

img {
  display: block;
  max-width: 100%;
}

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

.container {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 239, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  padding: 22px 0 10px;
}

.brand,
.eyebrow,
.section-kicker,
.meta,
.contact-label,
footer {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.03em;
  text-transform: none;
  line-height: 1;
}

.topbar-link {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}



.hero {
  padding: 22px 0 14px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}

.hero-copy {
  width: 100%;
}

.eyebrow {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h1,
.section-title,
.work-body h3,
.lightbox-panel h3,
.contact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(40px, 10vw, 88px);
  line-height: 0.95;
  max-width: 6ch;
  margin-bottom: 8px;
}

.hero p,
.section-desc,
.statement p,
.work-body p,
.panel p,
.panel li,
.contact p,
.lightbox-panel p {
  font-size: 13px;
  max-width: 26ch;
  color: rgba(246, 241, 234, 0.82);
}

.hero p {
  width: 100%;
  max-width: min(100%, 980px);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-side {
  display: none;
}

.hero-image {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: url('/mnt/data/IMG_4601.JPEG') center/cover no-repeat;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}

section {
  padding: 28px 0 72px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  align-items: start;
  padding-top: 8px;
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 11px;
  color: var(--muted);
  padding-top: 8px;
}

.section-title {
  font-size: clamp(24px, 4vw, 44px);
  line-height: 0.98;
  margin-bottom: 6px;
}

.section-desc {
  max-width: 42ch;
  font-size: 13px;
}

.statement {
  max-width: 1040px;
  column-count: 2;
  column-gap: 38px;
}

.statement p {
  font-size: 16px;
}

.themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.theme {
  padding: 22px 18px 26px 0;
  border-right: 1px solid var(--line);
  min-height: 182px;
}

.theme:last-child {
  border-right: 0;
}

.theme span {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.theme h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.theme p {
  max-width: 24ch;
  color: var(--muted);
  font-size: 14px;
}

.works {
  column-count: 3;
  column-gap: 12px;
}

.work {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  vertical-align: top;
}

.work:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.work-visual {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  border-radius: 2px;
  background: transparent;
}

.work-body h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.meta {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 0;
}

.work-body p {
  display: none;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  padding: 22px;
  background: transparent;
}

.panel h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel li + li {
  margin-top: 10px;
}

.quote {
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
  margin-top: 18px;
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.contact {
  background: #1f1713;
  color: #f6f1ea;
  padding: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.contact h2 {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 12px;
}

.contact p {
  color: rgba(246, 241, 234, 0.82);
}

.contact-card {
  border: 1px solid rgba(255,255,255,0.14);
  padding: 22px;
}

.contact-label {
  display: block;
  font-size: 11px;
  color: rgba(246, 241, 234, 0.7);
  margin-bottom: 6px;
}

.contact-card p + .contact-label {
  margin-top: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 100;
  overflow: hidden;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-image {
  width: auto;
  max-width: 99vw;
  max-height: 98vh;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-panel {
  display: none;
}

.lightbox-panel h3 {
  font-size: 28px;
  line-height: 0.98;
  margin-bottom: 8px;
}

.lightbox-panel .meta {
  color: rgba(246, 241, 234, 0.64);
  margin-bottom: 10px;
}

.lightbox-panel p {
  font-size: 14px;
  max-width: 34ch;
  color: rgba(246, 241, 234, 0.82);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

footer {
  padding: 24px 0 40px;
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .brand {
    display: block;
    margin-bottom: 0;
  }

  .works {
    column-count: 2;
    column-gap: 12px;
  }

  .work {
    grid-column: auto;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lightbox-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .lightbox-panel {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-left: 0;
    padding-top: 14px;
  }

  .hero h1 {
    max-width: none;
  }

  .contact {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: clamp(24px, 8vw, 34px);
  }

  .brand,
  .topbar-link,
  .section-kicker,
  .meta,
  .contact-label,
  footer {
    letter-spacing: 0.12em;
  }

  .hero {
    padding: 18px 0 10px;
  }

  .hero p {
    font-size: 13px;
    max-width: 100%;
  }

  section {
    padding: 16px 0 40px;
  }

  .section-title {
    font-size: clamp(20px, 8vw, 32px);
  }

  .works {
    column-count: 1;
    column-gap: 0;
  }

  .work-visual {
    margin-bottom: 0;
  }

  .work-body {
    display: none;
  }

  .contact {
    padding: 16px;
  }

  .contact h2 {
    font-size: 24px;
  }

  .contact-card {
    padding: 16px;
  }

  .lightbox {
    padding: 10px;
    align-items: flex-start;
  }

  .lightbox-inner {
    width: 100%;
    gap: 10px;
    margin-top: 44px;
  }

  .lightbox-image {
    max-height: 58vh;
  }

  .lightbox-panel h3 {
    font-size: 22px;
  }

  .lightbox-panel p {
    font-size: 12px;
    max-width: none;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .lightbox-panel {
    display: none;
  }
}

  .contact {
    padding: 16px;
  }

  .contact h2 {
    font-size: 24px;
  }

  .contact-card {
    padding: 16px;
  }

  .lightbox {
    padding: 10px;
    align-items: flex-start;
  }

  .lightbox-inner {
    width: 100%;
    gap: 10px;
    margin-top: 44px;
  }

  .lightbox-image {
    max-height: 58vh;
  }

  .lightbox-panel h3 {
    font-size: 22px;
  }

  .lightbox-panel p {
    font-size: 12px;
    max-width: none;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}

  .works {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 14px;
  }
}

/* ---------- added: sold tag, journal, post page ---------- */
.work-body h3 .sold {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 3px;
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.journal-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}

.journal-item {
  display: block;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  transition: opacity 0.2s ease;
}

.journal-item:hover { opacity: 0.8; }

.journal-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 12px;
}

.journal-date {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 6px;
}

.journal-item h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.journal-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.topbar-nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
}

.topbar-nav .topbar-link { margin-left: 0; }

.post-page {
  padding: 36px 0 80px;
}

.post-wrap {
  max-width: 760px;
}

.post-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(30px, 6vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 8px 0 24px;
}

.post-cover {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  margin-bottom: 28px;
}

.post-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
}

.post-body p { margin: 0 0 1.2em; max-width: none; color: var(--ink); font-size: 15px; }
.post-body h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 26px; letter-spacing: -0.03em; margin: 1.6em 0 0.6em; }
.post-body img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px; }
.post-body figure { margin: 28px 0; }
.post-body figcaption { font-size: 11px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }
.post-body blockquote { border-left: 2px solid var(--line-strong); margin: 1.4em 0; padding-left: 18px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.post-body ul { padding-left: 20px; margin: 0 0 1.2em; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }

.post-nav {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

@media (max-width: 980px) {
  .journal-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .journal-list { grid-template-columns: 1fr; }
}

/* ---------- works: row-first order (1 2 3 / 4 5 6) keeping the masonry look ---------- */
.works { --cols: 3; }
@media (max-width: 980px) { .works { --cols: 2; } }
@media (max-width: 640px) { .works { --cols: 1; } }

.works.is-rows {
  column-count: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.works.is-rows .works-col {
  flex: 1 1 0;
  min-width: 0;
}

.works.is-rows .work {
  display: block;
}
