/* Same look as works.marierie.net (minimal theme): Umdot 12 pixel font on a 12px grid.
   The full font (OFL, Monad ABXY) is split by script so a page only downloads the parts it shows. */
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-base.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0000-10FF, U+1200-2FFF, U+3000-303F, U+FF00-FFEF;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-jamo.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+1100-11FF, U+3130-318F;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-kana.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+3040-30FF;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-hangul0.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+AC00-B174;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-hangul1.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+B175-B6E9;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-hangul2.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+B6EA-BC5E;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-hangul3.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+BC5F-C1D3;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-hangul4.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+C1D4-C748;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-hangul5.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+C749-CCBD;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-hangul6.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+CCBE-D232;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-hangul7.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+D233-D7A3;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-cjk0.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+4E00-627F;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-cjk1.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+6280-76FF;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-cjk2.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+7700-8B7F;
}
@font-face {
  font-family: 'Umdot 12';
  src: url('/fonts/umdot12-cjk3.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+8B80-9FFF;
}
:root {
  --ink: #000;
  --sub: #9a9a9a;
  --line: #000;
  --bg: #fff;
  --side: clamp(16px, 7vw, 100px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #fff;
    --sub: #7a7a7a;
    --line: #fff;
    --bg: #000;
  }
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}
[hidden] {
  display: none !important;
}
body {
  font-family: 'Umdot 12', 'Hiragino Sans', 'Apple SD Gothic Neo', sans-serif;
  font-size: 12px;
  line-height: 24px;
  font-weight: 400;
  font-synthesis: none;
  -webkit-font-smoothing: none;
  -webkit-text-size-adjust: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.px-soft body {
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1600px) {
  body {
    font-size: 24px;
    line-height: 48px;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
  font-weight: 400;
}
h1,
h2,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
}
ul,
ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover,
button:hover:not(:disabled) {
  opacity: 0.2;
}
.u {
  text-decoration: underline;
  text-underline-offset: 3px;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
button:disabled {
  color: var(--sub);
  cursor: default;
}
:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.sub {
  color: var(--sub);
}
.gap {
  margin-top: 24px;
}
.icon {
  flex: none;
  width: 1.5em;
  height: 1.5em;
}
.arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.17em;
}
.arrow .icon:first-child {
  margin-left: -0.25em;
}
.arrow .icon:last-child {
  margin-right: -0.25em;
}

/* layout */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px var(--side) 0;
  padding-top: max(30px, env(safe-area-inset-top));
}
.top nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.langs {
  display: flex;
  gap: 6px;
  color: var(--sub);
}
.langs [aria-current='true'] {
  color: var(--ink);
}
main {
  padding: 0 var(--side);
  animation: fadein 0.8s ease both;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
}
.block {
  max-width: 640px;
  margin-top: 64px;
}
@media (min-width: 1600px) {
  .block {
    max-width: 1280px;
  }
}
.foot {
  padding: 80px var(--side) max(40px, env(safe-area-inset-bottom));
}

/* form */
textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
textarea:focus {
  outline: none;
}
textarea:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 0;
}
.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
}
.ts {
  margin-top: 12px;
}
.ts:empty {
  display: none;
}
.err {
  color: var(--ink);
}
.err::before {
  content: '— ';
}

/* Q&A */
.qa li + li {
  margin-top: 48px;
}
.qa .row {
  display: grid;
  grid-template-columns: 24px 1fr;
}
.qa .row + .row {
  margin-top: 12px;
}
.qa .text {
  white-space: pre-wrap;
}
.qa img {
  margin-top: 12px;
  max-width: min(320px, 100%);
}
.more {
  margin-top: 48px;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--bg);
  white-space: nowrap;
  z-index: 10;
}
.toast[hidden] {
  display: none;
}

/* owner page */
.wide {
  max-width: 800px;
}
.top form {
  display: contents;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  color: var(--sub);
}
.tabs [aria-selected='true'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.items > li + li {
  margin-top: 48px;
}
.items .row {
  display: grid;
  grid-template-columns: 24px 1fr;
}
.items .row + .row {
  margin-top: 12px;
}
.items .text {
  white-space: pre-wrap;
}
.items textarea {
  margin-top: 0;
  min-height: 72px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 12px;
}
.who {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.raw {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px solid var(--sub);
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  main {
    animation: none;
  }
  a,
  button {
    transition: none;
  }
}
