/* moshenew.com — darkroom
   Near-black paper, warm off-white ink, a safelight accent. Photographs are the hero;
   Fraunces carries the headlines and the prose, Inter does the small print. */

:root {
  --bg: #0c0b0a;
  --bg-2: #141210;
  --bg-3: #1d1a16;
  --ink: #ece5d7;
  --ink-2: #b3a995;
  --ink-3: #7d7465;
  --line: rgba(236, 229, 215, .12);
  --line-strong: rgba(236, 229, 215, .26);
  --accent: #e4623f;
  --accent-2: #f0a37a;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 44px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 520px at 75% -8%, rgba(228, 98, 63, .09), transparent 60%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
::selection { background: rgba(228, 98, 63, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg);
  padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
main { flex: 1; }

/* ---------- header / footer ---------- */
.site-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
}
.wordmark {
  font-family: var(--display); font-weight: 500; font-size: 1.4rem; letter-spacing: .005em;
  font-variation-settings: "opsz" 48;
}
.wordmark span { color: var(--accent); }
.site-nav { display: flex; gap: clamp(16px, 3vw, 34px); font-size: .92rem; letter-spacing: .02em; }
.site-nav a { color: var(--ink-2); padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a.is-current { color: var(--ink); border-bottom-color: var(--accent); }

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(40px, 8vw, 100px);
  padding-top: 34px; padding-bottom: 46px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px 40px;
  font-size: .86rem; color: var(--ink-3);
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-self: start; justify-content: end; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--accent-2); }
.foot-name { font-family: var(--display); color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.foot-fine { grid-column: 1 / -1; font-size: .78rem; }
@media (max-width: 640px) {
  .site-foot { grid-template-columns: 1fr; }
  .site-foot nav { justify-content: start; }
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0;
  letter-spacing: -.012em; font-variation-settings: "opsz" 144;
}
.eyebrow {
  font-size: .76rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; margin: 0;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 18px; height: 1px; background: var(--accent);
  vertical-align: middle; margin-right: 10px;
}
.badge {
  display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2);
  vertical-align: middle; font-weight: 500;
}
.badge.sample { color: var(--accent-2); border-color: rgba(228, 98, 63, .55); }
.src-mark { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -1px; margin-right: 7px; opacity: .92; }
.card .meta .src-mark { width: 12px; height: 12px; margin-right: 6px; vertical-align: -2px; }
.muted { color: var(--ink-2); }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(36px, 8vw, 110px) 0 clamp(36px, 6vw, 80px); }
.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.8rem); font-weight: 300; max-width: 15ch; margin-top: 20px;
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--accent-2); }
.hero .lede {
  font-family: var(--display); font-variation-settings: "opsz" 24;
  font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink-2); max-width: 48ch;
  margin: 26px 0 0; line-height: 1.45;
}
.linkrow { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: .9rem; color: var(--ink-2); }
.linkrow a { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.linkrow a:hover { border-bottom-color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: clamp(40px, 6vw, 80px) 0 0; border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.section:first-child, .hero + .section { margin-top: 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head .more { font-size: .9rem; color: var(--ink-2); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.section-head .more:hover { border-bottom-color: var(--accent); }

.page-head { padding: clamp(28px, 5vw, 64px) 0 clamp(24px, 3vw, 44px); }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 300; margin-top: 16px; max-width: 18ch; }
.page-head .lede { font-family: var(--display); font-variation-settings: "opsz" 24; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 56ch; margin: 18px 0 0; line-height: 1.5; }

/* ---------- frames & galleries ---------- */
.frame a {
  display: block; background: var(--bg-2); border: 1px solid var(--line); padding: 6px;
  transition: border-color .2s ease;
}
.frame a:hover { border-color: var(--line-strong); }
.frame img { width: 100%; }
.frame figcaption { margin-top: 10px; line-height: 1.4; display: flex; flex-direction: column; gap: 3px; }
.frame .cap-text { font-family: var(--display); font-variation-settings: "opsz" 24; font-size: .98rem; color: var(--ink-2); }
.frame .cap-meta { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.strip {
  display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; padding-bottom: 14px;
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
  padding-left: var(--gutter); padding-right: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent;
}
.strip .frame { flex: 0 0 auto; scroll-snap-align: start; max-width: 86vw; }
.strip .frame img { height: min(54vh, 440px); width: auto; max-width: none; }
.strip .frame a { display: inline-block; }
@media (max-width: 640px) { .strip .frame img { height: 300px; } }

.gallery { columns: 3; column-gap: 22px; }
.gallery .frame { break-inside: avoid; margin-bottom: 22px; }
@media (max-width: 980px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

.series-list .series {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 34px; align-items: start;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.series h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.series h2 a:hover { color: var(--accent-2); }
.series .desc { color: var(--ink-2); margin: 14px 0 0; max-width: 46ch; }
.series .more { display: inline-block; margin-top: 18px; font-size: .9rem; color: var(--accent-2); border-bottom: 1px solid transparent; }
.series .more:hover { border-bottom-color: var(--accent); }
@media (max-width: 760px) { .series-list .series { grid-template-columns: 1fr; gap: 20px; } }

.trip-head { padding: 56px 0 8px; }
.trip-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--ink-2); font-weight: 300; }
.trip-head + .series { border-top-color: var(--line-strong); }
.meta-list { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: .82rem; color: var(--ink-3); margin: 14px 0 0; padding: 0; list-style: none; }
.meta-list b { color: var(--ink-2); font-weight: 500; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  border: 1px solid var(--line); padding: 26px 26px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 70%);
  display: flex; flex-direction: column; gap: 12px; transition: border-color .2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card .meta { font-size: .74rem; color: var(--ink-3); letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.card h3 { font-size: 1.55rem; }
.card h3 a:hover { color: var(--accent-2); }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.card ul { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line); }
.card li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; display: flex; flex-direction: column; gap: 3px; line-height: 1.35; }
.card li time { color: var(--ink-3); font-size: .74rem; letter-spacing: .04em; }
.card .cta { margin-top: auto; padding-top: 10px; font-size: .88rem; color: var(--accent-2); }
.card .cta:hover { color: var(--ink); }

/* ---------- lists ---------- */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  padding: 16px 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: baseline;
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .t { font-family: var(--display); font-variation-settings: "opsz" 48; font-size: 1.22rem; line-height: 1.25; }
.rows .t a:hover { color: var(--accent-2); }
.rows .b { grid-column: 1; color: var(--ink-2); font-size: .92rem; margin: 0; }
.rows .y { color: var(--ink-3); font-size: .78rem; letter-spacing: .08em; white-space: nowrap; }
.rows.compact li { padding: 11px 0; }
.rows.compact .t { font-size: 1.05rem; }
.year-group { margin-top: 36px; }
.year-group h2 { font-size: 1.2rem; color: var(--ink-3); font-family: var(--ui); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.two .more { display: inline-block; margin-top: 16px; font-size: .86rem; color: var(--accent-2); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; gap: 34px; } }
.colhead { font-family: var(--ui); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 14px; }
.colhead::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 10px; }
.rows.stacked li { grid-template-columns: 1fr; gap: 2px; }
.rows.stacked .y { order: -1; }
@media (max-width: 640px) {
  .rows li { grid-template-columns: 1fr; gap: 2px; }
  .rows .y { order: -1; }
}

/* ---------- prose ---------- */
.piece-head { padding: clamp(28px, 5vw, 60px) 0 clamp(20px, 3vw, 36px); max-width: 66ch; }
.piece-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; margin-top: 16px; }
.piece-head .summary { font-family: var(--display); font-variation-settings: "opsz" 24; color: var(--ink-2); font-size: 1.15rem; margin: 16px 0 0; }
.prose {
  max-width: 66ch; font-family: var(--display); font-variation-settings: "opsz" 14;
  font-size: 1.22rem; line-height: 1.62; color: var(--ink);
}
.prose p { margin: 0 0 1.25em; }
.prose h2 { font-size: 1.7rem; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.3rem; margin: 1.6em 0 .5em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 2px solid var(--accent); color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose a { border-bottom: 1px solid var(--line-strong); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .85em; background: var(--bg-3); padding: .1em .35em; border-radius: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose.poem p { line-height: 1.8; margin-bottom: 1.7em; }
.piece-foot { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* ---------- project page ---------- */
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.project-side { border: 1px solid var(--line); padding: 22px 24px; font-size: .9rem; position: sticky; top: 24px; }
.project-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; }
.project-side dt { color: var(--ink-3); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.project-side dd { margin: 0; color: var(--ink-2); }
.project-side .button { display: block; margin-top: 20px; text-align: center; padding: 11px 14px; border: 1px solid var(--accent); color: var(--accent-2); font-weight: 500; }
.project-side .button:hover { background: var(--accent); color: var(--bg); }
@media (max-width: 860px) { .project-layout { grid-template-columns: 1fr; gap: 28px; } .project-side { position: static; } }

/* ---------- about ---------- */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.contact { border: 1px solid var(--line); padding: 24px; font-size: .92rem; }
.contact h2 { font-size: 1.3rem; margin-bottom: 14px; }
.contact ul { list-style: none; margin: 0; padding: 0; }
.contact li { padding: 9px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.contact li span { color: var(--ink-3); }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center;
  background: rgba(8, 7, 6, .965); padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; }
.lightbox img { max-width: min(96vw, 1700px); max-height: 84vh; width: auto; height: auto; border: 1px solid var(--line); margin: 0 auto; }
.lightbox figcaption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: var(--ink-2); font-size: .85rem; padding: 0 64px; }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--ink-2); cursor: pointer;
  font: inherit; font-size: 2.3rem; line-height: 1; padding: 14px 18px;
}
.lightbox button:hover { color: var(--ink); }
.lb-close { top: 8px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }

/* ---------- misc ---------- */
.notfound { padding: 12vh 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 7rem); font-weight: 300; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
