/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ==========================================================================
   Public site
   This file is loaded only by the public layouts. The admin has its own
   stylesheet (admin.css) and does not load this one, so the two can't collide
   — including .rich-text-editor, which now lives with the rest of the admin.

   Type: Shippori Mincho (Japanese) + Newsreader (Latin), both served from
   Google Fonts with a system-mincho fallback — Hiragino Mincho ProN ships
   with macOS/iPadOS, so the site still reads correctly for the gallery's
   own editors even if the webfont never arrives.
   ========================================================================== */

body.public {
  /* palette */
  --bg: #0E0E0D;
  --bg-lift: #171714;
  --ink: #EDEBE6;
  --dim: #B9B4AA;
  --muted: #8C867C;
  --rule: #26251F;
  --rule-strong: #38362E;

  /* type */
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro",
            "Yu Mincho", YuMincho, "MS Mincho", serif;
  --serif: "Newsreader", "Hoefler Text", Georgia, "Times New Roman", serif;

  /* metrics */
  --measure: 42rem;
  --gutter: 2.5rem;

  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif), var(--mincho);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.public img {
  max-width: 100%;
}

body.public a {
  color: inherit;
  text-decoration: none;
}

body.public ::selection {
  background: var(--ink);
  color: var(--bg);
}

body.public :focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
}

/* Shared bits ------------------------------------------------------------ */

.site-header-inner,
.site-main,
.site-footer-inner,
.site-footer-base,
.flash {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.label {
  font-family: var(--serif);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Preview banner --------------------------------------------------------- */
/* Only ever rendered for a signed-in admin looking at their own unpublished
   record (see PublicController#previewable). It has to be unmissable — the
   whole point is that this page is NOT what a visitor sees — so it takes the
   one warm accent on the site and pins itself to the top of the viewport. */

body.public .preview-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #C8842E;
  color: #17150F;
}

body.public .preview-banner p {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--mincho);
  font-size: 0.875rem;
  line-height: 1.5;
}

body.public .preview-banner a {
  color: inherit;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* Japanese headings sit tighter with proportional kana metrics. */
.jp {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  line-break: strict;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  padding: 2.25rem 0 1.75rem;
}

.site-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 0.35rem;
}

.site-mark {
  display: block;
  line-height: 1;
}

.site-mark-name {
  display: block;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  transition: opacity 0.35s ease;
}

.site-mark-name:hover {
  opacity: 0.66;
}

.site-mark-sub {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1;
  gap: 0.5rem 1.85rem;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  padding-bottom: 0.25rem;
  transition: color 0.35s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

.site-nav a:hover::after,
.site-nav a.on::after {
  transform: scaleX(1);
}

.site-nav a.on {
  color: var(--ink);
}

/* Flash ------------------------------------------------------------------ */

.flash {
  margin-top: 1rem;
}

.flash p {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-lift);
  border-left: 2px solid var(--rule-strong);
  font-size: 0.875rem;
  color: var(--dim);
}

/* Main ------------------------------------------------------------------- */

.site-main {
  padding-top: 1rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.5rem;
}

.page-head {
  padding: 3.5rem 0 0;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin: 0.9rem 0 0;
}

.page-head h1.jp {
  font-family: var(--mincho);
  font-weight: 400;
}

.empty {
  margin: 3rem 0 4rem;
  color: var(--muted);
  font-family: var(--mincho);
}

/* Hero (homepage current show) ------------------------------------------- */

.hero {
  padding: 3.5rem 0 0;
}

.hero-label {
  margin-bottom: 1.75rem;
  display: block;
}

