/* Poster × Iro — homepage */

/* ---------- hero (v2): airy white, one phrase printed in two misregistered Nippon inks, a fan of tape posters ---------- */
.hero2 { background: var(--bg); color: var(--ink); padding: clamp(40px, 6vw, 72px) 0 clamp(16px, 3vw, 32px); overflow: hidden; }
.hero-copy { padding: 0 var(--edge); }
.hero2 h1 { font-weight: 500; font-size: clamp(40px, 6.3vw, 92px); letter-spacing: -0.05em; line-height: .96; }
.sub { font: 400 15px/1.6 var(--mono); max-width: 52ch; margin-top: 22px; }
.hero2 .sub { margin-top: 28px; }
.hero2 .cta { margin-top: 28px; }
/* the phrase: solid RURI ink, with a fine SYOJYOHI halftone printed a hair out of register behind it */
.press { position: relative; display: inline-block; color: #005CAF; z-index: 0; } /* RURI on SHIRONERI 6.38 */
.press::after { content: attr(data-text) / ""; position: absolute; left: .045em; top: .035em; width: 100%; z-index: -1; pointer-events: none; color: #E83015; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .press::after { color: transparent; background: radial-gradient(circle, #E83015 0 46%, transparent 52%) 0 0 / .032em .032em; -webkit-background-clip: text; background-clip: text; }
}
@media (forced-colors: active) { .press { color: CanvasText; } .press::after { display: none; } }

.fan { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
  padding: 40px 0 56px; margin-top: 8px; }
.fan::-webkit-scrollbar { display: none; }
.fan.drag { cursor: grabbing; scroll-snap-type: none; }
.fan:focus-visible { outline: 3px solid var(--sumi); outline-offset: -3px; }
.fan::before, .fan::after { content: ""; flex: 0 0 var(--edge); }
.fcard { flex: 0 0 clamp(270px, 24vw, 340px); aspect-ratio: 3 / 4; margin-left: -16px; border: 0; border-radius: 26px; padding: 0; cursor: pointer; font: inherit; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  background: var(--p-bg); color: var(--p-ink); position: relative; overflow: hidden; scroll-snap-align: start; scroll-margin-left: var(--edge); container-type: inline-size;
  transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); transition: transform .3s ease; box-shadow: 0 24px 40px -28px rgb(28 28 28 / .55); }
.fcard:first-of-type { margin-left: 0; }
.fcard:hover, .fcard:focus-visible { transform: rotate(0) translateY(-10px); z-index: 3; }
.fcard:focus-visible { outline: 3px solid var(--sumi); outline-offset: 4px; }
.fcard .top { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; gap: 6px; padding: 22px 22px 0; max-width: 78%; }
.fcard .pill { background: var(--shironeri); color: var(--sumi); }
.fcard .nm { display: block; font: 600 26px/1.05 var(--display); letter-spacing: -.04em; padding: 16px 22px 0; }
.fcard .jb { display: block; font: 500 16px/1.45 var(--serif); padding: 8px 22px 0; max-width: 26ch; }
.fcard .art { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; }
.fcard .art .w { position: absolute; left: 6cqw; bottom: -3cqw; font: 800 var(--fw, 30cqw)/.84 var(--display); letter-spacing: -.06em; white-space: nowrap; }
.fcard .art .k { position: absolute; right: 7cqw; top: 0; font: 500 11cqw/1 var(--serif); writing-mode: vertical-rl; letter-spacing: .06em; }
.fcard .spec { position: absolute; left: 22px; top: calc(54% - 30px); font: 400 12px/1.2 var(--mono); }
.fan-hint { font: 400 13px/1.4 var(--mono); padding: 0 var(--edge); }
@media (max-width: 759px) {
  .fcard { flex-basis: 78vw; margin-left: 12px; }
}

/* mono pill (shared by the fan and the steps) */
.pill { display: inline-block; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--gofun); color: var(--sumi); border: 1px solid #BDC0BA; }

