:root {
  --ink: #16201c;
  --ink-soft: #34413b;
  --forest: #10261e;
  --forest-deep: #09140f;
  --paper: #f3efe5;
  --paper-soft: #e9e1d2;
  --rice: #faf8f2;
  --gold: #b89a62;
  --gold-light: #d8c69e;
  --line: rgba(22, 32, 28, 0.18);
  --section-space: clamp(6rem, 10vw, 10rem);
  --heading-max: clamp(2.5rem, 5.4vw, 6.2rem);
  --reading: min(100%, 42rem);
  --ease-out: cubic-bezier(.22, .72, .24, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

html[data-spacing="compact"] { --section-space: clamp(4.5rem, 7vw, 7rem); }
html[data-spacing="generous"] { --section-space: clamp(8rem, 13vw, 13rem); }
html[data-heading="quiet"] { --heading-max: clamp(2.2rem, 4.2vw, 4.8rem); }
html[data-heading="dramatic"] { --heading-max: clamp(3rem, 6.8vw, 7.7rem); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--forest-deep); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img { display: block; width: 100%; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 200;
  top: .8rem;
  left: .8rem;
  padding: .8rem 1rem;
  background: var(--rice);
  color: var(--ink);
  transform: translateY(-180%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.preview-bar {
  position: fixed;
  z-index: 180;
  inset: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-height: 2.5rem;
  padding: .4rem 1rem;
  color: #fff;
  background: #7a4f00;
  font-size: .78rem;
}
.preview-bar a { text-underline-offset: .2em; }
.is-preview .site-header { top: 2.5rem; }

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-height: 5.5rem;
  padding: 0 clamp(1.2rem, 4vw, 4.5rem);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.site-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  font-style: italic;
  letter-spacing: .02em;
  text-decoration: none;
}
.site-header nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.site-header nav > a {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
}
.header-cta { display: inline-flex; align-items: center; gap: .8rem; padding: .7rem 0 .7rem 1.1rem; border-left: 1px solid rgba(255,255,255,.25); }

.scene { position: relative; overflow: clip; }
.hero {
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--forest-deep);
}
.hero-image, .contact-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.hero-image { object-position: center 36%; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4,10,7,.9) 0%, rgba(4,10,7,.52) 43%, rgba(4,10,7,.1) 72%),
    linear-gradient(0deg, rgba(4,10,7,.68) 0%, transparent 45%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(78rem, 100%);
  padding: clamp(8.5rem, 16vh, 12rem) clamp(1.2rem, 6vw, 6.5rem) clamp(4rem, 9vh, 7rem);
}
.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.5;
  text-transform: uppercase;
}
.display-title, .section-title {
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.13;
  line-break: strict;
  word-break: auto-phrase;
  text-wrap: balance;
}
.display-title { max-width: 12em; font-size: clamp(3rem, 7.4vw, 8.4rem); }
.section-title { max-width: 13em; font-size: var(--heading-max); }
.section-title-light { color: #fff; }
.motion-mask { display: block; overflow: hidden; padding: .03em 0 .08em; }
.motion-mask > span { display: block; }
.hero-lead {
  width: min(100%, 37rem);
  margin: clamp(1.8rem, 3.5vw, 3rem) 0 0;
  color: rgba(255,255,255,.82);
  font-family: "Yu Mincho", "YuMincho", serif;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 2;
}
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(2rem, 4vw, 3.2rem); }
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  min-width: 14rem;
  min-height: 3.4rem;
  padding: .75rem 1rem .75rem 1.25rem;
  overflow: hidden;
  border: 1px solid currentColor;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-decoration: none;
  transition: color .32s var(--ease-soft), border-color .32s var(--ease-soft), transform .14s ease;
}
.button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .42s var(--ease-out);
}
.button-primary { color: var(--forest-deep); border-color: var(--gold-light); background: var(--gold-light); }
.button-primary::before { background: #fff; }
.button-quiet { color: #fff; border-color: rgba(255,255,255,.55); }
.button-light { color: #fff; }
.button-arrow { display: inline-block; transition: transform .28s var(--ease-out); }
.button:active { transform: scale(.985); }
.hero-note {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 2rem;
  z-index: 2;
  margin: 0;
  color: rgba(255,255,255,.52);
  font-size: .58rem;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(18rem, .72fr) minmax(15rem, .52fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: start;
  padding: var(--section-space) clamp(1.2rem, 6vw, 6.5rem);
  background: var(--rice);
}
.story-copy { padding-top: clamp(1rem, 5vw, 5rem); }
.reading-copy {
  width: var(--reading);
  margin: clamp(1.8rem, 3vw, 2.7rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(.94rem, 1.05vw, 1.03rem);
  line-height: 2.05;
}
.story-photo { margin: 0; }
.story-photo img { aspect-ratio: 4 / 5; object-fit: cover; }
.story-photo-b { margin-top: clamp(8rem, 15vw, 15rem); }
.story-photo-b img { aspect-ratio: 3 / 4; }
figcaption {
  display: flex;
  gap: .8rem;
  padding-top: .75rem;
  color: rgba(22,32,28,.62);
  font-size: .68rem;
  letter-spacing: .06em;
}

.gallery-section { padding: var(--section-space) clamp(1.2rem, 4vw, 4.5rem); background: var(--forest-deep); color: #fff; }
.section-heading { max-width: 76rem; margin: 0 auto clamp(3rem, 7vw, 7rem); }
.gallery-section .section-title { color: #fff; }
.gallery-section .reading-copy { color: rgba(255,255,255,.65); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(.65rem, 1.3vw, 1.25rem);
  max-width: 100rem;
  margin: 0 auto;
}
.gallery-item { grid-column: span 4; margin: 0; }
.gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 7; }
.gallery-item:nth-child(2), .gallery-item:nth-child(5) { grid-column: span 5; }
.gallery-item:nth-child(3), .gallery-item:nth-child(8) { grid-column: span 4; }
.gallery-item:nth-child(4), .gallery-item:nth-child(7) { grid-column: span 8; }
.gallery-open {
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #0d1712;
  border: 0;
  cursor: zoom-in;
}
.gallery-open img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .8s var(--ease-out), opacity .3s ease;
}
.gallery-item:nth-child(1) .gallery-open img, .gallery-item:nth-child(6) .gallery-open img { aspect-ratio: 16 / 9; }
.gallery-item:nth-child(4) .gallery-open img, .gallery-item:nth-child(7) .gallery-open img { aspect-ratio: 16 / 8; }
.gallery-item figcaption { color: rgba(255,255,255,.56); }
.gallery-item figcaption span { color: var(--gold); }

.info-section, .brief-section, .team-section, .delivery-section, .faq-section {
  padding: var(--section-space) clamp(1.2rem, 6vw, 6.5rem);
}
.info-section { background: var(--paper); }
.ledger { max-width: 86rem; margin: 0 auto; border-top: 1px solid var(--line); }
.ledger > div {
  display: grid;
  grid-template-columns: minmax(10rem, .55fr) 1.45fr;
  gap: 2rem;
  padding: clamp(1.3rem, 2.6vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.ledger dt { font-family: "Yu Mincho", serif; font-size: clamp(1.2rem, 2vw, 2rem); }
.ledger dd { margin: 0; color: var(--ink-soft); }

.brief-section { background: var(--paper-soft); }
.section-heading-split {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
}
.section-heading-split .reading-copy { margin-bottom: .5rem; }
.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 86rem;
  margin: 0 auto;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.brief-grid li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.2rem;
  min-height: 10rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.brief-grid li:nth-child(even) { border-right: 0; }
.brief-grid li > span { color: var(--gold); font-family: Georgia, serif; font-size: .8rem; }
.brief-grid h3 { margin: 0 0 .7rem; font-family: "Yu Mincho", serif; font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 500; }
.brief-grid p { margin: 0; color: var(--ink-soft); font-size: .88rem; }

.team-section { background: var(--forest); color: #fff; }
.team-section .section-title { color: #fff; }
.team-section .reading-copy { color: rgba(255,255,255,.64); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 94rem; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.18); }
.team-card { position: relative; min-height: 24rem; padding: 2rem 1.6rem; border-right: 1px solid rgba(255,255,255,.18); }
.team-card:last-child { border-right: 0; }
.team-index { color: var(--gold); font-family: Georgia, serif; font-size: .72rem; }
.team-role { margin: 5rem 0 .45rem; color: rgba(255,255,255,.42); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.team-card h3 { margin: 0 0 1.1rem; font-family: "Yu Mincho", serif; font-size: 1.35rem; font-weight: 500; }
.team-card > p:last-of-type { color: rgba(255,255,255,.65); font-size: .84rem; }
.team-card a { position: absolute; bottom: 2rem; font-size: .72rem; text-underline-offset: .3em; }
html[data-team="compact"] .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-team="compact"] .team-card { min-height: 15rem; }
html[data-team="compact"] .team-role { margin-top: 2.5rem; }

.delivery-section { background: var(--rice); }
.delivery-list { max-width: 86rem; margin: 0 auto; }
.delivery-list > div { display: grid; grid-template-columns: minmax(10rem, .5fr) 1.5fr; gap: 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.delivery-list > div:last-child { border-bottom: 1px solid var(--line); }
.delivery-list dt { font-family: "Yu Mincho", serif; font-size: 1.05rem; }
.delivery-list dd { margin: 0; color: var(--ink-soft); }

.faq-section { background: var(--paper); }
.faq-list { max-width: 76rem; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 0; cursor: pointer; font-family: "Yu Mincho", serif; font-size: clamp(1rem, 1.6vw, 1.35rem); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--gold); transition: transform .25s ease; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details > p { max-width: 56rem; margin: 0; padding: 0 0 1.8rem; color: var(--ink-soft); }

.contact-section { min-height: min(92svh, 60rem); display: grid; align-items: center; color: #fff; background: var(--forest-deep); }
.contact-image { object-position: center 38%; }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,14,10,.94), rgba(6,14,10,.72) 50%, rgba(6,14,10,.22)); }
.contact-copy { position: relative; z-index: 2; width: min(62rem, 100%); padding: var(--section-space) clamp(1.2rem, 7vw, 7rem); }
.contact-copy .reading-copy { color: rgba(255,255,255,.7); }
.profile-name { margin: 2.2rem 0 0; font-family: "Yu Mincho", serif; font-size: 1.35rem; }
.profile-name span { display: block; margin-top: .25rem; color: rgba(255,255,255,.46); font-family: Arial, sans-serif; font-size: .66rem; letter-spacing: .12em; }
.credit { position: absolute; z-index: 2; right: 2rem; bottom: 1.6rem; left: 2rem; margin: 0; color: rgba(255,255,255,.4); font-size: .62rem; letter-spacing: .04em; text-align: right; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem clamp(1.2rem, 4vw, 4.5rem); color: rgba(255,255,255,.54); background: var(--forest-deep); font-size: .68rem; }
.site-footer a { color: #fff; text-underline-offset: .3em; }
.site-footer p { margin: .55rem 0 0; }
.site-footer > div:last-child { text-align: right; }

.lightbox {
  width: min(94vw, 92rem);
  height: min(92svh, 62rem);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #07100b;
  border: 0;
}
.lightbox::backdrop { background: rgba(2,6,4,.88); backdrop-filter: blur(8px); }
.lightbox figure { display: grid; place-items: center; height: 100%; margin: 0; padding: 3rem; }
.lightbox figure img { max-width: 100%; max-height: calc(100% - 2.5rem); width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { color: rgba(255,255,255,.65); }
.lightbox button { position: absolute; z-index: 2; color: #fff; background: rgba(7,16,11,.7); border: 1px solid rgba(255,255,255,.28); cursor: pointer; }
.lightbox-close { top: 1rem; right: 1rem; width: 2.8rem; height: 2.8rem; }
.lightbox-prev, .lightbox-next { top: 50%; width: 3.4rem; height: 3.4rem; transform: translateY(-50%); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

html.motion-ready[data-motion="on"] .reveal:not(.is-visible) { opacity: 0; transform: translateY(1.15rem); }
html.motion-ready[data-motion="on"] .reveal { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
html.motion-ready[data-motion="on"] .motion-heading:not(.is-visible) .motion-mask > span { transform: translateY(112%); }
html.motion-ready[data-motion="on"] .motion-heading .motion-mask > span { transition: transform .9s var(--ease-out); }
html.motion-ready[data-motion="on"] .motion-heading .motion-mask:nth-child(2) > span { transition-delay: .09s; }

@media (hover: hover) and (pointer: fine) {
  .button:hover::before { transform: scaleX(1); transform-origin: left; }
  .button:hover { color: var(--forest-deep); border-color: var(--gold-light); }
  .button:hover .button-arrow { transform: translateX(.35rem); }
  .gallery-open:hover img { transform: scale(1.025); opacity: .88; }
  .site-header nav > a:hover, .site-footer a:hover { color: var(--gold-light); }
}

@media (max-width: 900px) {
  .site-header nav > a:not(.header-cta) { display: none; }
  .story-section { grid-template-columns: 1fr 1fr; }
  .story-copy { grid-column: 1 / -1; max-width: 50rem; }
  .story-photo-b { margin-top: 5rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card:nth-child(2) { border-right: 0; }
  .team-card:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
}

@media (max-width: 640px) {
  :root { --section-space: 5.25rem; --heading-max: clamp(2rem, 10.8vw, 3.25rem); }
  html[data-spacing="compact"] { --section-space: 4rem; }
  html[data-spacing="generous"] { --section-space: 6.6rem; }
  html[data-heading="dramatic"] { --heading-max: clamp(2.45rem, 13vw, 4rem); }
  body { font-size: 15px; }
  .site-header { min-height: 4.5rem; padding-inline: 1rem; }
  .site-brand { font-size: 1rem; }
  .header-cta { gap: .55rem; padding-left: .8rem; font-size: .68rem !important; }
  .hero { min-height: 92svh; align-items: end; }
  .hero-image { object-position: 59% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(4,10,7,.92) 0%, rgba(4,10,7,.54) 52%, rgba(4,10,7,.18) 84%); }
  .hero-copy { padding: 8rem 1.15rem 3.4rem; }
  .display-title { max-width: none; font-size: clamp(2.1rem, 10.5vw, 3rem); letter-spacing: -.08em; line-height: 1.16; }
  .display-title .motion-mask > span { white-space: nowrap; }
  .hero-lead { margin-top: 1.5rem; font-size: .95rem; line-height: 1.9; }
  .button-row { display: grid; grid-template-columns: 1fr; margin-top: 1.8rem; }
  .button { width: 100%; min-width: 0; }
  .hero-note { display: none; }
  .story-section { display: flex; flex-direction: column; gap: 2.5rem; padding-inline: 1.15rem; }
  .story-copy { order: 1; padding-top: 0; }
  .story-photo-a { order: 2; width: 86%; margin-left: auto; }
  .story-photo-b { order: 3; width: 73%; margin: 0 auto 0 0; }
  .story-photo img { aspect-ratio: 3 / 4; }
  .gallery-section, .info-section, .brief-section, .team-section, .delivery-section, .faq-section { padding-inline: 1.15rem; }
  .section-heading { margin-bottom: 3rem; }
  .gallery-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-item, .gallery-item:nth-child(n) { grid-column: auto; }
  .gallery-item:nth-child(odd) { width: 92%; }
  .gallery-item:nth-child(even) { width: 84%; margin-left: auto; }
  .gallery-open img, .gallery-item:nth-child(n) .gallery-open img { aspect-ratio: 4 / 5; }
  .gallery-item:nth-child(3) .gallery-open img, .gallery-item:nth-child(4) .gallery-open img { aspect-ratio: 4 / 3; }
  .ledger > div, .delivery-list > div { grid-template-columns: 1fr; gap: .55rem; }
  .ledger dd, .delivery-list dd { font-size: .88rem; }
  .section-heading-split { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-heading-split .reading-copy { margin-top: 0; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-grid li { grid-template-columns: 2.5rem 1fr; min-height: 0; padding: 1.5rem .3rem; border-right: 0; }
  .team-grid, html[data-team="compact"] .team-grid { grid-template-columns: 1fr; }
  .team-card, html[data-team="compact"] .team-card { min-height: 0; padding: 1.6rem .3rem 2rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .team-role, html[data-team="compact"] .team-role { margin-top: 2rem; }
  .team-card a { position: static; display: inline-block; margin-top: 1.4rem; }
  .faq-list summary { gap: 1rem; }
  .contact-section { min-height: auto; }
  .contact-image { object-position: 52% center; }
  .contact-shade { background: rgba(6,14,10,.8); }
  .contact-copy { padding-inline: 1.15rem; }
  .credit { right: 1.15rem; bottom: .9rem; left: 1.15rem; text-align: left; }
  .site-footer { flex-direction: column; padding: 2.3rem 1.15rem; }
  .site-footer > div:last-child { text-align: left; }
  .lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; }
  .lightbox figure { padding: 4rem .8rem; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal, .motion-mask > span { opacity: 1 !important; transform: none !important; }
}

@media (forced-colors: active) {
  .hero-shade, .contact-shade { display: none; }
  .button { border: 2px solid ButtonText; }
}

/* Authenticated editor */
.editor-body { min-height: 100svh; background: #eee9df; }
.editor-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  color: #fff;
  background: rgba(9,20,15,.97);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.editor-header p { margin: 0 0 .15rem; color: var(--gold); font-size: .58rem; font-weight: 700; letter-spacing: .18em; }
.editor-header h1 { margin: 0; font-family: "Yu Mincho", serif; font-size: 1.25rem; font-weight: 500; }
.editor-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem; }
.editor-header nav a { padding: .55rem .75rem; border: 1px solid rgba(255,255,255,.25); font-size: .7rem; text-decoration: none; }
.editor-main { width: min(100% - 2rem, 92rem); margin: 0 auto; padding: clamp(2rem, 5vw, 5rem) 0 8rem; }
.editor-status { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2rem; padding: 2rem; color: #fff; background: var(--forest); }
.editor-status h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.4; }
.editor-status dl { margin: 0; }
.editor-status dl > div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .45rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.editor-status dt { color: rgba(255,255,255,.55); font-size: .72rem; }
.editor-status dd { margin: 0; font-family: ui-monospace, monospace; font-size: .72rem; overflow-wrap: anywhere; }
.editor-notice { margin: 0 0 1.5rem; padding: 1rem 1.2rem; border-left: .3rem solid; }
.editor-notice-success { color: #16442e; background: #e0f2e8; border-color: #2d7a51; }
.editor-notice-error { color: #651e1e; background: #f7e6e3; border-color: #a93939; }
.editor-notice ul { margin-bottom: 0; }
.editor-form { display: grid; gap: 1.5rem; }
.editor-panel { padding: clamp(1.25rem, 3vw, 2.5rem); background: var(--rice); border: 1px solid rgba(22,32,28,.12); }
.editor-panel-heading { display: grid; gap: .5rem; max-width: 60rem; margin-bottom: 2rem; }
.editor-panel-heading .eyebrow { margin-bottom: .3rem; }
.editor-panel-heading h2 { margin: 0; font-family: "Yu Mincho", serif; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 500; }
.editor-panel-heading > p:last-child { margin: 0; color: var(--ink-soft); font-size: .86rem; }
.builder-order { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.builder-order li { display: grid; grid-template-columns: 3rem minmax(12rem, 1fr) auto auto auto; gap: 1rem; align-items: center; min-height: 4.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.builder-position { color: var(--gold); font-family: Georgia, serif; }
.builder-order strong, .builder-order small { display: block; }
.builder-order small { color: rgba(22,32,28,.5); font-family: ui-monospace, monospace; font-size: .65rem; }
.builder-enabled { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; }
.builder-required { padding: .2rem .45rem; color: #fff; background: var(--ink); font-size: .62rem; }
.builder-move { display: flex; gap: .3rem; }
.builder-move button { width: 2.3rem; height: 2.3rem; color: var(--ink); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.editor-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.editor-options label { display: grid; gap: .45rem; font-size: .78rem; }
.editor-options select { min-height: 2.8rem; padding: .45rem .6rem; background: #fff; border: 1px solid var(--line); }
.editor-options .editor-check { display: flex; align-items: center; padding: 1rem; background: #fff; border: 1px solid var(--line); }
.editor-content-tree { display: grid; gap: 1.2rem; }
.editor-group { min-width: 0; margin: 0; padding: 1.2rem; border: 1px solid var(--line); }
.editor-group > legend { padding: 0 .5rem; font-family: "Yu Mincho", serif; font-size: 1.12rem; }
.editor-group .editor-group { margin-top: 1rem; background: rgba(233,225,210,.28); }
.editor-group-item { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.editor-group-item > legend { font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.editor-field { display: grid; gap: .35rem; margin: .85rem 0; min-width: 0; }
.editor-field > span { font-size: .78rem; font-weight: 700; }
.editor-field > small { color: rgba(22,32,28,.45); font-family: ui-monospace, monospace; font-size: .61rem; }
.editor-field input, .editor-field textarea, .editor-field select { width: 100%; min-height: 2.7rem; padding: .65rem .75rem; color: var(--ink); background: #fff; border: 1px solid rgba(22,32,28,.28); border-radius: 0; }
.editor-field textarea { min-height: 7rem; resize: vertical; line-height: 1.7; }
.editor-actions { position: sticky; z-index: 80; bottom: 1rem; display: grid; grid-template-columns: auto auto 1fr; gap: .7rem; align-items: center; padding: .8rem; color: #fff; background: rgba(9,20,15,.96); box-shadow: 0 1rem 3rem rgba(0,0,0,.22); }
.editor-actions button { min-height: 3rem; padding: .65rem 1.1rem; border: 1px solid var(--gold-light); font-size: .78rem; font-weight: 700; cursor: pointer; }
.editor-save { color: #fff; background: transparent; }
.editor-publish { color: var(--forest-deep); background: var(--gold-light); }
.editor-actions p { margin: 0 0 0 .5rem; color: rgba(255,255,255,.55); font-size: .68rem; }

@media (max-width: 900px) {
  .editor-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-status { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .editor-header { position: static; align-items: flex-start; padding: 1rem; }
  .editor-header nav { display: grid; }
  .editor-main { width: min(100% - 1rem, 92rem); padding-top: .5rem; }
  .editor-status, .editor-panel { padding: 1rem; }
  .builder-order li { grid-template-columns: 2rem 1fr auto; gap: .6rem; }
  .builder-enabled { grid-column: 2; }
  .builder-required { display: none; }
  .builder-move { grid-column: 3; grid-row: 1 / span 2; }
  .editor-options, .editor-group-item { grid-template-columns: 1fr; }
  .editor-actions { grid-template-columns: 1fr 1fr; bottom: .35rem; }
  .editor-actions p { grid-column: 1 / -1; margin: .2rem; }
}