.hero h1 {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: clamp(2.125rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.01em;
  margin: 0;
}

.hero h1 a {
  transition: opacity 0.35s ease;
}

.hero h1 a:hover {
  opacity: 0.62;
}

.hero-en {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.7vw, 1.3125rem);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin: 1rem 0 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 1.75rem 0 0;
  font-family: var(--serif);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.hero-meta .jp {
  font-family: var(--mincho);
  letter-spacing: 0.04em;
}

.hero-figure {
  display: block;
  margin: 3rem 0 0;
  overflow: hidden;
  background: var(--bg-lift);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: clamp(260px, 52vw, 620px);
  object-fit: cover;
  opacity: 0.94;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease;
}

.hero-figure:hover img {
  transform: scale(1.025);
  opacity: 1;
}

/* Section heading -------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

.section-head .count {
  font-family: var(--serif);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* Listing rows ----------------------------------------------------------- */

.list {
  margin: 0;
}

.list-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.25rem;
  align-items: start;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.list-item.no-thumb {
  grid-template-columns: 1fr;
}

.list-item-thumb {
  display: block;
  overflow: hidden;
  background: var(--bg-lift);
  aspect-ratio: 4 / 3;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
}

.list-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.9;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;
}

.list-item:hover .list-item-thumb img {
  transform: scale(1.045);
  opacity: 1;
}

.list-item h2 {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.list-item h2 a {
  transition: opacity 0.35s ease;
}

.list-item h2 a:hover {
  opacity: 0.62;
}

.list-item-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.list-item-dates {
  font-family: var(--serif);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 1.1rem 0 0;
}

.list-item-tag {
  color: var(--dim);
}

.list-item-excerpt {
  font-family: var(--mincho);
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--muted);
  margin: 1.1rem 0 0;
  max-width: 34rem;
}

/* Journal spotlight (homepage blog preview) ------------------------------ */

.journal-spotlight {
  margin-top: 6rem;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3.25rem;
  margin-top: 2rem;
}

.spotlight-feature {
  display: block;
}

.spotlight-feature-figure {
  display: block;
  overflow: hidden;
  background: var(--bg-lift);
  aspect-ratio: 16 / 10;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
}

.spotlight-feature-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;
}

.spotlight-feature:hover .spotlight-feature-figure img {
  transform: scale(1.03);
  opacity: 1;
}