/* ---------- hero extras (v3) ---------- */
.hero2 .cta { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.quiet { font: 700 14px/1.3 var(--mono); text-underline-offset: 4px; }
.plain-sub { margin-top: 28px; }

/* ---------- Field notes teaser (v4): three newest lessons + latest update; full notes live on notes.html ---------- */
.notes { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(40px, 7vw, 96px); }
.notes h2 { font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-size: clamp(32px, 5.2vw, 60px); }
.nt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lessons.tease { max-width: 920px; }
.latest { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font: 400 14px/1.4 var(--mono); }
.latest a { font-weight: 700; }
.sheet .access { font: 700 14px/1.4 var(--mono); }

/* ---------- wall ---------- */
.wall-head { display: grid; gap: 24px; }
.findword { max-width: 460px; }
.findword .row { display: flex; gap: 8px; }
.findword input { text-transform: uppercase; }
.findword .btn { flex: none; }
.findword .err.ok { color: var(--sumi); }
@media (min-width: 900px) { .wall-head { grid-template-columns: 1fr auto; align-items: end; } }
.wall { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: calc(var(--gut) + 10px) var(--gut); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
@media (min-width: 760px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wall > li { min-width: 0; }
.wall button.poster { width: 100%; padding: 0; font: inherit; cursor: pointer; transition: transform .25s ease, background-color .45s; }
.wall button.poster:hover { transform: rotate(-1.2deg) translateY(-4px); }
.wall button.poster:focus-visible { outline: 3px solid var(--sumi); outline-offset: 4px; }
.wall .found { animation: found 1.2s ease 2; }
@keyframes found { 50% { transform: rotate(-2deg) translateY(-8px); } }
.wall .next-slot .poster { background: var(--shironeri); color: var(--sumi); border-style: dashed; --p-bg: #F75C2F; }
.next-slot .gant { position: absolute; left: 6cqi; bottom: 6cqi; width: 60cqi; }
@media (max-width: 759px) {
  .wall .next-slot { grid-column: 1 / -1; }
  .wall .next-slot .poster { aspect-ratio: 16 / 7; }
  .next-slot .gant { width: 30cqi; left: auto; right: 6cqi; bottom: 4cqi; }
}

/* the one poster already open: the break in the repeat */
.open { grid-column: 1 / -1; }
@media (min-width: 1000px) { .open { grid-column: span 2; grid-row: span 2; } }
@media (min-width: 1200px) { .open { grid-column: span 3; } }
.open .poster { aspect-ratio: auto; height: 100%; }
.open .field-area { padding: 18px; display: grid; gap: 14px; align-content: start; }
.open .head { position: relative; min-height: 120px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.open .head h3 { font-size: clamp(76px, 26cqi, 190px); letter-spacing: -0.07em; line-height: .8; }
.open .head .vk { position: static; font-size: clamp(40px, 11cqw, 84px); }
.pp { display: grid; gap: 12px; }
@media (min-width: 620px) { .pp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.plate { border: 2px solid var(--sumi); padding: 14px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.plate-h { font-size: 15px; line-height: 1.5; }
.plate-t { font: 700 15px/1.2 var(--mono); }
.plate .note { font: 400 13px/1.45 var(--mono); }
.plate canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; border: 2px solid var(--sumi); display: block; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.file-btn { position: relative; }
.file-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-btn:focus-within { outline: 3px solid var(--sumi); outline-offset: 3px; }
.pulled { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pulled li { display: grid; grid-template-columns: 16px 56px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--sumi); }
.pulled .raw { width: 16px; height: 40px; border: 1px solid var(--sumi); }
.pulled .trad { height: 44px; border: 2px solid var(--sumi); font: 500 17px/1 var(--serif); cursor: pointer; padding: 0 2px; white-space: nowrap; overflow: hidden; }
.pulled .trad[aria-pressed=true] { outline: 3px solid var(--sumi); outline-offset: 2px; }
.pulled .nm { font: 400 13px/1.35 var(--mono); min-width: 0; overflow-wrap: anywhere; }
.pulled .nm b { display: block; font-size: 14px; }
.hexrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.hexrow .field { min-width: 0; }
.open .band { padding: 12px 18px; font-size: 13px; }
.open .band .t { font-size: 18px; }
.open .band svg { width: 40px; height: 40px; }

/* ---------- sheet (dialog): poster + the working tool ---------- */
dialog.sheet { border: 2px solid var(--sumi); padding: 0; background: var(--shironeri); color: var(--sumi); width: min(1040px, calc(100vw - 16px)); max-width: none; max-height: calc(100dvh - 16px); overflow: auto; }
dialog.sheet::backdrop { background: rgb(28 28 28 / .72); }
.sheet .inner { display: grid; }
.sheet .inner > .poster { border: 0; border-bottom: 2px solid var(--sumi); }
.sheet .inner.tool > .poster { aspect-ratio: auto; min-height: 150px; }
.sheet .inner.tool > .poster .word { font-size: 84px !important; left: 14px; bottom: -10px; right: auto; top: auto; transform: none; }
.sheet .inner.tool > .poster .vk { font-size: 44px; left: auto; right: 16px; top: 16px; }
@media (max-width: 859px) { .sheet .inner.tool > .poster .kw, .sheet .inner > .poster .tape-strip { display: none; } }
.sheet .info { padding: 20px 16px 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.sheet h2 { font-size: clamp(28px, 5vw, 44px); padding-right: 80px; }
.sheet .job { font-size: 17px; }
.sheet ol.how { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: s; }
.sheet ol.how li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; font-size: 16px; }
.sheet ol.how li::before { content: counter(s); font: 800 20px/1.2 var(--display); }
.sheet .meta { font: 400 13px/1.5 var(--mono); border-top: 2px solid var(--sumi); padding-top: 10px; }
.sheet .close { position: absolute; top: 10px; right: 10px; z-index: 5; min-height: 42px; }
.sheet .info > .btn { justify-self: start; }
@media (min-width: 860px) {
  .sheet .inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .sheet .inner > .poster { border-bottom: 0; border-right: 2px solid var(--sumi); align-self: start; position: sticky; top: 0; }
  .sheet .inner.tool > .poster { aspect-ratio: 4 / 5; }
  .sheet .inner.tool > .poster .word { font-size: var(--fs) !important; left: auto; bottom: auto; }
  .sheet .inner.tool > .poster.c-crop .word { left: 5cqi; bottom: -4cqi; }
  .sheet .inner.tool > .poster.c-bleed .word { left: -4cqi; bottom: 14cqi; }
  .sheet .inner.tool > .poster.c-giant .word { right: -10cqi; bottom: -14cqi; }
  .sheet .inner.tool > .poster.c-vert .word { right: calc(5cqi + 0.84em); bottom: 5cqi; transform: rotate(90deg); }
  .sheet .inner.tool > .poster.c-vert .vk { right: auto; left: 6cqw; top: 18cqw; }
  .sheet .inner.tool > .poster .vk { font-size: 12cqw; right: 6cqw; top: 6cqw; }
  .sheet .info { padding: 56px 28px 28px; }
}

/* tool parts inside sheets */
.tool { display: grid; gap: 12px; border: 2px solid var(--sumi); padding: 14px; background: var(--gofun); min-width: 0; }
.tool .status { font: 700 14px/1.4 var(--mono); min-height: 1.4em; }
.tool .pair { display: grid; gap: 10px; }
@media (min-width: 520px) { .tool .pair { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tool .pair.two { grid-template-columns: 1fr 1fr; } }
.tool input[type=range] { width: 100%; accent-color: #1C1C1C; }
.tool .inrow { display: flex; gap: 6px; }
.tool .inrow input[type=color] { width: 52px; height: 48px; border: 2px solid var(--sumi); padding: 0; background: none; flex: none; }
.tool .out { margin: 0; background: var(--sumi); color: var(--shironeri); padding: 12px; font: 400 14px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.tool .prev { font-family: var(--display); font-weight: 800; margin: 0; overflow-wrap: anywhere; border: 2px dashed var(--sumi); padding: 10px; }
.tool .plates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
.tool .plates figure { margin: 0; display: grid; gap: 4px; }
.tool .plates canvas { width: 100%; height: auto; border: 2px solid var(--sumi); cursor: crosshair; display: block; }
.tool .plates figcaption { display: flex; justify-content: space-between; align-items: center; font: 700 12px var(--mono); gap: 4px; flex-wrap: wrap; }
.tool .plates .btn.sm { min-height: 32px; padding: 0 8px; font-size: 12px; }
.tool .posts { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; max-height: 300px; overflow: auto; }
.tool .posts li { border: 2px solid var(--sumi); padding: 10px; font-size: 15px; background: var(--shironeri); }
.tool .posts small { display: block; font: 400 12px var(--mono); margin-top: 4px; }
.tool .hooks { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tool .hooks li { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 6px; align-items: center; }
.tool .hooks li b { font: 800 18px/1 var(--display); text-align: right; }
.tool .hooks li.best .in { outline: 3px solid var(--sumi); outline-offset: 1px; }
.tool .sample { padding: 18px; font-size: 16px; border: 2px solid var(--sumi); }
.tool .sample big { display: block; font: 800 44px/0.9 var(--display); letter-spacing: -.05em; margin-bottom: 8px; }
.tool .ratio { font: 800 40px/1 var(--display); letter-spacing: -.05em; }
.tool .grades { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 700 13px var(--mono); }
.tool .grades li { border: 2px solid var(--sumi); padding: 3px 8px; }
.tool .grades li.pass { background: var(--sumi); color: var(--shironeri); }
.tool .grades li.fail { background: var(--enji); color: var(--shironeri); border-color: var(--enji); }
.tool .nm { font: 400 13px/1.4 var(--mono); min-height: 1.4em; }
.kitline { display: grid; gap: 10px; border-top: 2px solid var(--sumi); padding-top: 12px; }
.kitline p { font-size: 15px; }

/* ---------- offers (on 藍) ---------- */
.offers { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 40px var(--gut); }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offers li { display: grid; gap: 14px; align-content: start; }
.offers .poster { aspect-ratio: 4 / 3; }
.offers h3 { font-size: 26px; letter-spacing: -0.035em; }
.offers .price { font: 700 15px/1.4 var(--mono); }
.offers p { max-width: 40ch; }
.offers .btn { justify-self: start; }
.btn.inv { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.inv:hover { background: transparent; color: var(--ink); }
.offers .shop .poster { border-style: dashed; }
.offers .poster .vk { font-size: 8cqw; }

/* ---------- list (on 紅緋) ---------- */
.listposter { aspect-ratio: auto; --p-bg: #1C1C1C; --p-ink: #FCFAF2; }
.listposter .field-area { padding: 24px; display: grid; gap: 18px; }
.listposter h2 { font-size: clamp(40px, 11vw, 120px); color: var(--benihi); max-width: 10ch; }
.listposter .field-area p { max-width: 44ch; font-size: 17px; }
.listposter form { display: grid; gap: 12px; max-width: 560px; }
.listposter .field label { color: var(--shironeri); }
.listposter .err { color: var(--shironeri); }
.listposter .field.bad input { border-color: var(--benihi); outline: 2px solid var(--benihi); }
.listposter .btn { background: var(--benihi); color: var(--sumi); border-color: var(--benihi); justify-self: start; }
.listposter .btn:hover { background: var(--shironeri); border-color: var(--shironeri); }
.listposter .fine { font: 400 14px/1.4 var(--mono); }
.listposter .done { display: flex; gap: 16px; align-items: center; }
.listposter .done svg { width: 120px; flex: none; }
.listposter .band { font-size: 13px; padding: 12px 24px; }
.listposter .band .t { font-size: 18px; }
.listposter .band svg { width: 40px; height: 40px; --artifact: var(--benihi); }
@media (min-width: 900px) { .listposter .field-area { padding: 48px; grid-template-columns: 1.1fr 1fr; align-items: end; column-gap: 48px; } }
