/* ---- shop/cabinet.css ---- */
:root {
  color-scheme: dark;
  --paper: #0e1820;
  --card: #15242c;
  --ink: #eee9db;
  --quiet: #b6c4bc;
  --rule: #45534f;
  --accent: #e1bd82;
  --soft: #212e32;
  --focus: #f2ce91;
  --display: #172329;
}
:root[data-theme='light'] {
  color-scheme: light;
  --paper: #f3efe3;
  --card: #fcf9ee;
  --ink: #273932;
  --quiet: #4e6057;
  --rule: #b5b09e;
  --accent: #70491f;
  --soft: #e9e4d5;
  --focus: #784811;
  --display: #e7e1d2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    1rem/1.55 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
p {
  margin: 0.4rem 0 0.9rem;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
summary {
  cursor: pointer;
}
button:disabled,
select:disabled {
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
h1,
h2,
h3 {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.12;
  letter-spacing: -0.027em;
  margin: 0 0 0.55rem;
}
h1 {
  font-size: clamp(2.7rem, 8vw, 5.5rem);
}
h2 {
  font-size: clamp(1.95rem, 4vw, 3.05rem);
}
h3 {
  font-size: 1.48rem;
}
p,
li,
small {
  overflow-wrap: break-word;
}
.mast {
  padding: 0.8rem max(5vw, calc((100% - 1020px) / 2));
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  min-height: 62px;
  font-size: 0.88rem;
  color: var(--quiet);
}
.mast a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.mast a:hover,
.text-link:hover {
  text-decoration: underline;
}
.brand {
  color: var(--ink);
  font:
    bold 1.45rem Georgia,
    serif;
}
.back {
  margin-left: auto;
}
.wrap {
  max-width: 1060px;
  margin: auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}
.intro {
  padding: clamp(2.1rem, 5vw, 4.2rem) 0 1.5rem;
}
.intro > p:not(.overline) {
  max-width: 63ch;
}
.intro > p:not(.overline):not(.notice) {
  font-size: 1.14rem;
}
.overline,
.tag {
  font:
    700 0.73rem/1.45 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.notice,
.fine,
figcaption {
  font-size: 0.89rem;
  color: var(--quiet);
}
.notice {
  margin-top: 1.1rem;
}
.notice b {
  color: var(--ink);
}
.atelier,
.licenses {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 2.3rem);
}
.atelier {
  align-items: center;
  padding: 1.35rem 0 2rem;
  border-top: 1px solid var(--rule);
}
.display {
  margin: 0;
  padding: clamp(0.65rem, 2vw, 1.2rem);
  background: var(--display);
  border: 1px solid var(--rule);
  border-radius: 10px;
}
.frame-stage {
  position: relative;
  aspect-ratio: 2;
  isolation: isolate;
}
.frame-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}
.my-object {
  position: absolute;
  left: 37%;
  bottom: 20%;
  width: 26%;
  height: 47%;
  text-align: center;
}
.my-object .hardware-emblem {
  height: 100%;
  width: auto;
  aspect-ratio: 1/1.12;
  display: inline-grid;
  align-items: center;
  border: 2px solid #aa9171;
  border-radius: 48% 48% 16% 16%;
  padding: 9%;
  background: #1d3438;
  color: #f3dba3;
  box-shadow: 0 2px 3px #12202077;
}
.my-object svg {
  display: block;
  width: 100%;
  height: 100%;
}
#object-controls {
  margin-top: 0.45rem;
}
#object-controls label {
  font-size: 0.87rem;
}
#object-controls small {
  display: block;
  color: var(--quiet);
  font-size: 0.84rem;
}
.object-button {
  background: transparent;
  color: var(--accent);
  border: 0;
  border-bottom: 1px solid var(--rule);
  min-height: 44px;
  padding: 0.25rem 0;
  font-size: 0.91rem;
}
.ware {
  position: absolute;
  width: 19%;
  height: 51%;
  bottom: 20%;
  left: 40.5%;
  filter: drop-shadow(0 3px 2px #14242a55);
}
figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.7rem 0 0;
}
figcaption small {
  font-size: 0.73rem;
}
.atelier-info > p,
.chapter > p,
.issue-head p,
.licenses p,
.pilot > p {
  color: var(--quiet);
}
fieldset {
  border: 0;
  margin: 0.9rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.swatch {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  min-height: 44px;
  border: 1px solid var(--rule);
  padding: 0.38rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink);
  font-size: 0.91rem;
}
.swatch input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}
.swatch:has(input:checked) {
  border-color: var(--accent);
  background: var(--soft);
}
.swatch:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.caption {
  border-top: 1px solid var(--rule);
  padding: 0.72rem 0 0;
  min-height: 7rem;
}
.caption p {
  color: var(--quiet);
  font-size: 0.94rem;
}
.caption b {
  color: var(--accent);
  font-size: 0.9rem;
}
.chapter {
  border-top: 1px solid var(--rule);
  padding: 1.8rem 0;
}
.issue-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}
.issue-head p {
  max-width: 64ch;
}
.edition-tag {
  white-space: nowrap;
  border: 1px solid var(--rule);
  border-radius: 50%;
  padding: 0.5rem 0.75rem;
  color: var(--accent);
  font:
    italic 1.05rem Georgia,
    serif;
}
.stops {
  padding: 0;
  list-style: none;
  counter-reset: stop;
}
.stops li {
  counter-increment: stop;
  display: grid;
  grid-template-columns: 2.35rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  border-top: 1px solid var(--rule);
  padding: 0.68rem 0;
}
.stops li:before {
  content: counter(stop, decimal-leading-zero);
  font:
    italic 1.3rem Georgia,
    serif;
  color: var(--accent);
}
.stops a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 650;
}
.stops small {
  display: block;
  color: var(--quiet);
}
.opened {
  color: var(--accent);
  font-size: 0.82rem;
}
.envelope {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 8px;
}
.envelope summary {
  padding: 0.66rem 1rem;
  min-height: 46px;
  color: var(--ink);
  font-weight: 650;
}
.envelope summary span {
  color: var(--accent);
  font-weight: 500;
  margin-left: 0.6rem;
  font-size: 0.9rem;
}
.envelope > div {
  padding: 0 1rem 0.65rem;
}
.envelope li {
  margin: 0.24rem 0;
}
.licenses {
  margin-top: 1.1rem;
  grid-template-columns: 1fr 1fr;
}
.licenses article {
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
}
.licenses h3 {
  margin: 0.4rem 0;
}
.licenses .amount {
  color: var(--ink);
  font-weight: 650;
  font-size: 1.2rem;
}
.amount small {
  font-size: 0.88rem;
  font-weight: 400;
}
.text-link,
.plain,
#account {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.compact {
  padding: 0 0 1.7rem;
  border-top: 0;
}
.pilot {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0 3rem;
}
.pilot p,
form {
  max-width: 61ch;
}
form label {
  display: block;
  font-weight: 650;
  margin-top: 0.75rem;
}
form label small {
  font-weight: 400;
  color: var(--quiet);
}
select,
textarea {
  width: 100%;
  min-height: 46px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 0.55rem;
}
textarea {
  resize: vertical;
}
.pilot button,
.print-button {
  margin: 0.66rem 0.4rem 0 0;
  border-radius: 5px;
  border: 1px solid var(--accent);
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: var(--soft);
  color: var(--ink);
}
.pilot button:disabled {
  opacity: 0.55;
}
.plain {
  background: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
[hidden] {
  display: none !important;
}
footer.mast {
  border-top: 1px solid var(--rule);
  border-bottom: 0;
  justify-content: space-between;
}
.guide {
  max-width: 760px;
  margin: 0 auto;
}
.guide li {
  margin: 0.75rem 0;
}
.guide ol {
  padding-inline-start: 1.5rem;
}
.guide h2 {
  font-size: 1.6rem;
  margin-top: 1.4rem;
}
.guide main {
  padding-bottom: 2rem;
}
@media (max-width: 680px) {
  .atelier,
  .licenses {
    grid-template-columns: 1fr;
  }
  .intro {
    padding-bottom: 0.85rem;
  }
  .display {
    max-width: 480px;
    width: 100%;
    margin: auto;
  }
  .caption {
    min-height: 0;
  }
  .stops li {
    grid-template-columns: 1.7rem 1fr;
  }
  .opened {
    grid-column: 2;
  }
  .mast {
    gap: 0.65rem;
    padding: 0.45rem 1rem;
  }
  .mast > span {
    display: none;
  }
  .licenses {
    gap: 0.8rem;
  }
  .licenses p {
    margin-bottom: 0.5rem;
  }
  .edition-tag {
    display: none;
  }
}
@media (max-width: 350px) {
  fieldset {
    grid-template-columns: 1fr;
  }
  .envelope summary span {
    display: block;
    margin-left: 1.15rem;
  }
}
@media print {
  @page {
    margin: 14mm;
  }
  .guide,
  .guide * {
    background: white !important;
    color: #111 !important;
  }
  .guide {
    max-width: none;
    font:
      16pt/1.31 Georgia,
      serif;
  }
  .guide .mast,
  .guide button,
  .guide .screen-only {
    display: none;
  }
  .guide .wrap {
    padding: 0;
  }
  .guide .intro {
    padding: 0;
  }
  .guide h1 {
    font-size: 28pt;
  }
  .guide h2 {
    font-size: 18pt;
    margin: 12pt 0 3pt;
    break-after: avoid;
  }
  .guide li {
    break-inside: avoid;
  }
  .guide a {
    color: inherit;
  }
  .guide .intro > p:not(.overline) {
    font-size: 16pt;
  }
  .guide .sources, .guide .fine {
    font-size: 12pt;
  }
}