.spotlight-feature h3 {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.spotlight-feature h3 a { transition: opacity 0.35s ease; }
.spotlight-feature h3 a:hover { opacity: 0.62; }

.spotlight-feature-meta {
  font-family: var(--serif);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.spotlight-feature-excerpt {
  font-family: var(--mincho);
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--muted);
  margin: 1.1rem 0 0;
}

.spotlight-list {
  border-top: 1px solid var(--rule);
}

.spotlight-list-row {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.spotlight-list-row h4 {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
  transition: opacity 0.35s ease;
}

.spotlight-list-row:hover h4 { opacity: 0.62; }

.spotlight-list-row .d {
  display: block;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 0.6rem;
}

.spotlight-more {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.spotlight-more:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* Filters ---------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.filters a {
  color: var(--muted);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.filters a:hover {
  color: var(--ink);
}

.filters a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Detail pages ----------------------------------------------------------- */

.detail {
  padding: 3.5rem 0 0;
}

.detail h1 {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: clamp(1.875rem, 4.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: 0.01em;
  margin: 1.5rem 0 0;
}

.detail-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  margin: 1rem 0 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.detail-meta .jp {
  font-family: var(--mincho);
  letter-spacing: 0.04em;
}

.detail-meta a {
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.detail-meta a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.detail-body {
  font-family: var(--mincho);
  font-size: 1rem;
  line-height: 2.05;
  color: var(--dim);
  max-width: var(--measure);
  margin: 2.75rem 0 0;
}

.detail-body p {
  margin: 0 0 1.6em;
}

.detail-body h2,
.detail-body h3 {
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  margin: 2.4em 0 0.9em;
}

.detail-body h2 { font-size: 1.375rem; }
.detail-body h3 { font-size: 1.125rem; }

.detail-body strong { font-weight: 500; color: var(--ink); }
.detail-body em { font-style: italic; }

.detail-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.3s ease;
}

.detail-body a:hover { border-bottom-color: var(--ink); }

.detail-body ul,
.detail-body ol {
  margin: 0 0 1.6em;
  padding-left: 1.4em;
}

.detail-body li { margin: 0 0 0.5em; }

.detail-body blockquote {
  margin: 2em 0;
  padding-left: 1.5em;
  border-left: 1px solid var(--rule-strong);
  color: var(--muted);
}

.detail-body img { height: auto; max-width: 100%; }

/* Inline images placed via the admin's rich-text editor. display: flow-root
   (rather than an ::after clearfix) keeps the container from collapsing
   when a float is the last thing in the body. */
.detail-body { display: flow-root; }

/* max-width (a cap), not a forced width — a resized image's own width
   attribute needs to still show through here, and a forced width would
   always win over it in the cascade. "Full width" intentionally keeps a
   forced width: filling the container is the whole point of that option. */
.detail-body img.rte-img-left,
.detail-body img.rte-img-right {
  max-width: 50%;
  margin-bottom: 1.6em;
}
.detail-body img.rte-img-left { float: left; margin-right: 1.8em; }
.detail-body img.rte-img-right { float: right; margin-left: 1.8em; }

.detail-body img.rte-img-center { max-width: 480px; margin: 0 auto 1.6em; display: block; }
.detail-body img.rte-img-full { width: 100%; display: block; margin: 0 0 1.6em; }

/* A row of several photos placed side by side — distinct from a single
   aligned image (above). Splits evenly across however many photos exist
   via flex, so it never wraps mid-row; deliberately not cropped (see the
   .image-gallery comment below for why mixed aspect ratios shouldn't be
   forced into uniform tiles). */
.detail-body .rte-img-row {
  display: flex;
  gap: 1rem;
  margin: 0 0 1.6em;
  align-items: flex-start;
}
.detail-body .rte-img-row img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: auto;
}

@media (max-width: 620px) {
  .detail-body .rte-img-row { flex-direction: column; }
  .detail-body .rte-img-row img { flex: 0 0 auto; width: 100%; }
}

.detail-body-en {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: var(--measure);
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.detail-body-en p { margin: 0 0 1.4em; }

/* Image gallery ---------------------------------------------------------- */

.image-gallery {
  list-style: none;
  margin: 4.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  /* Photos arrive at mixed aspect ratios; without this a short landscape shot
     stretches to its row's height and shows an empty panel below itself. */
  align-items: start;
}

.image-gallery li {
  overflow: hidden;
  background: var(--bg-lift);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.image-gallery img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.92;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;
}

.image-gallery li:hover img {
  transform: scale(1.03);
  opacity: 1;
}

/* Info blocks (about / contact) ------------------------------------------ */

.info-list {
  margin: 3rem 0 0;
  max-width: var(--measure);
}

.info-row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule);
}

.info-row dt {
  font-family: var(--serif);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.info-row dd {
  margin: 0;
  font-family: var(--mincho);
  color: var(--dim);
}

.info-row dd a {
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.info-row dd a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.map-embed {
  margin: 3.5rem 0 0;
  background: var(--bg-lift);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
  filter: grayscale(1) invert(0.92) contrast(0.86);
  transition: filter 0.5s ease;
}

.map-embed:hover iframe {
  filter: none;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 2rem;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.site-footer-col h2 {
  font-family: var(--serif);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

/* A single kanji reads smaller than a tracked-out Latin word at the same
   size — size it up and drop the Latin-caps tracking, same as other .jp
   headings elsewhere on the site. */
.site-footer-col h2.jp {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.site-footer-col p {
  margin: 0 0 0.55rem;
  font-family: var(--mincho);
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.85;
}

.site-footer-col a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-footer-col a:hover {
  border-bottom-color: var(--dim);
}

.site-footer-base {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.site-footer-base p {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  body.public { --gutter: 1.75rem; }

  .list-item {
    grid-template-columns: 200px 1fr;
    gap: 2rem;
  }

  .site-footer-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 620px) {
  body.public { --gutter: 1.25rem; }

  .site-header {
    padding: 1.5rem 0 1.25rem;
  }

  .site-header-inner {
    align-items: flex-start;
    gap: 1.1rem;
  }

  .site-mark-name { font-size: 1.75rem; }
  .site-mark-sub { font-size: 0.6875rem; letter-spacing: 0.18em; }
  .site-nav-mukara { font-size: 1.25rem; }
  .site-nav-mukara-sub { font-size: 0.625rem; letter-spacing: 0.16em; }

  .site-nav {
    gap: 0.4rem 1.25rem;
    font-size: 0.6875rem;
    letter-spacing: 0.16em;
  }

  .hero { padding-top: 2.25rem; }
  .page-head { padding-top: 2.25rem; }
  .detail { padding-top: 2.25rem; }

  .hero-figure { margin-top: 2rem; }

  .section-head { margin-top: 3.5rem; }

  .list-item {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
  }

  .list-item h2 { font-size: 1.375rem; }

  .journal-spotlight { margin-top: 4rem; }

  .spotlight-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .spotlight-list { border-top: none; }

  .detail-meta { gap: 0.3rem 1.25rem; }

  .info-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .info-row dt { padding-top: 0; }

  .image-gallery {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .map-embed iframe { height: 300px; }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public *,
  body.public *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   舞台 MUKARA — the rental space on 2F.
   Direction B, "warehouse light": MUKARA's own logo colours (navy ink #2A313B,
   coral #FA4848, warm paper ground) on the gallery's type system. Sampled from
   the actual logo file, not eyeballed.

   Scoped to body.public.mukara, which sits INSIDE body.public — so the entire
   public stylesheet above applies and this block only redefines the palette
   plus the handful of rules that hardcode a dark ground. Admin is untouched.
   ========================================================================== */

body.public.mukara {
  --bg: #F4F1EA;
  --bg-lift: #E9E4D9;
  --ink: #2A313B;
  --dim: #5A626C;
  --muted: #8B9199;
  --rule: #DED8CA;
  --rule-strong: #C4BCA8;
  --accent: #FA4848;
}

/* The coral is the accent, not a body colour — it appears on eyebrow labels
   and nothing else, the same way the logo uses it for a single dot. */
body.public.mukara .label,
body.public.mukara .section-head .label {
  color: var(--accent);
}

/* Shadows and image opacity below are tuned for a near-black ground; on paper
   they read as dirt. Lighten them rather than restating the whole rule. */
body.public.mukara .image-gallery li,
body.public.mukara .mk-lead-figure,
body.public.mukara .mk-card-figure {
  box-shadow: 0 12px 34px rgba(42, 49, 59, 0.13);
}

body.public.mukara .image-gallery img {
  opacity: 1;
}

/* The gallery inverts the Google map to sit in the dark palette. On paper the
   map only needs desaturating. */
body.public.mukara .map-embed iframe {
  filter: grayscale(1) contrast(0.92);
}

/* Header mark ------------------------------------------------------------ */

.mk-mark {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.mk-mark-glyph {
  width: 54px;
  height: auto;
  display: block;
  flex: none;
}

.mk-mark-name {
  display: block;
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.05;
}

.mk-mark-sub {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The cross-link back to the gallery, set apart from the section's own nav. */
.site-nav-away {
  margin-left: 0.5rem;
  padding-left: 1.35rem;
  border-left: 1px solid var(--rule-strong);
}

/* MUKARA is a sibling brand, not just another nav item — give it back some
   of the visual weight it had in the old combined title lockup. */
.site-nav-mukara-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-nav-mukara {
  display: block;
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: 1.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--dim);
}

.site-nav-mukara:hover,
.site-nav-mukara.on {
  color: var(--ink);
}

.site-nav-mukara-sub {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--serif);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Home lead -------------------------------------------------------------- */

.mk-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding: 3.5rem 0 0;
}

/* Grid items default to min-width:auto, so a track refuses to shrink below its
   content's min-content size. For the figure that size is the photograph's
   intrinsic width — a 4000px iPhone shot — which blows the whole page wider
   than the viewport on a phone. */
.mk-lead > * {
  min-width: 0;
}

.mk-lead h1 {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.35;
  margin: 1.4rem 0 0;
  /* Japanese wraps between any two characters, so a long tagline readily
     strands a single trailing kana on its own line. Balancing evens the lines
     out; browsers without support just wrap normally. */
  text-wrap: balance;
}

.mk-lead-en {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.8;
  color: var(--muted);
  margin: 1.1rem 0 0;
  max-width: 30rem;
}

.mk-lead-figure {
  margin: 0;
  overflow: hidden;
  background: var(--bg-lift);
}

.mk-lead-figure img {
  display: block;
  width: 100%;
  height: clamp(300px, 46vw, 460px);
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mk-lead-figure:hover img {
  transform: scale(1.04);
}

/* Buttons ---------------------------------------------------------------- */

.mk-btn {
  display: inline-block;
  margin-top: 1.9rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--serif);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--ink);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.mk-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.mk-back {
  margin: 3.5rem 0 0;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.mk-back a {
  transition: color 0.3s ease;
}

.mk-back a:hover {
  color: var(--ink);
}

/* Rates ------------------------------------------------------------------ */

.mk-rates {
  display: grid;
  /* min() so the 200px floor can't exceed a narrow viewport and force a
     second column off-screen. */
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 1px;
  margin-top: 2rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.mk-rate {
  background: var(--bg);
  padding: 1.6rem 1.5rem;
}

.mk-rate-label {
  font-family: var(--mincho);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.mk-rate-price {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.mk-rates-more {
  margin: 1.25rem 0 0;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mk-rates-more a {
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.mk-rates-more a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Project cards ---------------------------------------------------------- */

.mk-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.mk-project-grid > * {
  min-width: 0;
}

.mk-card {
  display: block;
}

.mk-card-figure {
  overflow: hidden;
  background: var(--bg-lift);
  aspect-ratio: 4 / 5;
}

.mk-card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mk-card:hover .mk-card-figure img {
  transform: scale(1.05);
}

.mk-card-body {
  padding-top: 1rem;
}

.mk-card-cat {
  display: block;
  font-family: var(--serif);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.mk-card-body h2 {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.55;
  margin: 0.55rem 0 0;
  transition: opacity 0.35s ease;
}

.mk-card:hover .mk-card-body h2 {
  opacity: 0.62;
}

.mk-card-date {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Team ------------------------------------------------------------------- */

.mk-team {
  margin-top: 3.5rem;
}

.mk-member {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}

/* A member with no portrait yet must not leave the photo column reserved —
   the bio would be squeezed into the remaining track. Same fix as
   .list-item.no-thumb on the gallery side. */
.mk-member.no-photo {
  grid-template-columns: 1fr;
}

.mk-member > * {
  min-width: 0;
}

.mk-member:first-child {
  padding-top: 0;
}

.mk-member-photo {
  margin: 0;
  overflow: hidden;
  background: var(--bg-lift);
  aspect-ratio: 7 / 9;
}

.mk-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mk-member-body h2 {
  font-family: var(--mincho);
  font-feature-settings: "palt" 1;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.mk-member-name-en {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0.4rem 0 0;
}

.mk-member-role {
  font-family: var(--mincho);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0.9rem 0 0;
}

.mk-member-bio {
  font-family: var(--mincho);
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--dim);
  max-width: 34rem;
  margin: 1.4rem 0 0;
}

.mk-member-bio p {
  margin: 0 0 1.2em;
}

.mk-member-bio-en {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--muted);
}

.mk-member-email {
  margin: 1.2rem 0 0;
  font-family: var(--serif);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.mk-member-email a {
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.mk-member-email a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* MUKARA responsive ------------------------------------------------------ */

@media (max-width: 900px) {
  .mk-lead {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .mk-member {
    grid-template-columns: 180px 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 620px) {
  .mk-lead {
    padding-top: 2.25rem;
  }

  .mk-mark-glyph { width: 42px; }
  .mk-mark-name { font-size: 1.1875rem; }
  .mk-mark-sub { font-size: 0.5625rem; letter-spacing: 0.2em; }

  .site-nav-away {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .mk-member {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .mk-member-photo {
    max-width: 220px;
  }

  .mk-project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* ==========================================================================
   épuis & co. — the florist on 1F.
   "Night garden": near-black warm ground, bone ink, berry red. Chosen because
   Yuino's work is photographed dark — black grounds, hard side light — and a
   paper ground makes those images read as mistakes. The accent and the moss
   secondary are sampled from her own photographs.

   Reuses the MUKARA component classes (.mk-lead, .mk-card, .mk-team, .mk-btn):
   the two sections are structurally identical, so only the palette differs.
   ========================================================================== */

body.public.epuis {
  --bg: #12110E;
  --bg-lift: #1C1A16;
  --ink: #E8E4DA;
  --dim: #B0AAA0;
  --muted: #7E7869;
  --rule: #292720;
  --rule-strong: #3D3A30;
  --accent: #C0231D;
}

body.public.epuis .label,
body.public.epuis .section-head .label {
  color: var(--accent);
}

/* Header mark ------------------------------------------------------------ */

.ep-mark {
  display: block;
  line-height: 1;
  margin-left: 1.5rem;
}

.ep-mark-glyph {
  display: block;
  height: 92px;
  width: auto;
}

.ep-mark-sub {
  display: block;
  margin-top: 1rem;
  margin-left: -1.5rem;
  font-family: var(--mincho);
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  color: var(--muted);
}

/* Paired call-to-action buttons ------------------------------------------ */

.ep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.ep-actions-block {
  margin-top: 3rem;
}

/* The shop link is secondary to "enquire" — it leaves the site. */
.mk-btn-quiet {
  border-color: var(--rule-strong);
  color: var(--dim);
}

.mk-btn-quiet:hover {
  background: var(--bg-lift);
  color: var(--ink);
  border-color: var(--rule-strong);
}

@media (max-width: 620px) {
  .ep-mark-glyph { height: 64px; }
  .ep-mark-sub { font-size: 0.5938rem; letter-spacing: 0.2em; }
}

/* Notice banner ------------------------------------------------------------
   A visitor-facing operational notice (e.g. "on maternity leave"), distinct
   from .preview-banner (admin-only, means "unpublished", styled as a hazard
   amber). This is calm information, not a warning, so it uses épuis's own
   accent instead. Deliberately NOT position:sticky, unlike .preview-banner —
   two independent sticky bars both pinned to top:0 would overlap on the rare
   page where an admin previews a draft while a notice is also active. Sitting
   in normal flow above the (still sticky) preview banner means it's visible
   on every page load without any stacking collision, ever. */

body.public.epuis .ep-notice {
  background: var(--bg-lift);
  border-bottom: 1px solid var(--accent);
}

body.public.epuis .ep-notice-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
}

body.public.epuis .ep-notice-body {
  font-family: var(--mincho);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ink);
}

body.public.epuis .ep-notice-body p {
  margin: 0 0 0.4em;
}

body.public.epuis .ep-notice-body p:last-child {
  margin-bottom: 0;
}

body.public.epuis .ep-notice-body-en {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 0.8125rem;
  color: var(--dim);
  margin-top: 0.4rem;
}
